Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Commit

Permalink
Update automatic versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
pokerazor committed Jul 26, 2017
1 parent f33bd47 commit 44d8c5a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ buildscript {

classpath 'com.github.Triple-T:gradle-play-publisher:8cda31a5d0e3c4f2d7f47ffde6fc3b370e59dd8a'

classpath 'com.github.menny:GradleVersion:0.0.2'
classpath 'com.github.menny:GradleVersion:0.0.4'

classpath('fr.avianey.androidsvgdrawable:gradle-plugin:3.0.0') {
exclude group: 'xerces'
Expand All @@ -36,8 +36,8 @@ apply plugin: "androidsvgdrawable"


def generators = [
new net.evendanan.versiongenerator.generators.EnvBuildVersionGenerator.CircleCi(104),
new net.evendanan.versiongenerator.generators.GitBuildVersionGenerator(104),
new net.evendanan.versiongenerator.generators.EnvBuildVersionGenerator.CircleCi(104,0),
new net.evendanan.versiongenerator.generators.GitBuildVersionGenerator(104,0),
new net.evendanan.versiongenerator.generators.StaticVersionGenerator()
]

Expand All @@ -54,6 +54,10 @@ android {
versionName versionData.versionName
versionCode versionData.versionCode

// change name of generated apk to make previews and testing of multiple packs easier
def packName = applicationId.substring(applicationId.lastIndexOf(".") + 1)
setProperty("archivesBaseName", "ASKLangPack-${packName}-${versionCode}")

println "Building ${applicationId} v${versionName}, version-code ${versionCode}..."
}

Expand Down

0 comments on commit 44d8c5a

Please sign in to comment.