Skip to content

Commit e64b879

Browse files
committed
Rename project
1 parent 47d280b commit e64b879

File tree

24 files changed

+29
-9
lines changed

24 files changed

+29
-9
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ tasks {
4545
"firebase-database:updateVersion", "firebase-database:updateDependencyVersion",
4646
"firebase-firestore:updateVersion", "firebase-firestore:updateDependencyVersion",
4747
"firebase-functions:updateVersion", "firebase-functions:updateDependencyVersion",
48-
"firebase-remoteconfig:updateVersion", "firebase-remoteconfig:updateDependencyVersion"
48+
"firebase-config:updateVersion", "firebase-config:updateDependencyVersion"
4949
)
5050
}
5151
}

firebase-remoteconfig/build.gradle.kts renamed to firebase-config/build.gradle.kts

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
66

7-
version = project.property("firebase-remoteconfig.version") as String
7+
version = project.property("firebase-config.version") as String
88

99
plugins {
1010
id("com.android.library")
@@ -63,8 +63,28 @@ kotlin {
6363

6464
fun nativeTargetConfig(): KotlinNativeTarget.() -> Unit = {
6565
val nativeFrameworkPaths = listOf(
66-
rootProject.project("firebase-app").projectDir.resolve("src/nativeInterop/cinterop/Carthage/Build/iOS"),
67-
projectDir.resolve("src/nativeInterop/cinterop/Carthage/Build/iOS")
66+
"FirebaseCore",
67+
"FirebaseCoreDiagnostics",
68+
"FirebaseAnalytics",
69+
"GoogleAppMeasurement",
70+
"FirebaseInstallations",
71+
"GoogleDataTransport",
72+
"GoogleUtilities",
73+
"PromisesObjC",
74+
"nanopb"
75+
).map {
76+
val archVariant =
77+
if (konanTarget is org.jetbrains.kotlin.konan.target.KonanTarget.IOS_X64) "ios-arm64_i386_x86_64-simulator" else "ios-arm64_armv7"
78+
rootProject.project("firebase-app").projectDir.resolve("src/nativeInterop/cinterop/Carthage/Build/$it.xcframework/$archVariant")
79+
}.plus(
80+
listOf(
81+
"FirebaseABTesting",
82+
"FirebaseRemoteConfig"
83+
).map {
84+
val archVariant =
85+
if (konanTarget is org.jetbrains.kotlin.konan.target.KonanTarget.IOS_X64) "ios-arm64_i386_x86_64-simulator" else "ios-arm64_armv7"
86+
projectDir.resolve("src/nativeInterop/cinterop/Carthage/Build/$it.xcframework/$archVariant")
87+
}
6888
)
6989

7090
binaries {

firebase-remoteconfig/package.json renamed to firebase-config/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "@gitlive/firebase-remoteconfig",
2+
"name": "@gitlive/firebase-config",
33
"version": "1.0.0",
44
"description": "Wrapper around firebase for usage in Kotlin Multiplatform projects",
5-
"main": "firebase-remoteconfig.js",
5+
"main": "firebase-config.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1"
88
},

0 commit comments

Comments
 (0)