1+ plugins {
2+ id " com.android.application"
3+ id " kotlin-android"
4+ id " dev.flutter.flutter-gradle-plugin"
5+ }
6+
17def localProperties = new Properties ()
28def localPropertiesFile = rootProject. file(' local.properties' )
39if (localPropertiesFile. exists()) {
@@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) {
612 }
713}
814
9- def flutterRoot = localProperties. getProperty(' flutter.sdk' )
10- if (flutterRoot == null ) {
11- throw new GradleException (" Flutter SDK not found. Define location with flutter.sdk in the local.properties file." )
12- }
13-
1415def flutterVersionCode = localProperties. getProperty(' flutter.versionCode' )
1516if (flutterVersionCode == null ) {
1617 flutterVersionCode = ' 1'
@@ -21,11 +22,8 @@ if (flutterVersionName == null) {
2122 flutterVersionName = ' 1.0'
2223}
2324
24- apply plugin : ' com.android.application'
25- apply plugin : ' kotlin-android'
26- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
27-
2825android {
26+ namespace " com.appveyor.flet"
2927 compileSdkVersion flutter. compileSdkVersion
3028 ndkVersion flutter. ndkVersion
3129
@@ -43,22 +41,16 @@ android {
4341 }
4442
4543 defaultConfig {
46- // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4744 applicationId " com.appveyor.flet"
48- // You can update the following values to match your application needs.
49- // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
5045 minSdkVersion flutter. minSdkVersion
5146 targetSdkVersion flutter. targetSdkVersion
5247 versionCode flutterVersionCode. toInteger()
5348 versionName flutterVersionName
54-
5549 minSdkVersion 21
5650 }
5751
5852 buildTypes {
5953 release {
60- // TODO: Add your own signing config for the release build.
61- // Signing with the debug keys for now, so `flutter run --release` works.
6254 signingConfig signingConfigs. debug
6355 }
6456 }
@@ -68,6 +60,4 @@ flutter {
6860 source ' ../..'
6961}
7062
71- dependencies {
72- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
73- }
63+ dependencies {}
0 commit comments