Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature-add-namespaces #397

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions flutter-hms-account/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ apply plugin: 'com.android.library'
android {
compileSdkVersion 33
buildToolsVersion "31.0.0"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.hms.flutter.account'
}

defaultConfig {
minSdkVersion 19
targetSdkVersion 33
Expand Down
7 changes: 6 additions & 1 deletion flutter-hms-ads/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ apply plugin: 'com.android.library'
android {
compileSdkVersion 33
buildToolsVersion "31.0.0"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.hms.flutter.ads'
}

defaultConfig {
minSdkVersion 19
targetSdkVersion 33
Expand All @@ -48,4 +53,4 @@ dependencies {
implementation 'com.huawei.hms:ads-installreferrer:3.4.62.300'
implementation 'com.huawei.hms:stats:6.12.0.300'
implementation 'com.huawei.agconnect:agconnect-core:1.9.1.301'
}
}
5 changes: 5 additions & 0 deletions flutter-hms-adsprime/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ apply plugin: 'com.android.library'
android {
compileSdkVersion 33
buildToolsVersion "31.0.0"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.hms.flutter.ads'
}

defaultConfig {
minSdkVersion 19
targetSdkVersion 33
Expand Down
4 changes: 4 additions & 0 deletions flutter-hms-analytics/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ android {
compileSdkVersion 33
buildToolsVersion "31.0.0"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.hms.flutter.analytics'
}

defaultConfig {
minSdkVersion 19
targetSdkVersion 33
Expand Down
4 changes: 4 additions & 0 deletions flutter-hms-ar/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ android {
compileSdkVersion 30
buildToolsVersion "30.0.3"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.hms.flutter.ar'
}

defaultConfig {
minSdkVersion 26
targetSdkVersion 30
Expand Down
6 changes: 5 additions & 1 deletion flutter-hms-availability/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ apply plugin: 'com.android.library'
android {
compileSdkVersion 33
buildToolsVersion "31.0.0"


if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.hms.flutter.hmsavailability'
}

defaultConfig {
minSdkVersion 19
targetSdkVersion 33
Expand Down
5 changes: 5 additions & 0 deletions flutter-hms-awareness/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ apply plugin: 'com.android.library'
android {
compileSdkVersion 33
buildToolsVersion "31.0.0"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.hms.flutter.awareness'
}

defaultConfig {
minSdkVersion 24
targetSdkVersion 33
Expand Down
4 changes: 4 additions & 0 deletions flutter-hms-contact-shield/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ android {
compileSdkVersion 30
buildToolsVersion '30.0.3'

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.hms.flutter.contactshield'
}

defaultConfig {
minSdkVersion 24
targetSdkVersion 30
Expand Down
4 changes: 4 additions & 0 deletions flutter-hms-drive/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ android {
compileSdkVersion 30
buildToolsVersion "30.0.3"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.hms.flutter.drive'
}

defaultConfig {
minSdkVersion 27
targetSdkVersion 30
Expand Down
4 changes: 4 additions & 0 deletions flutter-hms-dtm/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ android {
compileSdkVersion 30
buildToolsVersion '30.0.3'

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.hms.flutter.dtm'
}

defaultConfig {
minSdkVersion 19
targetSdkVersion 30
Expand Down
4 changes: 4 additions & 0 deletions flutter-hms-fido/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ android {
compileSdkVersion 30
buildToolsVersion "30.0.3"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.hms.flutter.fido'
}

defaultConfig {
minSdkVersion 19
targetSdkVersion 30
Expand Down
4 changes: 4 additions & 0 deletions flutter-hms-gameservice/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ android {
compileSdkVersion 30
buildToolsVersion "30.0.3"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.hms.flutter.huawei_gameservice'
}

defaultConfig {
minSdkVersion 19
targetSdkVersion 30
Expand Down
4 changes: 4 additions & 0 deletions flutter-hms-health/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ android {
compileSdkVersion 33
buildToolsVersion "31.0.0"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.hms.flutter.health'
}

defaultConfig {
minSdkVersion 21
targetSdkVersion 33
Expand Down
5 changes: 5 additions & 0 deletions flutter-hms-iap/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ apply plugin: 'com.android.library'
android {
compileSdkVersion 33
buildToolsVersion "31.0.0"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.hms.flutter.iap'
}

defaultConfig {
minSdkVersion 19
targetSdkVersion 33
Expand Down
4 changes: 4 additions & 0 deletions flutter-hms-location/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ android {
compileSdkVersion 33
buildToolsVersion "31.0.0"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.hms.flutter.location'
}

defaultConfig {
minSdkVersion 21
targetSdkVersion 33
Expand Down
4 changes: 4 additions & 0 deletions flutter-hms-map/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ android {
compileSdkVersion 33
buildToolsVersion "31.0.0"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.hms.flutter.map'
}

defaultConfig {
minSdkVersion 20
targetSdkVersion 33
Expand Down
5 changes: 5 additions & 0 deletions flutter-hms-ml/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ apply plugin: 'com.android.library'
android {
compileSdkVersion 29
buildToolsVersion "29.0.3"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.hms.flutter.ml'
}

defaultConfig {
minSdkVersion 19
targetSdkVersion 29
Expand Down
4 changes: 4 additions & 0 deletions flutter-hms-mlbody/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ android {
compileSdkVersion 31
buildToolsVersion "31.0.0"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.hms.flutter.mlbody'
}

defaultConfig {
minSdkVersion 19
targetSdkVersion 31
Expand Down
4 changes: 4 additions & 0 deletions flutter-hms-mlimage/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ android {
compileSdkVersion 31
buildToolsVersion "31.0.0"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.hms.flutter.mlimage'
}

defaultConfig {
minSdkVersion 19
targetSdkVersion 31
Expand Down
4 changes: 4 additions & 0 deletions flutter-hms-mllanguage/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ android {
compileSdkVersion 33
buildToolsVersion "31.0.0"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.hms.flutter.mllanguage'
}

defaultConfig {
minSdkVersion 19
targetSdkVersion 33
Expand Down
4 changes: 4 additions & 0 deletions flutter-hms-mltext/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ android {
compileSdkVersion 31
buildToolsVersion "31.0.0"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.hms.flutter.mltext'
}

defaultConfig {
minSdkVersion 19
targetSdkVersion 31
Expand Down
4 changes: 4 additions & 0 deletions flutter-hms-modeling/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ android {
compileSdkVersion 30
buildToolsVersion "30.0.3"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.hms.flutter.modeling3d'
}

defaultConfig {
minSdkVersion 26
targetSdkVersion 30
Expand Down
4 changes: 4 additions & 0 deletions flutter-hms-nearbyservice/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ android {
compileSdkVersion 33
buildToolsVersion "31.0.0"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.hms.flutter.nearbyservice'
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
Expand Down
4 changes: 4 additions & 0 deletions flutter-hms-push/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ android {
compileSdkVersion 33
buildToolsVersion '31.0.0'

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.hms.flutter.push'
}

defaultConfig {
minSdkVersion 19
targetSdkVersion 33
Expand Down
7 changes: 6 additions & 1 deletion flutter-hms-pushfcm/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ apply plugin: 'com.android.library'
android {
compileSdkVersion 30
buildToolsVersion "30.0.3"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.hms.flutter.pushfcm'
}

defaultConfig {
minSdkVersion 17
targetSdkVersion 30
Expand All @@ -42,4 +47,4 @@ android {

dependencies {
implementation 'com.huawei.hms:push-fcm:6.3.0.304'
}
}
4 changes: 4 additions & 0 deletions flutter-hms-safetydetect/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ android {
compileSdkVersion 30
buildToolsVersion "30.0.3"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.hms.flutter.safetydetect'
}

defaultConfig {
minSdkVersion 19
targetSdkVersion 30
Expand Down
4 changes: 4 additions & 0 deletions flutter-hms-scan/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ android {
compileSdkVersion 33
buildToolsVersion "31.0.0"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.hms.flutter.scan'
}

defaultConfig {
minSdkVersion 19
targetSdkVersion 33
Expand Down
4 changes: 4 additions & 0 deletions flutter-hms-site/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ android {
compileSdkVersion 33
buildToolsVersion "31.0.0"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.hms.flutter.site'
}

defaultConfig {
minSdkVersion 19
targetSdkVersion 33
Expand Down
4 changes: 4 additions & 0 deletions flutter-hms-wallet/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ android {
compileSdkVersion 30
buildToolsVersion "30.0.3"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.hms.flutter.wallet'
}

defaultConfig {
minSdkVersion 19
targetSdkVersion 30
Expand Down