gradle: Limit huawei maven repo to coreservice

* We don't want any more modules from huawei's maven repo except coreservice
* Rename libs syntax to be more clear about developer

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2025-07-07 14:27:08 +08:00
parent e0071aa3c2
commit 31b1567c86
3 changed files with 8 additions and 3 deletions

View File

@@ -264,7 +264,7 @@ dependencies {
implementation(libs.process.phoenix)
"huaweiImplementation"(libs.ag.coreservice)
"huaweiImplementation"(libs.huawei.hms.coreservice)
// LeakCanary
debugImplementation(libs.squareup.leakcanary.android)

View File

@@ -39,7 +39,7 @@ viewpager2 = "1.1.0"
work = "2.10.2"
[libraries]
ag-coreservice = { module = "com.huawei.hms:ag-coreservice", version.ref = "agCoreservice" }
huawei-hms-coreservice = { module = "com.huawei.hms:ag-coreservice", version.ref = "agCoreservice" }
airbnb-epoxy-android = { module = "com.airbnb.android:epoxy", version.ref = "epoxy" }
airbnb-epoxy-processor = { module = "com.airbnb.android:epoxy-processor", version.ref = "epoxy" }
androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref = "activity" }

View File

@@ -36,7 +36,12 @@ dependencyResolutionManagement {
includeModule("com.github.topjohnwu.libsu", "core")
}
}
maven { url = uri("https://developer.huawei.com/repo/") }
// Only included in huawei variants
maven("https://developer.huawei.com/repo/") {
content {
includeModule("com.huawei.hms", "ag-coreservice")
}
}
}
}
include(":app")