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'
2727apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
2828
2929android {
30+ namespace = " com.example.firebase_snippets_app"
3031 compileSdkVersion flutter. compileSdkVersion
3132
33+ buildFeatures {
34+ buildConfig true
35+ }
36+
3237 compileOptions {
3338 sourceCompatibility JavaVersion . VERSION_1_8
3439 targetCompatibility JavaVersion . VERSION_1_8
@@ -45,7 +50,7 @@ android {
4550 defaultConfig {
4651 // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4752 applicationId " com.example.firebase_snippets_app"
48- minSdkVersion 21
53+ minSdkVersion 23
4954 targetSdkVersion flutter. targetSdkVersion
5055 versionCode flutterVersionCode. toInteger()
5156 versionName flutterVersionName
Original file line number Diff line number Diff line change 11buildscript {
2- ext. kotlin_version = ' 1.7.10 '
2+ ext. kotlin_version = ' 1.9.0 '
33 repositories {
44 google()
55 mavenCentral()
66 }
77
88 dependencies {
9- classpath ' com.android.tools.build:gradle:7.2 .0'
9+ classpath ' com.android.tools.build:gradle:8.1 .0'
1010 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 '
1212 classpath ' com.google.firebase:firebase-crashlytics-gradle:2.7.1'
1313
1414 }
@@ -19,6 +19,18 @@ allprojects {
1919 google()
2020 mavenCentral()
2121 }
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+ }
2234}
2335
2436rootProject. buildDir = ' ../build'
Original file line number Diff line number Diff line change 11org.gradle.jvmargs =-Xmx1536M
22android.useAndroidX =true
33android.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
33distributionPath =wrapper/dists
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =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