From bac9f8174e7207acdde7d0dfe17628a2c3fb709b Mon Sep 17 00:00:00 2001 From: Miguel Ruivo Date: Sat, 25 May 2019 12:07:58 +0100 Subject: [PATCH] updates example's build.gradle --- README.md | 1 + example/android/app/build.gradle | 14 ++------------ 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index dbdcbc5..e779255 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ [![pub package](https://img.shields.io/pub/v/file_picker.svg)](https://pub.dartlang.org/packages/file_picker) [![Awesome Flutter](https://img.shields.io/badge/Awesome-Flutter-blue.svg?longCache=true&style=flat-square)](https://github.com/Solido/awesome-flutter) +[![Codemagic build status](https://api.codemagic.io/apps/5ce89f4a9b46f5000ca89638/5ce89f4a9b46f5000ca89637/status_badge.svg)](https://codemagic.io/apps/5ce89f4a9b46f5000ca89638/5ce89f4a9b46f5000ca89637/latest_build) # file_picker diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index db4fb56..ce5983a 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -11,16 +11,6 @@ if (flutterRoot == null) { throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") } -def flutterVersionCode = localProperties.getProperty('flutter.versionCode') -if (flutterVersionCode == null) { - throw new GradleException("versionCode not found. Define flutter.versionCode in the local.properties file.") -} - -def flutterVersionName = localProperties.getProperty('flutter.versionName') -if (flutterVersionName == null) { - throw new GradleException("versionName not found. Define flutter.versionName in the local.properties file.") -} - apply plugin: 'com.android.application' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" @@ -36,8 +26,8 @@ android { applicationId "com.mr.flutter.plugin.filepickerexample" minSdkVersion 16 targetSdkVersion 28 - versionCode flutterVersionCode.toInteger() - versionName flutterVersionName + versionCode 1 + versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" }