1+ plugins {
2+ id " com.android.application"
3+ id " kotlin-android"
4+ id " dev.flutter.flutter-gradle-plugin"
5+ }
6+
17def localProperties = new Properties ()
28def localPropertiesFile = rootProject. file(' local.properties' )
39if (localPropertiesFile. exists()) {
@@ -6,33 +12,14 @@ if (localPropertiesFile.exists()) {
612 }
713}
814
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'
22- }
23-
24- apply plugin : ' com.android.application'
25- apply plugin : ' kotlin-android'
26- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
27-
2815android {
2916 namespace " io.github.v7lin.tencent_kit_example"
3017 compileSdkVersion flutter. compileSdkVersion
3118 ndkVersion flutter. ndkVersion
3219
3320 compileOptions {
34- sourceCompatibility JavaVersion . VERSION_1_8
35- targetCompatibility JavaVersion . VERSION_1_8
21+ sourceCompatibility JavaVersion . VERSION_17
22+ targetCompatibility JavaVersion . VERSION_17
3623 }
3724
3825 defaultConfig {
@@ -42,8 +29,8 @@ android {
4229 // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
4330 minSdkVersion flutter. minSdkVersion
4431 targetSdkVersion flutter. targetSdkVersion
45- versionCode flutterVersionCode . toInteger()
46- versionName flutterVersionName
32+ versionCode flutter . versionCode
33+ versionName flutter . versionName
4734 }
4835
4936 buildTypes {
0 commit comments