| | |
| | | // 添加如下配置(华为极光推送) |
| | | id 'com.huawei.agconnect' |
| | | } |
| | | apply plugin: 'com.google.gms.google-services' // 放在文件底部 |
| | | //必须配置uni |
| | | def mfph = [ |
| | | //宿主包名 |
| | |
| | | applicationId "com.hdl.photovoltaic" |
| | | minSdk 23 |
| | | targetSdk 35 |
| | | versionCode 19 |
| | | versionName "1.4.0"//版本规则1.3是产品功能迭代用的,最后一位0是我们修复bug用的 |
| | | versionCode 20 |
| | | versionName "2.0"//版本规则1.3是产品功能迭代用的,最后一位0是我们修复bug用的 |
| | | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" |
| | | multiDexEnabled true |
| | | manifestPlaceholders = mfph |
| | |
| | | implementation 'com.umeng.umsdk:common:9.5.6'// 必选 |
| | | implementation 'com.umeng.umsdk:asms:1.6.3'// 必选 |
| | | implementation 'com.umeng.umsdk:apm:1.7.0' // 错误分析 |
| | | //引入FCM(原生谷歌) |
| | | implementation 'com.google.firebase:firebase-messaging:23.2.1' |
| | | |
| | | // 引入FCM |
| | | implementation 'com.google.firebase:firebase-messaging:23.0.0' // 使用最新版本 |
| | | // 使用 ShortcutBadger 库,清除角标 |
| | | implementation 'me.leolin:ShortcutBadger:1.1.22@aar' |
| | | |
| | | // // 可选:如果你需要处理后台消息,可能需要以下依赖 |
| | | // implementation 'com.google.firebase:firebase-analytics:21.0.0' |
| | | |
| | | // // 接入 FCM 厂商 |
| | | // implementation 'com.google.firebase:firebase-messaging:23.1.2' |