Update examples to match the new version of generated build.gradle (#25483)

This version honors flutter tool's --build-number/--build-name flags.
This commit is contained in:
Stanislav Baranov
2018-12-18 14:39:12 -08:00
committed by GitHub
parent 693fb6560e
commit 8acc058cf1
9 changed files with 121 additions and 41 deletions

View File

@@ -13,12 +13,12 @@ if (flutterRoot == null) {
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
throw new GradleException("versionCode not found. Define flutter.versionCode in the local.properties file.")
flutterVersionCode = '1'
}
def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
throw new GradleException("versionName not found. Define flutter.versionName in the local.properties file.")
flutterVersionName = '1.0'
}
apply plugin: 'com.android.application'