Move build parameters to a common file
This commit is contained in:
parent
d92d85fbaf
commit
e5ed0a0641
3 changed files with 23 additions and 25 deletions
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
@file:Suppress("UnstableApiUsage")
|
||||
|
||||
import config.BuildTimeConfig
|
||||
import extension.setupAnvil
|
||||
|
||||
plugins {
|
||||
|
|
@ -22,22 +23,14 @@ android {
|
|||
resValue(
|
||||
type = "string",
|
||||
name = "google_app_id",
|
||||
value = if (isEnterpriseBuild) {
|
||||
"1:912726360885:android:d273c2077ec3291500427c"
|
||||
} else {
|
||||
"1:912726360885:android:d097de99a4c23d2700427c"
|
||||
}
|
||||
value = BuildTimeConfig.GOOGLE_APP_ID_RELEASE,
|
||||
)
|
||||
}
|
||||
getByName("debug") {
|
||||
resValue(
|
||||
type = "string",
|
||||
name = "google_app_id",
|
||||
value = if (isEnterpriseBuild) {
|
||||
"1:912726360885:android:f8de9126a94143d300427c"
|
||||
} else {
|
||||
"1:912726360885:android:def0a4e454042e9b00427c"
|
||||
}
|
||||
value = BuildTimeConfig.GOOGLE_APP_ID_DEBUG,
|
||||
)
|
||||
}
|
||||
register("nightly") {
|
||||
|
|
@ -46,11 +39,7 @@ android {
|
|||
resValue(
|
||||
type = "string",
|
||||
name = "google_app_id",
|
||||
value = if (isEnterpriseBuild) {
|
||||
"1:912726360885:android:3f7e1fe644d99d5a00427c"
|
||||
} else {
|
||||
"1:912726360885:android:e17435e0beb0303000427c"
|
||||
}
|
||||
value = BuildTimeConfig.GOOGLE_APP_ID_NIGHTLY,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue