1
- def localProperties = new Properties ()
2
- def localPropertiesFile = rootProject. file(' local.properties' )
3
- if (localPropertiesFile. exists()) {
4
- localPropertiesFile. withReader(' UTF-8' ) { reader ->
5
- localProperties. load(reader)
6
- }
7
- }
8
-
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
- def flutterVersionCode = localProperties. getProperty(' flutter.versionCode' )
15
- if (flutterVersionCode == null ) {
16
- flutterVersionCode = ' 1'
17
- }
18
-
19
- def flutterVersionName = localProperties. getProperty(' flutter.versionName' )
20
- if (flutterVersionName == null ) {
21
- flutterVersionName = ' 1.0'
1
+ plugins {
2
+ id ' com.android.application'
3
+ id ' dev.flutter.flutter-gradle-plugin'
22
4
}
23
5
24
- apply plugin : ' com.android.application'
25
- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
26
-
27
6
android {
28
7
29
8
compileSdk flutter. compileSdkVersion
@@ -37,8 +16,8 @@ android {
37
16
applicationId " io.split.splitio_example"
38
17
minSdkVersion flutter. minSdkVersion
39
18
targetSdkVersion flutter. targetSdkVersion
40
- versionCode flutterVersionCode . toInteger()
41
- versionName flutterVersionName
19
+ versionCode 1
20
+ versionName " 1.0 "
42
21
}
43
22
44
23
buildTypes {
0 commit comments