-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
build(deps): Bump the kotlin-ksp group with 11 updates #21515
Changes from all commits
ffcae27
57abfc7
e41ac16
8b88057
81024b1
0b94318
cc33adc
631549d
ca1d061
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
package org.wordpress.android.fluxc.model.list | ||
|
||
import java.util.Locale | ||
|
||
enum class ListOrder(val value: String) { | ||
ASC("ASC"), | ||
DESC("DESC"); | ||
companion object { | ||
fun fromValue(value: String): ListOrder? { | ||
return values().firstOrNull { it.value.toLowerCase(Locale.ROOT) == value.toLowerCase(Locale.ROOT) } | ||
return values().firstOrNull { it.value.lowercase() == value.lowercase() } | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,7 @@ package org.wordpress.android.processor | |
|
||
import com.tschuchort.compiletesting.KotlinCompilation | ||
import com.tschuchort.compiletesting.SourceFile | ||
import com.tschuchort.compiletesting.kspWithCompilation | ||
import com.tschuchort.compiletesting.symbolProcessorProviders | ||
import com.tschuchort.compiletesting.configureKsp | ||
import org.assertj.core.api.Assertions.assertThat | ||
import org.jetbrains.kotlin.compiler.plugin.ExperimentalCompilerApi | ||
import org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction | ||
|
@@ -119,10 +118,14 @@ class RemoteConfigProcessorTest { | |
|
||
private fun compile(src: List<SourceFile>) = KotlinCompilation().apply { | ||
sources = src + fakeAppConfig | ||
symbolProcessorProviders = listOf(RemoteConfigProcessorProvider()) | ||
kspWithCompilation = true | ||
inheritClassPath = true | ||
verbose = true | ||
messageOutputStream = System.out | ||
configureKsp(useKsp2 = false) { | ||
symbolProcessorProviders += RemoteConfigProcessorProvider() | ||
withCompilation = true | ||
languageVersion = "1.9" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Additional reference:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Awesome, nice find @wzieba ! 🥇 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Btw, I have no idea why you "must" set There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. AFAIU this is because KSP1 was meant to support language features up Kotlin 2.0+ (not included). So if There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for sharing this theory @wzieba , it makes (some) sense indeed... 👍 + 🤔 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Awesome, thanks for that, upvoted/subscribed! 🙇 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We got the answer, I think it's aligned with what I described above 👍 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yea, 100%, great to have clarity and verification on that! 💯 |
||
} | ||
}.compile() | ||
|
||
// Fake AppConfig is needed, as it's a class that is expected to be present in the classpath. Originally, this class | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the commit message and your reasoning about this change @wzieba , makes this all very clear! 🙇
But just to make it clear here, this
ksp.useKSP2
flag isfalse
by default atm, even on Kotlin 2.1.0? We just make this explicit with this change, right? 🤔There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. There was plan to make this
true
with Kotlin 2.1, but apparently, this changed. So due to this uncertainty, I think it's best we hardcode usage of KSP1 for now.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks and I agree, good call @wzieba ! 👍
FYI: Maybe we should propagate the same (explicit) configuration to all other client projects. 🤔
PS: We should also just make sure to revisit that at some point and flip it to
true
when everything starts working on theKSP2
side again, maybe we should add that as an Apps Infra Roadmap so we don't forget. 🤔