Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix opting into EngineApi and expect-actual-classes. #1226

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

colinrtwhite
Copy link
Member

@colinrtwhite colinrtwhite commented Jan 15, 2024

expect-actual-classes started warning in 1.9.20.

Pulling this out of #1212.

@@ -9,10 +9,10 @@ plugins {
}

kotlin {
sourceSets.all {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this worked previously, but it currently doesn't opt in for the JVM plugin.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I've only used this construct with the multiplatform plugin. Probably me copy/pasting too aggressively.

@@ -33,7 +33,6 @@ auto-service-compiler = { module = "dev.zacsweers.autoservice:auto-service-ksp",
auto-service-annotations = { module = "com.google.auto.service:auto-service-annotations", version = "1.1.1" }
binary-compatibility-validator-gradle-plugin = { module = "org.jetbrains.kotlinx.binary-compatibility-validator:org.jetbrains.kotlinx.binary-compatibility-validator.gradle.plugin", version = "0.13.2" }
cklib-gradle-plugin = { module = "co.touchlab:cklib-gradle-plugin", version = "0.3.0" }
coil-compose = { module = "io.coil-kt:coil-compose", version = "2.5.0" }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noticed this is unused (unfortunately!)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah from emoji probably, before it moved to Redwood.

@@ -153,6 +153,18 @@ allprojects {
plugins.withId("org.jetbrains.kotlin.multiplatform") {
configure<KotlinMultiplatformExtension> {
jvmToolchain(11)
@Suppress("OPT_IN_USAGE")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Who watches the watchmen?

// https://youtrack.jetbrains.com/issue/KT-61573
targets.configureEach {
compilations.configureEach {
compilerOptions.configure {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surprised you need this last configure block. I thought compilerOptions returned an object directly on which you could invoke freeCompilerArgs.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interestingly it's a different return type for KotlinCompilation and KotlinProjectExtension

@@ -33,7 +33,6 @@ auto-service-compiler = { module = "dev.zacsweers.autoservice:auto-service-ksp",
auto-service-annotations = { module = "com.google.auto.service:auto-service-annotations", version = "1.1.1" }
binary-compatibility-validator-gradle-plugin = { module = "org.jetbrains.kotlinx.binary-compatibility-validator:org.jetbrains.kotlinx.binary-compatibility-validator.gradle.plugin", version = "0.13.2" }
cklib-gradle-plugin = { module = "co.touchlab:cklib-gradle-plugin", version = "0.3.0" }
coil-compose = { module = "io.coil-kt:coil-compose", version = "2.5.0" }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah from emoji probably, before it moved to Redwood.

@@ -9,10 +9,10 @@ plugins {
}

kotlin {
sourceSets.all {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I've only used this construct with the multiplatform plugin. Probably me copy/pasting too aggressively.

@colinrtwhite colinrtwhite merged commit 41c4252 into trunk Jan 16, 2024
6 checks passed
@colinrtwhite colinrtwhite deleted the colin/opt_in branch January 16, 2024 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants