Skip to content

Commit

Permalink
Change apk build naming
Browse files Browse the repository at this point in the history
  • Loading branch information
bokuhe committed Nov 15, 2021
1 parent bcdfeb3 commit 249ad08
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,12 @@ def jscFlavor = 'org.webkit:android-jsc:+'
*/
def enableHermes = project.ext.react.get("enableHermes", false)

static def renameArtifact()
static def renameArtifact(project, versionCode)
{
def project = 'station'
//def version = defaultConfig.versionName
def date = new Date().format("yyyyMMdd")
//def date = new Date().format("yyyyMMdd")
def hash = 'git rev-parse --verify --short HEAD'.execute().text.trim()

return project + '-' + date + '-' + hash
return project + '-' + versionCode + '-' + hash
}

android {
Expand All @@ -150,7 +148,7 @@ android {
versionCode 10503003
versionName "1.5.3"
multiDexEnabled true
setProperty('archivesBaseName', renameArtifact())
setProperty('archivesBaseName', renameArtifact('station-mobile', versionCode))
missingDimensionStrategy 'react-native-camera', 'general'
}
splits {
Expand Down

0 comments on commit 249ad08

Please sign in to comment.