apply plugin: 'com.android.application' // 极光推送 华为3、 apply plugin: 'com.huawei.agconnect' apply from: '../dependencies.gradle' android { defaultConfig { applicationId "com.shanp.deerdirector" // region 极光推送2、 必须配置在 主模块下的build.gradle manifestPlaceholders = [ JPUSH_PKGNAME: "com.shanp.deerdirector", JPUSH_APPKEY : "49fb72ec414fb09293cc724a", //JPush 上注册的包名对应的 Appkey. JPUSH_CHANNEL: "developer-default", //暂时填写默认值即可. //meizu_config_start MEIZU_APPKEY : "MZ-魅族的APPKEY", MEIZU_APPID : "MZ-魅族的APPID", //meizu_config_end //xiaomi_config_start XIAOMI_APPID : "MI-小米的APPID", XIAOMI_APPKEY : "MI-小米的APPKEY", //xiaomi_config_end //oppo_config_start OPPO_APPKEY : "OP-oppo的APPKEY", OPPO_APPID : "OP-oppo的APPID", OPPO_APPSECRET: "OP-oppo的APPSECRET", //oppo_config_end //vivo_config_start VIVO_APPKEY : "vivo的APPKEY", VIVO_APPID : "vivo的APPID", //vivo_config_end ] // endregion // 极光推送 华为 // HMS 服务必须要求 app 签名才能注册成功。指纹证书是在终端采用keytool -list -v -keystore keystorefileName 获取偶对应的指纹证书. // signingConfigs { // release { // storeFile file("release.keystore")//签名文件的path // storePassword "123456" // keyAlias "android.keystore" // keyPassword "123456" // } // } // // buildTypes { // release { // minifyEnabled true // proguardFiles 'proguard-rules.pro' // signingConfig signingConfigs.release // } // debug { // minifyEnabled false // signingConfig signingConfigs.release // } // } } } dependencies { //根据是否独立运行,将模块作为apk还是module if (!singleModule.toBoolean()) { //其他模块作为app运行的话,就不能依赖库作为lib用 } implementation project(path: ':service') implementation project(path: ':demo') implementation project(path: ':account') implementation project(path: ':watermark') implementation project(path: ':document') }