11plugins {
22 id " com.android.application"
33 id " kotlin-android"
4+ // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
45 id " dev.flutter.flutter-gradle-plugin"
56}
67
8+
79def localProperties = new Properties ()
810def localPropertiesFile = rootProject. file(' local.properties' )
911if (localPropertiesFile. exists()) {
@@ -30,34 +32,30 @@ if (keystorePropertiesFile.exists()) {
3032
3133android {
3234 namespace " com.xycz.simple_live_tv"
33- compileSdkVersion flutter. compileSdkVersion
34- ndkVersion flutter. ndkVersion
35+ compileSdk = flutter. compileSdkVersion
36+ ndkVersion = flutter. ndkVersion
3537
3638 compileOptions {
37- sourceCompatibility JavaVersion . VERSION_1_8
38- targetCompatibility JavaVersion . VERSION_1_8
39+ sourceCompatibility = JavaVersion . VERSION_1_8
40+ targetCompatibility = JavaVersion . VERSION_1_8
3941 }
4042
4143 kotlinOptions {
42- jvmTarget = ' 1.8'
43- }
44-
45- sourceSets {
46- main. java. srcDirs + = ' src/main/kotlin'
44+ jvmTarget = JavaVersion . VERSION_1_8
4745 }
4846
4947 defaultConfig {
5048 // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
5149 applicationId " com.xycz.simple_live_tv"
5250 // You can update the following values to match your application needs.
53- // For more information, see: https://docs. flutter.dev/deployment/android#reviewing-the- gradle-build-configuration .
54- minSdkVersion flutter. minSdkVersion
55- targetSdkVersion flutter. targetSdkVersion
56- versionCode flutterVersionCode . toInteger()
57- versionName flutterVersionName
51+ // For more information, see: https://flutter.dev/to/review- gradle-config .
52+ minSdk = flutter. minSdkVersion
53+ targetSdk = flutter. targetSdkVersion
54+ versionCode = flutter . versionCode
55+ versionName = flutter . versionName
5856 }
5957
60- signingConfigs {
58+ signingConfigs {
6159 release {
6260 keyAlias keystoreProperties[' keyAlias' ]
6361 keyPassword keystoreProperties[' keyPassword' ]
@@ -68,8 +66,7 @@ android {
6866 }
6967 }
7068 buildTypes {
71- buildTypes {
72- debug {
69+ debug {
7370 signingConfig signingConfigs. release
7471 }
7572 profile {
@@ -83,12 +80,9 @@ android {
8380 ' proguard-android-optimize.txt' ),
8481 ' proguard-rules.pro'
8582 }
86- }
8783 }
8884}
8985
9086flutter {
91- source ' ../..'
87+ source = " ../.."
9288}
93-
94- dependencies {}
0 commit comments