wjc
4 小时以前 8b43d4e1190fc9e2261be0579e53cc6c2987f946
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 14
        versionName "1.2.1"//版本规则1.3是产品功能迭代用的,最后一位0是我们修复bug用的
        targetSdk 35
        versionCode 20
        versionName "2.0"//版本规则1.3是产品功能迭代用的,最后一位0是我们修复bug用的
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        multiDexEnabled true
        manifestPlaceholders = mfph
@@ -90,7 +91,7 @@
     */
    android.applicationVariants.configureEach { variant ->
        variant.outputs.configureEach {
            outputFileName = "photovoltaic_v${versionName}_${generateTime()}_${getEnvironmentVersion(4)}.apk"
            outputFileName = "photovoltaic_v${versionName}_${generateTime()}_${getEnvironmentVersion(2)}.apk"
        }
    }
@@ -153,7 +154,7 @@
    //二维码库
    implementation project(path: ':third-zxing')
    //Link本地库(在线依赖网络库)
    implementation 'com.hdl.android:pmsdk:1.0.11'
    implementation 'com.hdl.android:pmsdk:1.0.18'
//    implementation 'com.hdl.android:debugsdk:1.0.71'
    implementation project(path: ':sdk')
    implementation 'androidx.activity:activity:1.2.3'
@@ -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'