|
|
@@ -44,6 +44,8 @@ import com.sheep.jiuyan.samllsheep.service.DownloadService;
|
|
|
import com.sheep.jiuyan.samllsheep.service.FloatShotScreenService;
|
|
|
import com.sheep.jiuyan.samllsheep.utils.G;
|
|
|
import com.sheep.jiuyan.samllsheep.utils.SpUtils;
|
|
|
+import com.squareup.leakcanary.LeakCanary;
|
|
|
+import com.squareup.leakcanary.RefWatcher;
|
|
|
import com.tencent.bugly.Bugly;
|
|
|
import com.tencent.bugly.beta.Beta;
|
|
|
import com.tencent.smtt.sdk.QbSdk;
|
|
|
@@ -146,6 +148,12 @@ public class SheepApp extends MultiDexApplication {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ private RefWatcher refWatcher;
|
|
|
+
|
|
|
+ public static RefWatcher getRefWatcher() {
|
|
|
+ return mSheepApp.refWatcher;
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public void onCreate() {
|
|
|
super.onCreate();
|
|
|
@@ -157,6 +165,8 @@ public class SheepApp extends MultiDexApplication {
|
|
|
initUtils();
|
|
|
detectFileUriExposure();
|
|
|
ChannelContent.getInstance().initChannelContent(this);
|
|
|
+
|
|
|
+ refWatcher = LeakCanary.install(this);
|
|
|
}
|
|
|
}
|
|
|
|