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,10 @@ if (flutterVersionName == null) {
21
22
flutterVersionName = ' 1.0'
22
23
}
23
24
24
- apply plugin : ' com.android.application'
25
- apply plugin : ' kotlin-android'
26
- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
27
-
28
25
android {
29
- compileSdkVersion 31
26
+ namespace " com.example.example"
27
+ compileSdkVersion flutter. compileSdkVersion
28
+ ndkVersion flutter. ndkVersion
30
29
31
30
compileOptions {
32
31
sourceCompatibility JavaVersion . VERSION_1_8
@@ -43,9 +42,11 @@ android {
43
42
44
43
defaultConfig {
45
44
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
46
- applicationId " dev.jerson.fast_rsa_example"
47
- minSdkVersion 19
48
- targetSdkVersion 31
45
+ applicationId " com.example.example"
46
+ // You can update the following values to match your application needs.
47
+ // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
48
+ minSdkVersion flutter. minSdkVersion
49
+ targetSdkVersion flutter. targetSdkVersion
49
50
versionCode flutterVersionCode. toInteger()
50
51
versionName flutterVersionName
51
52
}
@@ -63,6 +64,4 @@ flutter {
63
64
source ' ../..'
64
65
}
65
66
66
- dependencies {
67
- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
68
- }
67
+ dependencies {}
0 commit comments