Revert variable name change

pull/848/head
Alex Baker 6 years ago
parent aa65b682c0
commit da4c3da758

@ -67,22 +67,23 @@ android {
targetCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8
} }
@Suppress("LocalVariableName")
buildTypes { buildTypes {
getByName("debug") { getByName("debug") {
val tasksMapboxKeyDebug: String? by project val tasks_mapbox_key_debug: String? by project
val tasksGoogleKeyDebug: String? by project val tasks_google_key_debug: String? by project
applicationIdSuffix = ".debug" applicationIdSuffix = ".debug"
resValue("string", "mapbox_key", tasksMapboxKeyDebug ?: "") resValue("string", "mapbox_key", tasks_mapbox_key_debug ?: "")
resValue("string", "google_key", tasksGoogleKeyDebug ?: "") resValue("string", "google_key", tasks_google_key_debug ?: "")
isTestCoverageEnabled = project.hasProperty("coverage") isTestCoverageEnabled = project.hasProperty("coverage")
} }
getByName("release") { getByName("release") {
val tasksMapboxKey: String? by project val tasks_mapbox_key: String? by project
val tasksGoogleKey: String? by project val tasks_google_key: String? by project
resValue("string", "mapbox_key", tasksMapboxKey ?: "") resValue("string", "mapbox_key", tasks_mapbox_key ?: "")
resValue("string", "google_key", tasksGoogleKey ?: "") resValue("string", "google_key", tasks_google_key ?: "")
isMinifyEnabled = true isMinifyEnabled = true
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard.pro") proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard.pro")
signingConfig = signingConfigs.getByName("release") signingConfig = signingConfigs.getByName("release")

Loading…
Cancel
Save