Java Code Examples for com.didichuxing.doraemonkit.DoraemonKit#disableUpload()

The following examples show how to use com.didichuxing.doraemonkit.DoraemonKit#disableUpload() . 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: AopApp.java    From DoraemonKit with Apache License 2.0 6 votes vote down vote up
@Override
public void onCreate() {
    super.onCreate();
    List<AbstractKit> kits = new ArrayList<>();
    kits.add(new DemoKit());
    //测试环境:a49842eeebeb1989b3f9565eb12c276b
    //线上环境:749a0600b5e48dd77cf8ee680be7b1b7
    //new AopTest().test();
    ImagePipelineConfig config = ImagePipelineConfig.newBuilder(this)
            .setDiskCacheEnabled(false)
            .build();
    Fresco.initialize(this, config);

    //是否显示入口icon
    // DoraemonKit.setAwaysShowMainIcon(false);
    DoraemonKit.disableUpload();
    DoraemonKit.install(this, "749a0600b5e48dd77cf8ee680be7b1b7");
    //DoraemonKit.install(this, kits, "70e78c27f9174d68668d8a66a2b66483")
}
 
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();
    }