Skip to content

Commit

Permalink
Created Release build type.
Browse files Browse the repository at this point in the history
Started app version from start(1.0.0) since app is re-uploaded to playStore as new package name com.akshaw.drinkreminder instead of com.akshaw.drinkreminder.beta
  • Loading branch information
Akshay-kumar79 committed Dec 12, 2023
1 parent 7835758 commit 972bd2c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ build/
.externalNativeBuild
.cxx
local.properties
app/release
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,17 @@ internal fun String.namespace() = this.substringAfterLast(":").replace("-", ".")
fun BaseAppModuleExtension.appSigningConfigs(project: Project) {
signingConfigs {
create("beta") {
storeFile = File(project.findLocalProperty(Config.LocalProperties.SingingConfig.Beta.STORE_FILE).toString())
storePassword = project.findLocalProperty(Config.LocalProperties.SingingConfig.Beta.STORE_PASSWORD).toString()
keyAlias = project.findLocalProperty(Config.LocalProperties.SingingConfig.Beta.KEY_ALIAS).toString()
keyPassword = project.findLocalProperty(Config.LocalProperties.SingingConfig.Beta.KEY_PASSWORD).toString()
storeFile = File(project.findLocalProperty(Config.LocalProperties.SingingConfig.STORE_FILE).toString())
storePassword = project.findLocalProperty(Config.LocalProperties.SingingConfig.STORE_PASSWORD).toString()
keyAlias = project.findLocalProperty(Config.LocalProperties.SingingConfig.KEY_ALIAS).toString()
keyPassword = project.findLocalProperty(Config.LocalProperties.SingingConfig.KEY_PASSWORD).toString()
}

create("release"){
storeFile = File(project.findLocalProperty(Config.LocalProperties.SingingConfig.STORE_FILE).toString())
storePassword = project.findLocalProperty(Config.LocalProperties.SingingConfig.STORE_PASSWORD).toString()
keyAlias = project.findLocalProperty(Config.LocalProperties.SingingConfig.KEY_ALIAS).toString()
keyPassword = project.findLocalProperty(Config.LocalProperties.SingingConfig.KEY_PASSWORD).toString()
}
}
}
Expand All @@ -94,6 +101,7 @@ fun BaseAppModuleExtension.applicationBuildTypes() {
named("release") {
isMinifyEnabled = true
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
signingConfig = signingConfigs.getByName("release")
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,10 @@ object Config {
const val FILE = "local.properties"

object SingingConfig {

object Beta {
const val STORE_FILE = "beta.upload.storeFile"
const val STORE_PASSWORD = "beta.upload.storePassword"
const val KEY_ALIAS = "beta.upload.keyAlias"
const val KEY_PASSWORD = "beta.upload.keyPassword"
}
const val STORE_FILE = "storeFile"
const val STORE_PASSWORD = "storePassword"
const val KEY_ALIAS = "keyAlias"
const val KEY_PASSWORD = "keyPassword"
}
}

Expand Down
4 changes: 2 additions & 2 deletions version.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#FRI, 22 Sep 2023 11:18:00

versionName=1.0.2
versionCode=4
versionName=1.0.0
versionCode=1

0 comments on commit 972bd2c

Please sign in to comment.