Skip to content

Commit f954a87

Browse files
committed
Only enable MultiDollarInterpolation in tests
w: ATTENTION! This build uses unsafe internal compiler arguments: -XXLanguage:+MultiDollarInterpolation This mode is not recommended for production use, as no stability/compatibility guarantees are given on compiler or generated code. Use it at your own risk!
1 parent 8d1dcdb commit f954a87

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

buildSrc/src/main/kotlin/base-convention.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,16 @@ kotlin {
5252
sourceSets.configureEach {
5353
languageSettings {
5454
optIn("kotlin.time.ExperimentalTime")
55-
enableLanguageFeature("MultiDollarInterpolation")
5655
if (!name.startsWith("common") &&
5756
!name.startsWith("jvm") &&
5857
!name.startsWith("android")
5958
) {
6059
optIn("kotlinx.cinterop.BetaInteropApi")
6160
optIn("kotlinx.cinterop.ExperimentalForeignApi")
6261
}
62+
if (name.endsWith("Test")) {
63+
enableLanguageFeature("MultiDollarInterpolation")
64+
}
6365
}
6466
}
6567

couchbase-lite-ktx/src/commonMain/kotlin/kotbase/ktx/QueryExt.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public fun <T : Any> Query.asObjectsFlow(
5454

5555
@Deprecated("For binary compatibility", level = DeprecationLevel.HIDDEN)
5656
@JvmSynthetic
57-
@JvmName($$"asObjectsFlow$default")
57+
@JvmName("asObjectsFlow\$default")
5858
public fun <T : Any> Query.asObjectsFlow(
5959
coroutineContext: CoroutineContext?,
6060
factory: (String) -> T?,

couchbase-lite-ktx/src/commonMain/kotlin/kotbase/ktx/QueryExtensions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public fun <T : Any> Query.asObjectsFlow(
7575

7676
@Deprecated("For binary compatibility", level = DeprecationLevel.HIDDEN)
7777
@JvmSynthetic
78-
@JvmName($$"asObjectsFlow$default")
78+
@JvmName("asObjectsFlow\$default")
7979
public fun <T : Any> Query.asObjectsFlow(
8080
coroutineContext: CoroutineContext?,
8181
factory: (Map<String, Any?>) -> T?,

0 commit comments

Comments
 (0)