Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
David Wu committed Feb 16, 2018
1 parent c84e4b1 commit d7aed40
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ android {
minSdkVersion 16
targetSdkVersion 22
versionCode 1
versionName "1.0"
versionName "1.1.0"
ndk {
abiFilters "armeabi-v7a", "x86"
}
Expand All @@ -129,6 +129,16 @@ android {
release {
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
applicationVariants.all { variant ->
variant.outputs.each { output ->
project.ext { appName = 'rnweather' }
def formattedDate = new Date().format('yyyyMMddHHmmss')
def newName = output.outputFile.name
newName = newName.replace("app-", "$project.ext.appName-") //"MyAppName" -> I set my app variables in the root project
newName = newName.replace("-release", "-release" + formattedDate)
output.outputFile = new File(output.outputFile.parent, newName)
}
}
signingConfig signingConfigs.release
}
}
Expand Down

0 comments on commit d7aed40

Please sign in to comment.