app/build.gradle | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
app/src/main/java/com/hdl/photovoltaic/HDLApp.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
build.gradle | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
countrypicker/build.gradle | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
gradle.properties | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
third-zxing/build.gradle | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
app/build.gradle
@@ -2,6 +2,8 @@ id 'com.android.application' // 添加如下配置(华为极光推送) id 'com.huawei.agconnect' id 'com.didi.dokit' } //必须配置uni def mfph = [ @@ -112,6 +114,41 @@ compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } } dokitExt { //通用设置 comm { //地图经纬度开关 gpsSwitch true //网络开关 networkSwitch true //大图开关 bigImgSwitch true //webView js 抓包 webViewSwitch true } slowMethod { //调用栈模式配置 对应gradle.properties中DOKIT_METHOD_STRATEGY=0 stackMethod { //默认值为 5ms 小于该值的函数在调用栈中不显示 thresholdTime 10 // //调用栈函数入口 千万不要用我默认的配置 如果有特殊需求修改成项目中自己的入口 假如不需要可以去掉该字段 // enterMethods = ["com.hdl.photovoltaic.MainDebugActivity.test1"] // //黑名单 粒度最小到类 暂不支持到方法 千万不要用我默认的配置 如果有特殊需求修改成项目中自己的入口 假如不需要可以去掉该字段 // methodBlacklist = ["com.facebook.drawee.backends.pipeline.Fresco"] } //普通模式配置 对应gradle.properties中DOKIT_METHOD_STRATEGY=1 normalMethod { //默认值为 500ms 小于该值的函数在运行时不会在控制台中被打印 thresholdTime 500 //需要针对函数插装的包名 千万不要用我默认的配置 如果有特殊需求修改成项目中自己的项目包名 假如不需要可以去掉该字段 packageNames = ["com.hdl.photovoltaic"] // //不需要针对函数插装的包名&类名 千万不要用我默认的配置 如果有特殊需求修改成项目中自己的项目包名 假如不需要可以去掉该字段 // methodBlacklist = ["com.hdl.photovoltaic"] } } } //构建时间 @@ -239,5 +276,5 @@ // FCM:在 Firebase 上创建和 JPush 上同包名的待发布应用,创建完成后下载该应用的 google-services.json 配置文件并添加到应用的 module 目录下。 // Huawei:在 Huawei 上创建和 JPush 上同包名的待发布应用,创建完成后下载该应用的 agconnect-services.json 配置文件并添加到应用的 module 目录下。 //可以使用CardView组件来为视图设置阴影效果 debugImplementation 'io.github.didi.dokit:dokitx:3.5.0.1' } app/src/main/java/com/hdl/photovoltaic/HDLApp.java
@@ -12,6 +12,7 @@ import androidx.multidex.MultiDex; import com.didichuxing.doraemonkit.DoKit; import com.hdl.hdlhttp.HxHttpConfig; import com.hdl.linkpm.sdk.HDLLinkPMSdk; import com.hdl.linkpm.sdk.user.HDLLinkPMUser; @@ -154,6 +155,9 @@ this.networkMonitoring(); //初始化本地assets文件夹资源文件 // this.initLocalAssetsData(); new DoKit.Builder(this) // .productId("需要使用平台功能的话,需要到dokit.cn平台申请id") .build(); } @@ -218,6 +222,7 @@ HDLUniMPSDKManager.getInstance().getUniMP().closeUniMP(); } SystemClock.sleep(200); initDCUniMPSDK(); Intent intent = new Intent(getInstance(), LoginActivity.class); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP); build.gradle
@@ -20,6 +20,7 @@ // in the individual module build.gradle files //增加AGC插件配置,以便能同步“agconnect-services.json”文件中的信息.(华为极光推送) classpath 'com.huawei.agconnect:agcp:1.6.1.300' classpath 'io.github.didi.dokit:dokitx-plugin:3.5.0.1' } } countrypicker/build.gradle
@@ -1,11 +1,11 @@ apply plugin: 'com.android.library' android { compileSdkVersion 30 compileSdkVersion 31 defaultConfig { minSdkVersion 15 targetSdkVersion 30 targetSdkVersion 31 versionCode 300 versionName "3.0.0" gradle.properties
@@ -20,4 +20,20 @@ # thereby reducing the size of the R class for that library android.nonTransitiveRClass=true # 可以将v4,v7库转成Android X android.enableJetifier=true android.enableJetifier=true # dokit???? # ???? DOKIT_PLUGIN_SWITCH=true # DOKIT???????booster?? ???????????booster ???????false DOKIT_THIRD_LIB_SWITCH=true # ???? DOKIT_LOG_SWITCH=true # ???Webview????? ??????h5 js?????mock DOKIT_WEBVIEW_CLASS_NAME=com/didichuxing/doraemonkit/widget/webview/MyWebView # dokit ????? DOKIT_METHOD_SWITCH=false # dokit ??????? DOKIT_METHOD_STACK_LEVEL=4 # 0:???? ??????? ??????? ???application onCreate ?attachBaseContext # 1:???? ???????????? ?????????? DOKIT_METHOD_STRATEGY=1 third-zxing/build.gradle
@@ -2,12 +2,12 @@ android { compileSdkVersion 30 compileSdkVersion 31 buildToolsVersion "29.0.1" defaultConfig { minSdkVersion 23 targetSdkVersion 30 targetSdkVersion 31 versionCode 1 versionName "1.0"