Skip to content

Commit

Permalink
[FEAT] release, debug 로 앱을 분리
Browse files Browse the repository at this point in the history
release -> I'Lab
debug -> I'Lab.dev
  • Loading branch information
easyhooon committed Feb 1, 2024
1 parent 1fbc9ad commit 34acaea
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
18 changes: 18 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,24 @@ android {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
}
}

buildTypes {
getByName("debug") {
isDebuggable = true
applicationIdSuffix = ".dev"
manifestPlaceholders += mapOf(
"appName" to "@string/app_name_dev",
)
}

getByName("release") {
isDebuggable = false
signingConfig = signingConfigs.getByName("debug")
manifestPlaceholders += mapOf(
"appName" to "@string/app_name",
)
}
}
}

dependencies {
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 @@ -15,7 +15,7 @@
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:label="${appName}"
android:roundIcon="@mipmap/ic_launcher_round"
android:screenOrientation="portrait"
android:supportsRtl="true"
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<resources>
<string name="app_name">I\'Lab</string>
<string name="app_name_dev">I\'Lab.dev</string>
</resources>

0 comments on commit 34acaea

Please sign in to comment.