package me.ykrank.s1next.util;

import android.content.Context;
import android.support.annotation.NonNull;

import com.tencent.bugly.Bugly;
import com.tencent.bugly.crashreport.CrashReport;

import me.ykrank.s1next.BuildConfig;

import static me.ykrank.s1next.util.L.BUGLY_APP_ID;

/**
 * Created by ykrank on 2017/8/9.
 */

public class BuglyUtils {

    public static void init(@NonNull Context context) {
        final Context appContext = context.getApplicationContext();
        RxJavaUtil.workInRxIoThread(() -> {
            CrashReport.UserStrategy userStrategy = new CrashReport.UserStrategy(appContext);
            userStrategy.setAppVersion(BuildConfig.VERSION_NAME + "-" + BuildConfig.VERSION_CODE);
            Bugly.init(appContext, BUGLY_APP_ID, BuildConfig.DEBUG, userStrategy);
        });
    }
}

@@ -133,16 +133,52 @@
 .Bugly;%0A
+import com.tencent.bugly.beta.Beta;%0A
 import c
@@ -741,16 +741,56 @@
 N_CODE);
+%0A%0A            Beta.enableHotfix = false;
 %0A       

Disable hotfix