2021-09-14 14:02:06 -07:00
|
|
|
@Suppress("UnstableApiUsage")
|
|
|
|
dependencyResolutionManagement {
|
|
|
|
repositories {
|
2021-10-19 10:52:50 -07:00
|
|
|
val isRepoRestrictionEnabled = true
|
|
|
|
|
|
|
|
maven("https://dl.google.com/dl/android/maven2/") { //google()
|
|
|
|
if (isRepoRestrictionEnabled) {
|
|
|
|
content {
|
|
|
|
includeGroup("androidx.navigation")
|
|
|
|
includeGroup("com.android.tools")
|
|
|
|
includeGroup("com.google.testing.platform")
|
|
|
|
includeGroupByRegex("androidx.*")
|
|
|
|
includeGroupByRegex("com\\.android.*")
|
|
|
|
includeGroupByRegex("com\\.android\\.tools.*")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
maven("https://repo.maven.apache.org/maven2/") { // mavenCentral()
|
|
|
|
if (isRepoRestrictionEnabled) {
|
|
|
|
content {
|
|
|
|
excludeGroup("androidx.navigation")
|
|
|
|
excludeGroup("com.android.tools")
|
|
|
|
excludeGroup("com.google.testing.platform")
|
|
|
|
excludeGroupByRegex("androidx.*")
|
|
|
|
excludeGroupByRegex("com\\.android.*")
|
|
|
|
excludeGroupByRegex("com\\.android\\.tools.*")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-09-14 14:02:06 -07:00
|
|
|
}
|
|
|
|
}
|