1
+ plugins {
2
+ id " com.android.application"
3
+ id " kotlin-android"
4
+ id " dev.flutter.flutter-gradle-plugin"
5
+ }
6
+
1
7
def localProperties = new Properties ()
2
8
def localPropertiesFile = rootProject. file(' local.properties' )
3
9
if (localPropertiesFile. exists()) {
@@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) {
6
12
}
7
13
}
8
14
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
-
14
15
def flutterVersionCode = localProperties. getProperty(' flutter.versionCode' )
15
16
if (flutterVersionCode == null ) {
16
17
flutterVersionCode = ' 1'
@@ -21,12 +22,11 @@ if (flutterVersionName == null) {
21
22
flutterVersionName = ' 1.0'
22
23
}
23
24
24
- apply plugin : ' com.android.application'
25
- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
26
-
27
25
android {
28
- compileSdkVersion 28
29
- ndkVersion " 21.4.7075529"
26
+ namespace " com.cloudwebrtc.flutterwebrtcdemo"
27
+ compileSdkVersion flutter. compileSdkVersion
28
+ ndkVersion flutter. ndkVersion
29
+
30
30
31
31
lintOptions {
32
32
disable ' InvalidPackage'
@@ -35,8 +35,8 @@ android {
35
35
defaultConfig {
36
36
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
37
37
applicationId " com.cloudwebrtc.flutterwebrtcdemo"
38
- minSdkVersion 21
39
- targetSdkVersion 28
38
+ minSdkVersion 23
39
+ targetSdkVersion flutter . targetSdkVersion
40
40
versionCode flutterVersionCode. toInteger()
41
41
versionName flutterVersionName
42
42
testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
@@ -52,8 +52,6 @@ android {
52
52
// TODO: Add your own signing config for the release build.
53
53
// Signing with the debug keys for now, so `flutter run --release` works.
54
54
signingConfig signingConfigs. debug
55
- useProguard true
56
- proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
57
55
}
58
56
}
59
57
packagingOptions {
@@ -65,8 +63,4 @@ flutter {
65
63
source ' ../..'
66
64
}
67
65
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