@@ -5,26 +5,8 @@ plugins {
5
5
id " dev.flutter.flutter-gradle-plugin"
6
6
}
7
7
8
- def localProperties = new Properties ()
9
- def localPropertiesFile = rootProject. file(" local.properties" )
10
- if (localPropertiesFile. exists()) {
11
- localPropertiesFile. withReader(" UTF-8" ) { reader ->
12
- localProperties. load(reader)
13
- }
14
- }
15
-
16
- def flutterVersionCode = localProperties. getProperty(" flutter.versionCode" )
17
- if (flutterVersionCode == null ) {
18
- flutterVersionCode = " 1"
19
- }
20
-
21
- def flutterVersionName = localProperties. getProperty(" flutter.versionName" )
22
- if (flutterVersionName == null ) {
23
- flutterVersionName = " 1.0"
24
- }
25
-
26
8
android {
27
- namespace = " dev.danvickmiller.formbuildervalidators .example"
9
+ namespace = " com.example .example"
28
10
compileSdk = flutter. compileSdkVersion
29
11
ndkVersion = flutter. ndkVersion
30
12
@@ -33,14 +15,19 @@ android {
33
15
targetCompatibility = JavaVersion . VERSION_1_8
34
16
}
35
17
18
+ kotlinOptions {
19
+ jvmTarget = JavaVersion . VERSION_1_8
20
+ }
21
+
36
22
defaultConfig {
37
- applicationId = " dev.danvickmiller.formbuildervalidators.example"
23
+ // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
24
+ applicationId = " com.example.example"
38
25
// You can update the following values to match your application needs.
39
- // For more information, see: https://docs. flutter.dev/deployment/android#reviewing-the- gradle-build-configuration .
26
+ // For more information, see: https://flutter.dev/to/review- gradle-config .
40
27
minSdk = flutter. minSdkVersion
41
28
targetSdk = flutter. targetSdkVersion
42
- versionCode = flutterVersionCode . toInteger()
43
- versionName = flutterVersionName
29
+ versionCode = flutter . versionCode
30
+ versionName = flutter . versionName
44
31
}
45
32
46
33
buildTypes {
0 commit comments