|
1 | 1 | plugins { |
2 | 2 | id "com.android.application" |
| 3 | + // START: FlutterFire Configuration |
| 4 | + id 'com.google.gms.google-services' |
| 5 | + // END: FlutterFire Configuration |
3 | 6 | id "kotlin-android" |
| 7 | + // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. |
4 | 8 | id "dev.flutter.flutter-gradle-plugin" |
5 | 9 | } |
6 | 10 |
|
7 | 11 | def localProperties = new Properties() |
8 | | -def localPropertiesFile = rootProject.file('local.properties') |
| 12 | +def localPropertiesFile = rootProject.file("local.properties") |
9 | 13 | if (localPropertiesFile.exists()) { |
10 | | - localPropertiesFile.withReader('UTF-8') { reader -> |
| 14 | + localPropertiesFile.withReader("UTF-8") { reader -> |
11 | 15 | localProperties.load(reader) |
12 | 16 | } |
13 | 17 | } |
14 | 18 |
|
15 | | -def flutterVersionCode = localProperties.getProperty('flutter.versionCode') |
| 19 | +def flutterVersionCode = localProperties.getProperty("flutter.versionCode") |
16 | 20 | if (flutterVersionCode == null) { |
17 | | - flutterVersionCode = '1' |
| 21 | + flutterVersionCode = "1" |
18 | 22 | } |
19 | 23 |
|
20 | | -def flutterVersionName = localProperties.getProperty('flutter.versionName') |
| 24 | +def flutterVersionName = localProperties.getProperty("flutter.versionName") |
21 | 25 | if (flutterVersionName == null) { |
22 | | - flutterVersionName = '1.0' |
| 26 | + flutterVersionName = "1.0" |
23 | 27 | } |
24 | 28 |
|
25 | 29 | android { |
26 | | - namespace "rocks.outdatedguy.firebase_pagination_example" |
27 | | - compileSdkVersion flutter.compileSdkVersion |
28 | | - ndkVersion flutter.ndkVersion |
| 30 | + namespace = "rocks.outdatedguy.firebase_pagination_example" |
| 31 | + compileSdk = flutter.compileSdkVersion |
| 32 | + ndkVersion = flutter.ndkVersion |
29 | 33 |
|
30 | 34 | compileOptions { |
31 | | - sourceCompatibility JavaVersion.VERSION_1_8 |
32 | | - targetCompatibility JavaVersion.VERSION_1_8 |
33 | | - } |
34 | | - |
35 | | - kotlinOptions { |
36 | | - jvmTarget = '1.8' |
37 | | - } |
38 | | - |
39 | | - sourceSets { |
40 | | - main.java.srcDirs += 'src/main/kotlin' |
| 35 | + sourceCompatibility = JavaVersion.VERSION_17 |
| 36 | + targetCompatibility = JavaVersion.VERSION_17 |
41 | 37 | } |
42 | 38 |
|
43 | 39 | defaultConfig { |
44 | | - applicationId "rocks.outdatedguy.firebase_pagination_example" |
| 40 | + applicationId = "rocks.outdatedguy.firebase_pagination_example" |
45 | 41 | // You can update the following values to match your application needs. |
46 | 42 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. |
47 | | - minSdkVersion flutter.minSdkVersion |
48 | | - targetSdkVersion flutter.targetSdkVersion |
49 | | - versionCode flutterVersionCode.toInteger() |
50 | | - versionName flutterVersionName |
51 | | - multiDexEnabled true |
| 43 | + minSdk = flutter.minSdkVersion |
| 44 | + targetSdk = flutter.targetSdkVersion |
| 45 | + versionCode = flutterVersionCode.toInteger() |
| 46 | + versionName = flutterVersionName |
| 47 | + multiDexEnabled = true |
52 | 48 | } |
53 | 49 |
|
54 | 50 | buildTypes { |
55 | 51 | release { |
56 | | - // TODO: Add your own signing config for the release build. |
57 | 52 | // Signing with the debug keys for now, so `flutter run --release` works. |
58 | | - signingConfig signingConfigs.debug |
| 53 | + signingConfig = signingConfigs.debug |
59 | 54 | } |
60 | 55 | } |
61 | 56 | } |
62 | 57 |
|
63 | 58 | flutter { |
64 | | - source '../..' |
| 59 | + source = "../.." |
65 | 60 | } |
66 | | - |
67 | | -dependencies {} |
0 commit comments