From 88b3a4fc0022da33a1e2ef9a69fd46490b8f4cc5 Mon Sep 17 00:00:00 2001 From: Fayozbek Date: Mon, 23 Dec 2024 11:00:00 +0500 Subject: [PATCH] feature-added-namespaces --- agconnect_applinking/android/build.gradle | 4 ++++ agconnect_appmessaging/android/build.gradle | 4 ++++ agconnect_auth/android/build.gradle | 4 ++++ agconnect_clouddb/android/build.gradle | 7 ++++++- agconnect_cloudfunctions/android/build.gradle | 4 ++++ agconnect_core/android/build.gradle | 4 ++++ agconnect_crash/android/build.gradle | 4 ++++ agconnect_remote_config/android/build.gradle | 4 ++++ agconnect_storage/android/build.gradle | 4 ++++ 9 files changed, 38 insertions(+), 1 deletion(-) diff --git a/agconnect_applinking/android/build.gradle b/agconnect_applinking/android/build.gradle index 3d1c6a2..a13b898 100644 --- a/agconnect_applinking/android/build.gradle +++ b/agconnect_applinking/android/build.gradle @@ -25,6 +25,10 @@ android { compileSdkVersion 30 buildToolsVersion = '30.0.3' + if (project.android.hasProperty("namespace")) { + namespace 'com.huawei.agc.flutter.applinking' + } + defaultConfig { minSdkVersion 19 targetSdkVersion 30 diff --git a/agconnect_appmessaging/android/build.gradle b/agconnect_appmessaging/android/build.gradle index 39a85eb..2a4ad85 100644 --- a/agconnect_appmessaging/android/build.gradle +++ b/agconnect_appmessaging/android/build.gradle @@ -26,6 +26,10 @@ apply plugin: 'com.android.library' android { compileSdkVersion 30 buildToolsVersion "30.0.3" + + if (project.android.hasProperty("namespace")) { + namespace 'com.huawei.agc.flutter.appmessaging.agconnect_appmessaging' + } defaultConfig { minSdkVersion 19 diff --git a/agconnect_auth/android/build.gradle b/agconnect_auth/android/build.gradle index 7f758e9..adec855 100644 --- a/agconnect_auth/android/build.gradle +++ b/agconnect_auth/android/build.gradle @@ -27,6 +27,10 @@ android { compileSdkVersion 30 buildToolsVersion "30.0.3" + if (project.android.hasProperty("namespace")) { + namespace 'com.huawei.agconnectauth' + } + defaultConfig { minSdkVersion 18 targetSdkVersion 30 diff --git a/agconnect_clouddb/android/build.gradle b/agconnect_clouddb/android/build.gradle index 297d3e5..81d558e 100644 --- a/agconnect_clouddb/android/build.gradle +++ b/agconnect_clouddb/android/build.gradle @@ -25,6 +25,11 @@ apply plugin: "com.android.library" android { compileSdkVersion 29 buildToolsVersion "29.0.3" + + if (project.android.hasProperty("namespace")) { + namespace 'com.huawei.agconnectclouddb' + } + defaultConfig { minSdkVersion 19 targetSdkVersion 29 @@ -38,6 +43,6 @@ android { } } -dependencies { +dependencies { implementation "com.huawei.agconnect:agconnect-cloud-database:1.9.1.300" } diff --git a/agconnect_cloudfunctions/android/build.gradle b/agconnect_cloudfunctions/android/build.gradle index a8bdf01..55438bf 100644 --- a/agconnect_cloudfunctions/android/build.gradle +++ b/agconnect_cloudfunctions/android/build.gradle @@ -27,6 +27,10 @@ android { compileSdkVersion 30 buildToolsVersion "30.0.1" + if (project.android.hasProperty("namespace")) { + namespace 'com.huawei.agc.flutter.cloudfunctions' + } + defaultConfig { minSdkVersion 18 targetSdkVersion 30 diff --git a/agconnect_core/android/build.gradle b/agconnect_core/android/build.gradle index d93245e..630e7f7 100644 --- a/agconnect_core/android/build.gradle +++ b/agconnect_core/android/build.gradle @@ -27,6 +27,10 @@ android { compileSdkVersion 30 buildToolsVersion "30.0.3" + if (project.android.hasProperty("namespace")) { + namespace 'com.huawei.agconnectcore' + } + defaultConfig { minSdkVersion 18 targetSdkVersion 30 diff --git a/agconnect_crash/android/build.gradle b/agconnect_crash/android/build.gradle index c665832..d2edc1e 100644 --- a/agconnect_crash/android/build.gradle +++ b/agconnect_crash/android/build.gradle @@ -27,6 +27,10 @@ android { compileSdkVersion 30 buildToolsVersion "30.0.3" + if (project.android.hasProperty("namespace")) { + namespace 'com.huawei.agconnectcrash' + } + defaultConfig { minSdkVersion 18 targetSdkVersion 30 diff --git a/agconnect_remote_config/android/build.gradle b/agconnect_remote_config/android/build.gradle index a482d0d..56750a0 100644 --- a/agconnect_remote_config/android/build.gradle +++ b/agconnect_remote_config/android/build.gradle @@ -27,6 +27,10 @@ android { compileSdkVersion 30 buildToolsVersion "30.0.3" + if (project.android.hasProperty("namespace")) { + namespace 'com.huawei.agconnectremoteconfig' + } + defaultConfig { minSdkVersion 18 targetSdkVersion 30 diff --git a/agconnect_storage/android/build.gradle b/agconnect_storage/android/build.gradle index c40918c..fb706fa 100644 --- a/agconnect_storage/android/build.gradle +++ b/agconnect_storage/android/build.gradle @@ -27,6 +27,10 @@ android { compileSdkVersion 30 buildToolsVersion "30.0.3" + if (project.android.hasProperty("namespace")) { + namespace 'com.huawei.agconnect.cloudstorage' + } + defaultConfig { minSdkVersion 18 targetSdkVersion 30