Skip to content

Commit da71dcd

Browse files
committed
Added fix for ios targets
1 parent ea0f743 commit da71dcd

File tree

5 files changed

+41
-59
lines changed

5 files changed

+41
-59
lines changed

build.gradle.kts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ subprojects {
2828
jcenter()
2929
}
3030

31-
tasks.withType<KotlinCompile<*>> {
32-
kotlinOptions.freeCompilerArgs += listOf(
33-
"-Xuse-experimental=kotlin.Experimental",
34-
"-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi",
35-
"-Xuse-experimental=kotlinx.serialization.ImplicitReflectionSerializer"
36-
)
37-
}
31+
// tasks.withType<KotlinCompile<*>> {
32+
// kotlinOptions.freeCompilerArgs += listOf(
33+
// "-Xuse-experimental=kotlin.Experimental",
34+
// "-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi",
35+
// "-Xuse-experimental=kotlinx.serialization.ImplicitReflectionSerializer"
36+
// )
37+
// }
3838

3939
afterEvaluate {
4040
dependencies {

firebase-app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ kotlin {
6363
sourceSets {
6464
val commonMain by getting {
6565
dependencies {
66-
implementation(project(":firebase-common"))
66+
//implementation(project(":firebase-common"))
6767
}
6868
}
6969
val androidMain by getting {

firebase-auth/build.gradle.kts

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,15 @@ kotlin {
3232
android {
3333
publishLibraryVariants("release", "debug")
3434
}
35-
val buildForDevice = project.findProperty("kotlin.native.cocoapods.target") == "ios_arm"
36-
val iosMain by sourceSets.creating
37-
if (buildForDevice) {
38-
iosArm64("ios64")
39-
sourceSets["ios64Main"].dependsOn(iosMain)
40-
} else {
41-
iosX64("ios")
42-
}
43-
jvm {
44-
val main by compilations.getting {
45-
kotlinOptions {
46-
jvmTarget = "1.8"
47-
}
48-
}
49-
}
35+
val iosArm64 = iosArm64()
36+
val iosX64 = iosX64()
37+
// jvm {
38+
// val main by compilations.getting {
39+
// kotlinOptions {
40+
// jvmTarget = "1.8"
41+
// }
42+
// }
43+
// }
5044

5145
sourceSets {
5246
val commonMain by getting {
@@ -60,13 +54,13 @@ kotlin {
6054
api("com.google.firebase:firebase-auth:19.1.0")
6155
}
6256
}
63-
val iosMain by getting {
57+
val iosMain by creating {
6458
dependencies {
6559
}
6660
}
67-
val jvmMain by getting {
68-
kotlin.srcDir("src/androidMain/kotlin")
69-
}
61+
// val jvmMain by getting {
62+
// kotlin.srcDir("src/androidMain/kotlin")
63+
// }
7064
}
7165
}
7266

firebase-firestore/build.gradle.kts

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,15 @@ kotlin {
3232
android {
3333
publishLibraryVariants("release", "debug")
3434
}
35-
val buildForDevice = project.findProperty("kotlin.native.cocoapods.target") == "ios_arm"
36-
val iosMain by sourceSets.creating
37-
if (buildForDevice) {
38-
iosArm64("ios64")
39-
sourceSets["ios64Main"].dependsOn(iosMain)
40-
} else {
41-
iosX64("ios")
42-
}
43-
jvm {
44-
val main by compilations.getting {
45-
kotlinOptions {
46-
jvmTarget = "1.8"
47-
}
48-
}
49-
}
35+
val iosArm64 = iosArm64()
36+
val iosX64 = iosX64()
37+
// jvm {
38+
// val main by compilations.getting {
39+
// kotlinOptions {
40+
// jvmTarget = "1.8"
41+
// }
42+
// }
43+
// }
5044

5145
sourceSets {
5246
val commonMain by getting {
@@ -62,7 +56,7 @@ kotlin {
6256
implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.14.0")
6357
}
6458
}
65-
val iosMain by getting {
59+
val iosMain by creating {
6660
dependencies {
6761
}
6862
}

firebase-functions/build.gradle.kts

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,15 @@ kotlin {
3232
android {
3333
publishLibraryVariants("release", "debug")
3434
}
35-
val buildForDevice = project.findProperty("kotlin.native.cocoapods.target") == "ios_arm"
36-
val iosMain by sourceSets.creating
37-
if (buildForDevice) {
38-
iosArm64("ios64")
39-
sourceSets["ios64Main"].dependsOn(iosMain)
40-
} else {
41-
iosX64("ios")
42-
}
43-
jvm {
44-
val main by compilations.getting {
45-
kotlinOptions {
46-
jvmTarget = "1.8"
47-
}
48-
}
49-
}
35+
val iosArm64 = iosArm64()
36+
val iosX64 = iosX64()
37+
// jvm {
38+
// val main by compilations.getting {
39+
// kotlinOptions {
40+
// jvmTarget = "1.8"
41+
// }
42+
// }
43+
// }
5044

5145
sourceSets {
5246
val commonMain by getting {
@@ -62,7 +56,7 @@ kotlin {
6256
implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.14.0")
6357
}
6458
}
65-
val iosMain by getting {
59+
val iosMain by creating {
6660
dependencies {
6761
}
6862
}

0 commit comments

Comments
 (0)