@@ -8,42 +8,28 @@ plugins {
88 id " dev.flutter.flutter-gradle-plugin"
99}
1010
11- def localProperties = new Properties ()
12- def localPropertiesFile = rootProject. file(" local.properties" )
13- if (localPropertiesFile. exists()) {
14- localPropertiesFile. withReader(" UTF-8" ) { reader ->
15- localProperties. load(reader)
16- }
17- }
18-
19- def flutterVersionCode = localProperties. getProperty(" flutter.versionCode" )
20- if (flutterVersionCode == null ) {
21- flutterVersionCode = " 1"
22- }
23-
24- def flutterVersionName = localProperties. getProperty(" flutter.versionName" )
25- if (flutterVersionName == null ) {
26- flutterVersionName = " 1.0"
27- }
28-
2911android {
3012 namespace = " rocks.outdatedguy.firebase_pagination_example"
3113 compileSdk = flutter. compileSdkVersion
32- ndkVersion = flutter . ndkVersion
14+ ndkVersion = " 27.0.12077973 "
3315
3416 compileOptions {
3517 sourceCompatibility = JavaVersion . VERSION_17
3618 targetCompatibility = JavaVersion . VERSION_17
3719 }
3820
21+ kotlinOptions {
22+ jvmTarget = JavaVersion . VERSION_17
23+ }
24+
3925 defaultConfig {
4026 applicationId = " rocks.outdatedguy.firebase_pagination_example"
4127 // You can update the following values to match your application needs.
42- // For more information, see: https://docs. flutter.dev/deployment/android#reviewing-the- gradle-build-configuration .
28+ // For more information, see: https://flutter.dev/to/review- gradle-config .
4329 minSdk = flutter. minSdkVersion
4430 targetSdk = flutter. targetSdkVersion
45- versionCode = flutterVersionCode . toInteger()
46- versionName = flutterVersionName
31+ versionCode = flutter . versionCode
32+ versionName = flutter . versionName
4733 multiDexEnabled = true
4834 }
4935
0 commit comments