Skip to content

chore(deps): Unify versions into global config and update AGP version to 8.2.1 #17272

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
31aab4a
chore(deps): Unify versions into gobal config and update AGP version …
MichaelVerdon Apr 10, 2025
85b93a6
chore(deps): bump gradle wrapper gradle version
MichaelVerdon Apr 10, 2025
025ce20
fix(deps): get analytics
MichaelVerdon Apr 11, 2025
161dc41
fix(deps): Fix performance
MichaelVerdon Apr 11, 2025
27a600a
fix(deps): expose firebaseCoreProject
MichaelVerdon Apr 11, 2025
6d0660a
fix(deps): ensure desugaring enabled
MichaelVerdon Apr 11, 2025
7c2f834
fix(deps): create local configs for each package
MichaelVerdon Apr 11, 2025
6ffeef3
chore(deps): local configs to example apps
MichaelVerdon Apr 11, 2025
d80c0d9
chore(deps): dataconnect config
MichaelVerdon Apr 11, 2025
5bcf242
feat(deps): started script file to change java and compile versions
MichaelVerdon Apr 11, 2025
44b182e
chore(deps): automated script working
MichaelVerdon Apr 16, 2025
8b15b09
fix: cleanup and make script copy gradle files only
MichaelVerdon Apr 17, 2025
06f4498
fix: change path of global-config
MichaelVerdon Apr 17, 2025
84b2f86
chore: specific handling for auth
MichaelVerdon Apr 17, 2025
537e480
fix: revert melos.yaml change
MichaelVerdon Apr 17, 2025
3f57b8a
chore: more meaningful comment
MichaelVerdon Apr 17, 2025
84d3c01
chore: match android-sdk versions
MichaelVerdon Apr 17, 2025
51f9e28
fix: support gradle
MichaelVerdon Apr 23, 2025
578b531
fix: ext issue
MichaelVerdon Apr 23, 2025
de70f87
fix: removed random change
MichaelVerdon Apr 23, 2025
1196c9c
fix: ext issue
MichaelVerdon Apr 23, 2025
b7cea82
fix: test
MichaelVerdon Apr 24, 2025
3bf1a76
feat: add AGP version support
MichaelVerdon Apr 30, 2025
ece4349
chore: run script
MichaelVerdon Apr 30, 2025
b883c6b
Merge branch 'main' into global-versions
MichaelVerdon Apr 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions gradle/auth-global-config.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ext {
compileSdk=34
minSdk=23
targetSdk=34
javaVersion = JavaVersion.toVersion(17)
androidGradlePluginVersion = '8.2.1'
}
7 changes: 7 additions & 0 deletions gradle/global-config.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ext {
compileSdk=34
minSdk=21
targetSdk=34
javaVersion = JavaVersion.toVersion(17)
androidGradlePluginVersion = '8.2.1'
}
16 changes: 7 additions & 9 deletions packages/cloud_firestore/cloud_firestore/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
group 'io.flutter.plugins.firebase.cloudfirestore'
version '1.0-SNAPSHOT'

apply plugin: 'com.android.library'
apply from: file("local-config.gradle")

buildscript {
repositories {
google()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:8.1.2'
}
}

allprojects {
Expand All @@ -19,7 +18,6 @@ allprojects {
}
}

apply plugin: 'com.android.library'

