Merge branch 'fix/build_scripts' into 'dev'

build: 默认使用极光推送

See merge request halo/android/assistant-android!1624
This commit is contained in:
叶子维
2024-04-16 09:26:45 +08:00
3 changed files with 5 additions and 7 deletions

View File

@ -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'
}

View File

@ -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: 广点通

View File

@ -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: 港澳台