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,12 +22,11 @@ if (flutterVersionName == null) {
2122 flutterVersionName = ' 1.0'
2223}
2324
24- apply plugin : ' com.android.application'
25- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
26-
2725android {
28- compileSdkVersion 28
29- ndkVersion " 21.4.7075529"
26+ namespace " com.cloudwebrtc.flutterwebrtcdemo"
27+ compileSdkVersion flutter. compileSdkVersion
28+ ndkVersion flutter. ndkVersion
29+
3030
3131 lintOptions {
3232 disable ' InvalidPackage'
@@ -35,8 +35,8 @@ android {
3535 defaultConfig {
3636 // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
3737 applicationId " com.cloudwebrtc.flutterwebrtcdemo"
38- minSdkVersion 21
39- targetSdkVersion 28
38+ minSdkVersion 23
39+ targetSdkVersion flutter . targetSdkVersion
4040 versionCode flutterVersionCode. toInteger()
4141 versionName flutterVersionName
4242 testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
@@ -52,8 +52,6 @@ android {
5252 // TODO: Add your own signing config for the release build.
5353 // Signing with the debug keys for now, so `flutter run --release` works.
5454 signingConfig signingConfigs. debug
55- useProguard true
56- proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
5755 }
5856 }
5957 packagingOptions {
@@ -65,8 +63,4 @@ flutter {
6563 source ' ../..'
6664}
6765
68- dependencies {
69- testImplementation ' junit:junit:4.12'
70- androidTestImplementation ' com.android.support.test:runner:1.0.2'
71- androidTestImplementation ' com.android.support.test.espresso:espresso-core:3.0.2'
72- }
66+ dependencies {}
0 commit comments