Skip to content

Commit

Permalink
removed auto versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewsibigtroth committed Nov 24, 2014
1 parent 46df3f8 commit 3595f69
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions android/PhysicalWeb/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,12 @@ android {
compileSdkVersion 21
buildToolsVersion "21.0.2"

//auto versioning logic
def versionPropertiesFile = file('version.properties')
if (versionPropertiesFile.canRead()) {
def Properties properties = new Properties()
properties.load(new FileInputStream(versionPropertiesFile))
def major = properties['MAJOR'].toInteger()
def minor = properties['MINOR'].toInteger()
def build = properties['BUILD'].toInteger() + 1
properties['BUILD'] = build.toString()
properties.store(versionPropertiesFile.newWriter(), null)

defaultConfig {
applicationId "physical_web.org.physicalweb"
minSdkVersion 18
targetSdkVersion 21
versionCode 4
versionName "${major}.${minor}.${build}"
}
defaultConfig {
applicationId "physical_web.org.physicalweb"
minSdkVersion 18
targetSdkVersion 21
versionCode 4
versionName "0.1.737"
}

buildTypes {
Expand Down

0 comments on commit 3595f69

Please sign in to comment.