| | |
| | | id 'com.android.application' |
| | | // 添加如下配置(华为极光推送) |
| | | id 'com.huawei.agconnect' |
| | | id 'com.didi.dokit' |
| | | |
| | | } |
| | | //必须配置uni |
| | | def mfph = [ |
| | |
| | | keyPassword '85521566' |
| | | } |
| | | } |
| | | compileSdkVersion 31 |
| | | compileSdkVersion 34 |
| | | defaultConfig { |
| | | applicationId "com.hdl.photovoltaic" |
| | | minSdkVersion 23 |
| | | targetSdkVersion 31 |
| | | versionCode 1 |
| | | targetSdkVersion 34 |
| | | versionCode 2 |
| | | versionName "1.5.0"//版本规则1.3是产品功能迭代用的,最后一位0是我们修复bug用的 |
| | | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" |
| | | multiDexEnabled true |
| | |
| | | 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.ui.StartActivity"] |
| | | // //黑名单 粒度最小到类 暂不支持到方法 千万不要用我默认的配置 如果有特殊需求修改成项目中自己的入口 假如不需要可以去掉该字段 |
| | | // 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"] |
| | | } |
| | | } |
| | | } |
| | | //构建时间 |
| | | static def generateTime() { |
| | | return new Date().format("yyyyMMddHHmm") |
| | |
| | | //国家列表和手机区号库 |
| | | implementation project(path: ':countrypicker') |
| | | //二维码库 |
| | | implementation project(path: ':third-zxing') |
| | | // implementation project(path: ':third-zxing') |
| | | //Link本地库(在线依赖网络库) |
| | | implementation 'com.hdl.android:pmsdk:1.0.2' |
| | | implementation 'com.hdl.android:debugsdk:1.0.33' |
| | | implementation 'com.hdl.android:pmsdk:1.0.9' |
| | | implementation 'com.hdl.android:debugsdk:1.0.54' |
| | | |
| | | testImplementation 'junit:junit:4.13.2' |
| | | androidTestImplementation 'androidx.test.ext:junit:1.1.3' |
| | |
| | | // 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' |
| | | } |