Skip to content

Commit

Permalink
Add suffix to debug build package name (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
mars885 authored Oct 23, 2024
1 parent 93670c9 commit 0eb5838
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class GamedgeAndroidPlugin : Plugin<Project> {
private companion object {
const val APPLICATION_ID = "com.paulrybitskyi.gamedge"
const val BUILD_TYPE_DEBUG = "debug"
const val BUILD_TYPE_DEBUG_SUFFIX = ".debug"
const val BUILD_TYPE_RELEASE = "release"
const val SIGNING_CONFIG_RELEASE = "release"
const val KEYSTORE_FILE_NAME = "keystore.properties"
Expand Down Expand Up @@ -131,6 +132,9 @@ class GamedgeAndroidPlugin : Plugin<Project> {
}

buildTypes {
getByName(BUILD_TYPE_DEBUG) {
applicationIdSuffix = BUILD_TYPE_DEBUG_SUFFIX
}
getByName(BUILD_TYPE_RELEASE) {
isMinifyEnabled = true
signingConfig = signingConfigs.getByName(SIGNING_CONFIG_RELEASE)
Expand Down
21 changes: 21 additions & 0 deletions core/src/debug/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>

<!--
~ Copyright 2024 Paul Rybitskyi, [email protected]
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<resources>
<string name="app_name" translatable="false">Gamedge Dev</string>
</resources>

0 comments on commit 0eb5838

Please sign in to comment.