Skip to content

Commit

Permalink
Merge 75dd744 into 271f4c2
Browse files Browse the repository at this point in the history
  • Loading branch information
KxxHyoRim authored Oct 27, 2023
2 parents 271f4c2 + 75dd744 commit 9e5035e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@file:Suppress("UnstableApiUsage")

import org.jetbrains.kotlin.konan.properties.Properties

val lgtmPropertiesFile = rootProject.file("lgtm.properties")
Expand Down Expand Up @@ -45,6 +47,23 @@ android {
}
}

flavorDimensions += "version"
productFlavors {
create("prod") {
dimension = "version"
manifestPlaceholders["appLabel"] = "LGTM"
buildConfigField("boolean", "IS_PROD", "true")
buildConfigField("boolean", "IS_DEV", "false")
}
create("dev") {
dimension = "version"
applicationIdSuffix = ".dev"
manifestPlaceholders["appLabel"] = "(Dev)LGTM"
buildConfigField("boolean", "IS_PROD", "false")
buildConfigField("boolean", "IS_DEV", "true")
}
}

buildFeatures {
buildConfig = true
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
android:name=".LGTMApplication"
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:label="${appLabel}"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.LGTMAndroid"
Expand Down

0 comments on commit 9e5035e

Please sign in to comment.