Browse Source

1.打开bugly

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

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

702
         super.onCreate()
702
         super.onCreate()
703
         val processName = SystemUtil.getProcessName(this, android.os.Process.myPid())
703
         val processName = SystemUtil.getProcessName(this, android.os.Process.myPid())
704
         if (processName != null && processName.equals(packageName)) {
704
         if (processName != null && processName.equals(packageName)) {
705
-            //CrashReport.initCrashReport(applicationContext, "37c72ff74c", false);
705
+            CrashReport.initCrashReport(applicationContext, "37c72ff74c", false);
706
             instance = this
706
             instance = this
707
             val spUtils = SharedPreferencesUtils.getInstance(this)
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
                 //获得是否在使用时间范围
1115
                 //获得是否在使用时间范围
1116
                 block = StrategyUtils.getPadTimeStrategy(bean)
1116
                 block = StrategyUtils.getPadTimeStrategy(bean)
1117
             }
1117
             }
1118
-            if (Const.isDebug) {
1119
-                //测试状态不锁定
1120
-                block = false
1121
-            }
1122
             val param = spUtils.getParam(Const.DISABLEPAD, false) as Boolean
1118
             val param = spUtils.getParam(Const.DISABLEPAD, false) as Boolean
1123
             if (param || block) {
1119
             if (param || block) {
1124
                 //隐藏账号编辑弹窗
1120
                 //隐藏账号编辑弹窗

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

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

Loading…
Cancel
Save