wjc
18 小时以前 2f5411b86c59706d31f6ec7de629d8f860725e46
app/build.gradle
@@ -3,6 +3,7 @@
    // 添加如下配置(华为极光推送)
    id 'com.huawei.agconnect'
}
apply plugin: 'com.google.gms.google-services' // 放在文件底部
//必须配置uni
def mfph = [
        //宿主包名
@@ -24,13 +25,13 @@
            keyPassword '85521566'
        }
    }
    compileSdk 34
    compileSdk 35
    defaultConfig {
        applicationId "com.hdl.photovoltaic"
        minSdk 23
        targetSdk 34
        versionCode 18
        versionName "1.4.0"//版本规则1.3是产品功能迭代用的,最后一位0是我们修复bug用的
        targetSdk 35
        versionCode 20
        versionName "2.0"//版本规则1.3是产品功能迭代用的,最后一位0是我们修复bug用的
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        multiDexEnabled true
        manifestPlaceholders = mfph
@@ -218,6 +219,16 @@
    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'