Skip to content

Commit 6b354ee

Browse files
Feat: Introduce dynamic application name based on build type
This commit introduces a dynamic application name based on the build type. The `applicationId` in `app/build.gradle.kts` is now determined by the `type` property: - `app.mlauncher.beta` for type 1 - `app.mlauncher.alpha` for type 2 - `app.mlauncher` for all other types A new `val applicationName` has been added to facilitate this change.
1 parent 54a83ae commit 6b354ee

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/build.gradle.kts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,18 @@ val versionNameStr = when (type) {
2828
else -> baseVersionName
2929
}
3030

31+
val applicationName = when (type) {
32+
1 -> "app.mlauncher.beta"
33+
2 -> "app.mlauncher.alpha"
34+
else -> "app.mlauncher"
35+
}
36+
3137
android {
3238
namespace = "com.github.droidworksstudio.mlauncher"
3339
compileSdk = 36
3440

3541
defaultConfig {
36-
applicationId = "app.mlauncher"
42+
applicationId = applicationName
3743
minSdk = 28
3844
targetSdk = 36
3945
versionCode = versionCodeInt

0 commit comments

Comments
 (0)