File tree Expand file tree Collapse file tree 6 files changed +292
-261
lines changed
packages/firebase_snippets_app Expand file tree Collapse file tree 6 files changed +292
-261
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,13 @@ apply plugin: 'kotlin-android'
27
27
apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
28
28
29
29
android {
30
+ namespace = " com.example.firebase_snippets_app"
30
31
compileSdkVersion flutter. compileSdkVersion
31
32
33
+ buildFeatures {
34
+ buildConfig true
35
+ }
36
+
32
37
compileOptions {
33
38
sourceCompatibility JavaVersion . VERSION_1_8
34
39
targetCompatibility JavaVersion . VERSION_1_8
@@ -45,7 +50,7 @@ android {
45
50
defaultConfig {
46
51
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
47
52
applicationId " com.example.firebase_snippets_app"
48
- minSdkVersion 21
53
+ minSdkVersion 23
49
54
targetSdkVersion flutter. targetSdkVersion
50
55
versionCode flutterVersionCode. toInteger()
51
56
versionName flutterVersionName
Original file line number Diff line number Diff line change 1
1
buildscript {
2
- ext. kotlin_version = ' 1.7.10 '
2
+ ext. kotlin_version = ' 1.9.0 '
3
3
repositories {
4
4
google()
5
5
mavenCentral()
6
6
}
7
7
8
8
dependencies {
9
- classpath ' com.android.tools.build:gradle:7.2 .0'
9
+ classpath ' com.android.tools.build:gradle:8.1 .0'
10
10
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
11
- classpath ' com.google.gms:google-services:4.3.10 '
11
+ classpath ' com.google.gms:google-services:4.3.15 '
12
12
classpath ' com.google.firebase:firebase-crashlytics-gradle:2.7.1'
13
13
14
14
}
@@ -19,6 +19,18 @@ allprojects {
19
19
google()
20
20
mavenCentral()
21
21
}
22
+
23
+ subprojects {
24
+ afterEvaluate { project ->
25
+ if (project. hasProperty(' android' )) {
26
+ project. android {
27
+ if (namespace == null ) {
28
+ namespace project. group
29
+ }
30
+ }
31
+ }
32
+ }
33
+ }
22
34
}
23
35
24
36
rootProject. buildDir = ' ../build'
Original file line number Diff line number Diff line change 1
1
org.gradle.jvmargs =-Xmx1536M
2
2
android.useAndroidX =true
3
3
android.enableJetifier =true
4
+ android.defaults.buildfeatures.buildconfig =true
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
3
3
distributionPath =wrapper/dists
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
6
- distributionUrl =https\://services.gradle.org/distributions/gradle-7.5 -all.zip
6
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.1 -all.zip
You can’t perform that action at this time.
0 commit comments