Fix #1 use the default way of versioning on Android

This commit is contained in:
Miquel Beltran 2019-10-06 20:15:41 +02:00
parent 9dce7e94db
commit 3649fd619c
2 changed files with 2 additions and 3 deletions

View file

@ -47,8 +47,7 @@ android {
minSdkVersion 21 // avoid max 64k method limit
targetSdkVersion 28
def (majorNum, minorNum, buildNum) = flutterVersionName.tokenize( '.' )
versionCode majorNum.toInteger() * 1_000_000 + minorNum.toInteger() * 1_000 + buildNum.toInteger()
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

View file

@ -9,7 +9,7 @@ description: Timy group messaging app
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
version: 1.0.23+1
version: 1.0.0+1
environment:
sdk: ">=2.2.2 <3.0.0"