androidx.multidex.MultiDex Java Examples

The following examples show how to use androidx.multidex.MultiDex. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: App.java    From PHONK with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void onCreate() {
    super.onCreate();

    MultiDex.install(this);

    TimerUtils.start();
    TimerUtils.stamp("start");
    TimerUtils.stamp("MultiDex.install");

    myLifecycleHandler = new MyLifecycleHandler();
    TimerUtils.stamp("MyLifecycleHandler");

    registerActivityLifecycleCallbacks(myLifecycleHandler);
    TimerUtils.stamp("registerActivityLifecycleCallbacks");

    // Fabric.with(this, new Crashlytics());

    /*
    final Fabric fabric = new Fabric.Builder(this)
            .kits(new Crashlytics())
            .logger(new DefaultLogger(Log.VERBOSE))
            .debuggable(true)
            .build();

    Fabric.with(fabric);
    */

    if (!(Thread.getDefaultUncaughtExceptionHandler() instanceof PhonkExceptionHandler)) {
        Thread.setDefaultUncaughtExceptionHandler(new PhonkExceptionHandler());
    }
}
 
Example #2
Source File: MyApplication.java    From AndroidAnimationExercise with Apache License 2.0 5 votes vote down vote up
@Override
    @DebugLog
    public void onCreate() {
        super.onCreate();

        Debug.startMethodTracing("sample");

        MultiDex.install(this);
        Stetho.initializeWithDefaults(this);

        if (BuildConfig.DEBUG) {
            ARouter.openLog();
            ARouter.openDebug();
        }

        ARouter.init(this);
        Fresco.initialize(this);
        String dir = MMKV.initialize(this);
        Log.e("application", "onCreate: mmkv.dir==" + dir);
        WebView.setWebContentsDebuggingEnabled(true);


        DoraemonKit.disableUpload();
        DoraemonKit.install(this);
//        DoraemonKit.hide();
        logLifeCycleCallBacks();

        Debug.stopMethodTracing();
    }
 
Example #3
Source File: BaseApplication.java    From NewFastFrame with Apache License 2.0 5 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    applicationDelegate = new ApplicationDelegate(base);
    applicationDelegate.attachBaseContext(base);
    MultiDex.install(this);
    Beta.installTinker();
}
 
Example #4
Source File: AcgClubLike.java    From AcgClub with MIT License 5 votes vote down vote up
@Override
public void onBaseContextAttached(Context base) {
  super.onBaseContextAttached(base);
  MultiDex.install(base);
  Beta.installTinker(this);

  if (mCommonApplicationLike == null) {
    mCommonApplicationLike = new CommonApplicationLike(TinkerManager.getApplication());
  }
}
 
Example #5
Source File: SampleApplicationLike.java    From Bugly-Android-Demo with Apache License 2.0 5 votes vote down vote up
@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)
@Override
public void onBaseContextAttached(Context base) {
    super.onBaseContextAttached(base);
    // you must install multiDex whatever tinker is installed!
    MultiDex.install(base);

    // TODO: 安装tinker
    Beta.installTinker(this);
}
 
Example #6
Source File: LegacyMultidexCatalogApplication.java    From material-components-android with Apache License 2.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
  super.attachBaseContext(base);
  MultiDex.install(this);
}
 
Example #7
Source File: PocketPlaysApplication.java    From Pocket-Plays-for-Twitch with GNU General Public License v3.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    MultiDex.install(this);
}
 
Example #8
Source File: App.java    From UIWidget with Apache License 2.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    MultiDex.install(this);
}
 
Example #9
Source File: AptoideApplication.java    From aptoide-client-v8 with GNU General Public License v3.0 4 votes vote down vote up
@Override protected void attachBaseContext(Context base) {
  super.attachBaseContext(base);
  MultiDex.install(this);
}
 
Example #10
Source File: MultidexAndroidJunitRunner.java    From aptoide-client-v8 with GNU General Public License v3.0 4 votes vote down vote up
@Override public void onCreate(Bundle arguments) {
  MultiDex.install(getTargetContext());
  super.onCreate(arguments);
}
 
Example #11
Source File: MultidexAndroidJunitRunner.java    From aptoide-client-v8 with GNU General Public License v3.0 4 votes vote down vote up
@Override public void onCreate(Bundle arguments) {
  MultiDex.install(getTargetContext());
  super.onCreate(arguments);
}
 
Example #12
Source File: App.java    From prayer-times-android with Apache License 2.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);

    MultiDex.install(this);
}
 
Example #13
Source File: KcaApplication.java    From kcanotify with GNU General Public License v3.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    MultiDex.install(this);
}
 
Example #14
Source File: AnalyticsApplication.java    From Lunary-Ethereum-Wallet with GNU General Public License v3.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    MultiDex.install(this);
}
 
Example #15
Source File: DJIDemoApplication.java    From Android-GSDemo-GoogleMap with MIT License 4 votes vote down vote up
protected void attachBaseContext(Context base){
    super.attachBaseContext(base);
    MultiDex.install(this);
}
 
Example #16
Source File: ApplicationManager.java    From ETSMobile-Android2 with Apache License 2.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    MultiDex.install(this);
}
 
Example #17
Source File: App.java    From prayer-times-android with Apache License 2.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);

    MultiDex.install(this);
}
 
Example #18
Source File: ApplozicSampleApplication.java    From Applozic-Android-SDK with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    MultiDex.install(this);
}
 
Example #19
Source File: PluginTestApplication.java    From Android-Plugin-Framework with MIT License 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
	super.attachBaseContext(base);
	packageName = getPackageName();
	MultiDex.install(FakeUtil.fakeMultiDexContext(this));
}
 
Example #20
Source File: RemixedDungeonApp.java    From remixed-dungeon with GNU General Public License v3.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    MultiDex.install(this);
}
 
Example #21
Source File: ApplicationLoader.java    From Telegram-FOSS with GNU General Public License v2.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    MultiDex.install(this);
}
 
Example #22
Source File: ApplicationLoader.java    From Telegram with GNU General Public License v2.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    MultiDex.install(this);
}
 
Example #23
Source File: GuardaApp.java    From guarda-android-wallets with GNU General Public License v3.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    MultiDex.install(this);
}
 
Example #24
Source File: MyApp.java    From TemplateSimpleProject with Apache License 2.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    //解决4.x运行崩溃的问题
    MultiDex.install(this);
}
 
Example #25
Source File: MApplication.java    From a with GNU General Public License v3.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    MultiDex.install(this);
}
 
Example #26
Source File: TwireApplication.java    From Twire with GNU General Public License v3.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    MultiDex.install(this);
}
 
Example #27
Source File: MainApplication.java    From CrossMobile with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP)
        MultiDex.install(this);
}
 
Example #28
Source File: MyApp.java    From TemplateAppProject with Apache License 2.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    //解决4.x运行崩溃的问题
    MultiDex.install(this);
}
 
Example #29
Source File: Splash.java    From Hify with MIT License 4 votes vote down vote up
@Override
protected void attachBaseContext(Context newBase) {
    super.attachBaseContext(ViewPumpContextWrapper.wrap(newBase));
    MultiDex.install(this);
}
 
Example #30
Source File: AopApp.java    From DoraemonKit with Apache License 2.0 4 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    MultiDex.install(base);
}