def firebaseCoreProject = findProject(':firebase_core')
if (firebaseCoreProject == null) {
Expand All @@ -40,16 +38,16 @@ android {
namespace 'io.flutter.plugins.firebase.firestore'
}

compileSdk 35
compileSdkVersion project.ext.compileSdk

defaultConfig {
minSdk 21
minSdkVersion project.ext.minSdk
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
sourceCompatibility project.ext.javaVersion
targetCompatibility project.ext.javaVersion
}

buildFeatures {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ext {
compileSdk=34
minSdk=21
targetSdk=34
javaVersion = JavaVersion.toVersion(17)
androidGradlePluginVersion = '8.2.1'
}
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
rootProject.name = 'cloud_firestore'

apply from: file("local-config.gradle")

pluginManagement {
plugins {
id "com.android.application" version project.ext.androidGradlePluginVersion
id "com.android.library" version project.ext.androidGradlePluginVersion
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id "dev.flutter.flutter-gradle-plugin"
}
apply from: file("../../../android/local-config.gradle")

def localProperties = new Properties()
def localPropertiesFile = rootProject.file("local.properties")
Expand All @@ -32,8 +33,12 @@ android {
ndkVersion = flutter.ndkVersion

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = project.ext.javaVersion
targetCompatibility = project.ext.javaVersion
}

kotlinOptions {
jvmTarget = "17"
}

defaultConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pluginManagement {

plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "8.1.0" apply false
id "com.android.application" version "8.2.1" apply false
// START: FlutterFire Configuration
id "com.google.gms.google-services" version "4.3.15" apply false
// END: FlutterFire Configuration
Expand Down
20 changes: 9 additions & 11 deletions packages/cloud_functions/cloud_functions/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
group 'io.flutter.plugins.firebase.cloudfunctions'
version '1.0-SNAPSHOT'

apply plugin: 'com.android.library'
apply from: file("local-config.gradle")

buildscript {
repositories {
google()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:8.1.2'
}
}

rootProject.allprojects {
Expand All @@ -19,8 +18,6 @@ rootProject.allprojects {
}
}

apply plugin: 'com.android.library'

def firebaseCoreProject = findProject(':firebase_core')
if (firebaseCoreProject == null) {
throw new GradleException('Could not find the firebase_core FlutterFire plugin, have you added it as a dependency in your pubspec?')
Expand All @@ -40,17 +37,18 @@ android {
namespace 'io.flutter.plugins.firebase.functions'
}

compileSdk 35
compileSdkVersion project.ext.compileSdk

defaultConfig {
minSdk 21
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
minSdkVersion project.ext.minSdk
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
sourceCompatibility project.ext.javaVersion
targetCompatibility project.ext.javaVersion
}

buildFeatures {
buildConfig = true
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ext {
compileSdk=34
minSdk=21
targetSdk=34
javaVersion = JavaVersion.toVersion(17)
androidGradlePluginVersion = '8.2.1'
}
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
rootProject.name = 'cloud_functions'

apply from: file("local-config.gradle")

pluginManagement {
plugins {
id "com.android.application" version project.ext.androidGradlePluginVersion
id "com.android.library" version project.ext.androidGradlePluginVersion
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id "dev.flutter.flutter-gradle-plugin"
}
apply from: file("../../../android/local-config.gradle")

def localProperties = new Properties()
def localPropertiesFile = rootProject.file("local.properties")
Expand All @@ -32,8 +33,12 @@ android {
ndkVersion = flutter.ndkVersion

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = project.ext.javaVersion
targetCompatibility = project.ext.javaVersion
}

kotlinOptions {
jvmTarget = "17"
}

defaultConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pluginManagement {

plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "8.1.0" apply false
id "com.android.application" version "8.2.1" apply false
// START: FlutterFire Configuration
id "com.google.gms.google-services" version "4.3.15" apply false
// END: FlutterFire Configuration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
group 'io.flutter.plugins.firebase.analytics'
version '1.0-SNAPSHOT'

apply plugin: 'com.android.library'
apply from: file("local-config.gradle")

buildscript {
repositories {
google()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:8.1.4'
}
}

rootProject.allprojects {
Expand All @@ -19,8 +18,6 @@ rootProject.allprojects {
}
}

apply plugin: 'com.android.library'

def firebaseCoreProject = findProject(':firebase_core')
if (firebaseCoreProject == null) {
throw new GradleException('Could not find the firebase_core FlutterFire plugin, have you added it as a dependency in your pubspec?')
Expand All @@ -40,16 +37,16 @@ android {
namespace 'io.flutter.plugins.firebase.analytics'
}

compileSdk 35
compileSdkVersion project.ext.compileSdk

defaultConfig {
minSdk 21
minSdkVersion project.ext.minSdk
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
sourceCompatibility project.ext.javaVersion
targetCompatibility project.ext.javaVersion
}

buildFeatures {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ext {
compileSdk=34
minSdk=21
targetSdk=34
javaVersion = JavaVersion.toVersion(17)
androidGradlePluginVersion = '8.2.1'
}
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
rootProject.name = 'firebase_analytics'

apply from: file("local-config.gradle")

pluginManagement {
plugins {
id "com.android.application" version project.ext.androidGradlePluginVersion
id "com.android.library" version project.ext.androidGradlePluginVersion
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id "dev.flutter.flutter-gradle-plugin"
}
apply from: file("../../../android/local-config.gradle")

def localProperties = new Properties()
def localPropertiesFile = rootProject.file("local.properties")
Expand All @@ -32,8 +33,12 @@ android {
ndkVersion = flutter.ndkVersion

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = project.ext.javaVersion
targetCompatibility = project.ext.javaVersion
}

kotlinOptions {
jvmTarget = "17"
}

defaultConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pluginManagement {

plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "7.3.0" apply false
id "com.android.application" version "8.2.1" apply false
// START: FlutterFire Configuration
id "com.google.gms.google-services" version "4.3.15" apply false
// END: FlutterFire Configuration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
group 'io.flutter.plugins.firebase.appcheck'
version '1.0-SNAPSHOT'

apply plugin: 'com.android.library'
apply from: file("local-config.gradle")

buildscript {
repositories {
google()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:8.1.2'
}
}

rootProject.allprojects {
Expand All @@ -19,8 +18,6 @@ rootProject.allprojects {
}
}

apply plugin: 'com.android.library'

def firebaseCoreProject = findProject(':firebase_core')
if (firebaseCoreProject == null) {
throw new GradleException('Could not find the firebase_core FlutterFire plugin, have you added it as a dependency in your pubspec?')
Expand All @@ -40,16 +37,16 @@ android {
namespace 'io.flutter.plugins.firebase.appcheck'
}

compileSdk 35
compileSdkVersion project.ext.compileSdk

defaultConfig {
minSdk 21
minSdkVersion project.ext.minSdk
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
sourceCompatibility project.ext.javaVersion
targetCompatibility project.ext.javaVersion
}

buildFeatures {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ext {
compileSdk=34
minSdk=21
targetSdk=34
javaVersion = JavaVersion.toVersion(17)
androidGradlePluginVersion = '8.2.1'
}
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
rootProject.name = 'firebase_app_check'

apply from: file("local-config.gradle")

pluginManagement {
plugins {
id "com.android.application" version project.ext.androidGradlePluginVersion
id "com.android.library" version project.ext.androidGradlePluginVersion
}
}
Loading
Loading