Browse Source

1.打开bugly

20241218TB223FC(测试jar包)
wangwanlei 7 months ago
parent
commit
ffba4b4d29

+ 1
- 1
app/src/main/java/com/xhly/manageapp/ManageApplication.kt View File

@@ -702,7 +702,7 @@ class ManageApplication : MultiDexApplication() {
702 702
         super.onCreate()
703 703
         val processName = SystemUtil.getProcessName(this, android.os.Process.myPid())
704 704
         if (processName != null && processName.equals(packageName)) {
705
-            //CrashReport.initCrashReport(applicationContext, "37c72ff74c", false);
705
+            CrashReport.initCrashReport(applicationContext, "37c72ff74c", false);
706 706
             instance = this
707 707
             val spUtils = SharedPreferencesUtils.getInstance(this)
708 708
             //获取是否已经解除管控

+ 0
- 4
app/src/main/java/com/xhly/manageapp/ui/main/activity/MainActivity.kt View File

@@ -1115,10 +1115,6 @@ class MainActivity : BaseActivity<MainViewModel, ActivityMainBinding>(),Download
1115 1115
                 //获得是否在使用时间范围
1116 1116
                 block = StrategyUtils.getPadTimeStrategy(bean)
1117 1117
             }
1118
-            if (Const.isDebug) {
1119
-                //测试状态不锁定
1120
-                block = false
1121
-            }
1122 1118
             val param = spUtils.getParam(Const.DISABLEPAD, false) as Boolean
1123 1119
             if (param || block) {
1124 1120
                 //隐藏账号编辑弹窗

+ 3
- 1
corelib/src/main/java/com/xhly/corelib/Const.kt View File

@@ -4,7 +4,8 @@ import android.content.Intent
4 4
 
5 5
 
6 6
 object Const {
7
-    const val isDebug = false
7
+    //TODO 发布时修改测试模式
8
+    const val isDebug = true
8 9
 
9 10
     //记录点击返回的次数,超过UPDATESTRATEGYNUM次请求策略
10 11
     var backNum = 0
@@ -68,6 +69,7 @@ object Const {
68 69
     //存储区域码,存在则在弹窗出现时显示
69 70
     const val REGIONCODEKEY="REGIONCODEKEY"
70 71
     //接口地址 正式地址mc.xhkjedu.com测试地址mcapitest.xhkjedu.com
72
+
71 73
     const val BASEURL="mcapitest.xhkjedu.com"
72 74
 
73 75
     const val URL1: String = "https://$BASEURL/"

Loading…
Cancel
Save