From 33d7afec71eefcceb1ae9cd6d545eff042c57b88 Mon Sep 17 00:00:00 2001 From: chenjuntao Date: Fri, 26 Apr 2024 13:37:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E6=9E=81=E5=85=89?= =?UTF-8?q?=E6=8E=A8=E9=80=81=E9=80=9A=E8=BF=87=20ContentProvider=20?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=88=9D=E5=A7=8B=E5=8C=96=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 5 +++-- feature/jg_push/src/main/AndroidManifest.xml | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 5ea0cf0b40..60445e9201 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -409,8 +409,9 @@ dependencies { } internalImplementation(project(':module_internal_test')) - // 根据BUILD_PUSH_TYPE决定使用哪个推送SDK,目前默认使用阿里云推送 - def pushProject = findProperty('BUILD_PUSH_TYPE') == 'jg' + def pushProperty = findProperty('BUILD_PUSH_TYPE') + // 根据BUILD_PUSH_TYPE决定使用哪个推送SDK,目前默认使用极光推送 + def pushProject = (pushProperty == null || pushProperty == 'jg') ? project(':feature:jg_push') : project(':feature:acloud_push') implementation(pushProject) { exclude group: 'androidx.swiperefreshlayout' diff --git a/feature/jg_push/src/main/AndroidManifest.xml b/feature/jg_push/src/main/AndroidManifest.xml index 854922f114..7b323363bb 100644 --- a/feature/jg_push/src/main/AndroidManifest.xml +++ b/feature/jg_push/src/main/AndroidManifest.xml @@ -32,6 +32,12 @@ + + \ No newline at end of file