Skip to content

Commit 2af3e8e

Browse files
committed
Merge branch 'main' into feat/in-app-messaging-custom-display
2 parents 83fbb4d + 128912e commit 2af3e8e

88 files changed

Lines changed: 10241 additions & 14552 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎packages/firebase_auth/firebase_auth/android/build.gradle‎

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ group 'io.flutter.plugins.firebase.auth'
22
version '1.0-SNAPSHOT'
33

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

67
buildscript {
78
repositories {
@@ -10,13 +11,23 @@ buildscript {
1011
}
1112
}
1213

13-
allprojects {
14+
rootProject.allprojects {
1415
repositories {
1516
google()
1617
mavenCentral()
1718
}
1819
}
1920

21+
// AGP 9+ has built-in Kotlin support unless Flutter opts out via android.builtInKotlin=false.
22+
def agpMajor = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')[0] as int
23+
def builtInKotlin = providers.gradleProperty("android.builtInKotlin")
24+
.map { it.toBoolean() }
25+
.orElse(agpMajor >= 9)
26+
.get()
27+
if (agpMajor < 9 || !builtInKotlin) {
28+
apply plugin: 'kotlin-android'
29+
}
30+
2031
def firebaseCoreProject = findProject(':firebase_core')
2132
if (firebaseCoreProject == null) {
2233
throw new GradleException('Could not find the firebase_core FlutterFire plugin, have you added it as a dependency in your pubspec?')
@@ -36,16 +47,21 @@ android {
3647
namespace 'io.flutter.plugins.firebase.auth'
3748
}
3849

39-
compileSdkVersion 34
50+
compileSdkVersion project.ext.compileSdk
4051

4152
defaultConfig {
42-
minSdkVersion 23
53+
minSdkVersion project.ext.minSdk
4354
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
4455
}
4556

4657
compileOptions {
47-
sourceCompatibility JavaVersion.toVersion(17)
48-
targetCompatibility JavaVersion.toVersion(17)
58+
sourceCompatibility project.ext.javaVersion
59+
targetCompatibility project.ext.javaVersion
60+
}
61+
62+
sourceSets {
63+
main.java.srcDirs += "src/main/kotlin"
64+
test.java.srcDirs += "src/test/kotlin"
4965
}
5066

5167
buildFeatures {
@@ -63,4 +79,12 @@ android {
6379
}
6480
}
6581

82+
plugins.withId("org.jetbrains.kotlin.android") {
83+
kotlin {
84+
compilerOptions {
85+
jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.fromTarget(project.ext.javaVersion.toString())
86+
}
87+
}
88+
}
89+
6690
apply from: file("./user-agent.gradle")
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
ext {
2+
compileSdk=34
3+
minSdk=23
4+
targetSdk=34
5+
javaVersion = JavaVersion.toVersion(17)
6+
androidGradlePluginVersion = '8.3.0'
7+
}

‎packages/firebase_auth/firebase_auth/android/src/main/java/io/flutter/plugins/firebase/auth/AuthStateChannelStreamHandler.java‎

Lines changed: 0 additions & 63 deletions
This file was deleted.

‎packages/firebase_auth/firebase_auth/android/src/main/java/io/flutter/plugins/firebase/auth/Constants.java‎

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)