Skip to content

Commit

Permalink
debug, release 앱 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
easyhooon committed Nov 15, 2023
1 parent 1632b56 commit ab78619
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
18 changes: 18 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,24 @@ android {
buildFeatures {
buildConfig = true
}

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 @@ -10,7 +10,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:supportsRtl="true"
android:theme="@style/Theme.Psychat"
Expand Down
3 changes: 2 additions & 1 deletion 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">psychat</string>
<string name="app_name">PsyChat</string>
<string name="app_name_dev">PsyChat.dev</string>
</resources>

0 comments on commit ab78619

Please sign in to comment.