diff --git a/app/build.gradle b/app/build.gradle index 475d3db29d..65aed81c05 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -413,11 +413,9 @@ dependencies { } internalImplementation(project(':module_internal_test')) -// // 根据BUILD_PUSH_TYPE决定使用哪个推送SDK,目前默认使用阿里云推送 -// def pushProject = findProperty('BUILD_PUSH_TYPE') == 'jg' -// ? project(':feature:jg_push') : project(':feature:acloud_push') - // 默认使用极光推送 - def pushProject = project(':feature:jg_push') + // 根据BUILD_PUSH_TYPE决定使用哪个推送SDK,目前默认使用阿里云推送 + def pushProject = findProperty('BUILD_PUSH_TYPE') == 'jg' + ? project(':feature:jg_push') : project(':feature:acloud_push') implementation(pushProject) { exclude group: 'androidx.swiperefreshlayout' } diff --git a/scripts/build_with_simple_backup.sh b/scripts/build_with_simple_backup.sh index e27589414c..17d2085705 100755 --- a/scripts/build_with_simple_backup.sh +++ b/scripts/build_with_simple_backup.sh @@ -27,7 +27,7 @@ fi BUILD_VARIANT_ENV=publish BUILD_VARIANT_REGION=cn BUILD_APK_CHANNEL_NAME=标准正式包 -BUILD_PUSH_TYPE=ac +BUILD_PUSH_TYPE=jg BUILD_WITH_INIT_GRADLE=true # 添加 -t 指定编译环境,可选值:t: 头条 k: 快手 g: 广点通 diff --git a/scripts/jenkins_build.sh b/scripts/jenkins_build.sh index 64409e26db..bf0c6c6157 100755 --- a/scripts/jenkins_build.sh +++ b/scripts/jenkins_build.sh @@ -23,7 +23,7 @@ sed -i 's/buildConfigField "long", "BUILD_TIME", "0"/buildConfigField "long", "B git log --pretty=format:'%s' --max-count=20 --no-merges > app/src/main/assets/gitlog.txt BUILD_VARIANT_REGION=cn -BUILD_PUSH_TYPE=ac +BUILD_PUSH_TYPE=jg # 添加 -c 代表启用 compose setting 模块 # 添加 -r 指定区域,可选值: cn: 中国大陆 gat: 港澳台