Skip to content

Commit 8d4cb8b

Browse files
committed
refactor(core): Refactor Java and Objc to Kotlin and Swift
1 parent be12eed commit 8d4cb8b

32 files changed

+1699
-2693
lines changed

packages/firebase_core/firebase_core/android/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@ group 'io.flutter.plugins.firebase.core'
22
version '1.0-SNAPSHOT'
33

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

78
buildscript {
9+
ext.kotlin_version = '1.9.10'
810
repositories {
911
google()
1012
mavenCentral()
1113
}
14+
dependencies {
15+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
16+
}
1217
}
1318

1419
def getRootProjectExtOrDefaultProperty(name) {
@@ -36,6 +41,10 @@ android {
3641
targetCompatibility project.ext.javaVersion
3742
}
3843

44+
kotlinOptions {
45+
jvmTarget = project.ext.javaVersion
46+
}
47+
3948
buildFeatures {
4049
buildConfig true
4150
}
@@ -49,6 +58,7 @@ android {
4958
implementation "com.google.firebase:firebase-common"
5059

5160
implementation 'androidx.annotation:annotation:1.7.0'
61+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
5262
}
5363
}
5464

packages/firebase_core/firebase_core/android/src/main/java/io/flutter/plugins/firebase/core/FlutterFirebaseCorePlugin.java

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

packages/firebase_core/firebase_core/android/src/main/java/io/flutter/plugins/firebase/core/FlutterFirebaseCoreRegistrar.java

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

packages/firebase_core/firebase_core/android/src/main/java/io/flutter/plugins/firebase/core/FlutterFirebasePlugin.java

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

0 commit comments

Comments
 (0)