-
Notifications
You must be signed in to change notification settings - Fork 162
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
Support K2. #1212
Support K2. #1212
Conversation
zipline/src/commonMain/kotlin/app/cash/zipline/internal/bridge/Endpoint.kt
Outdated
Show resolved
Hide resolved
* trunk: Prepare next development version Prepare version 1.8.0 Clarify the docs on ZiplineLoader.load() (#1223) Fix doc comment for DefaultFreshnessCheckerNotFresh (#1220) EventListener.manifestReady (#1221) Update dependency androidx.lifecycle:lifecycle-runtime-ktx to v2.7.0 (#1218) Update dependency com.github.ajalt.clikt:clikt to v4.2.2 (#1214) Update dependency com.vanniktech:gradle-maven-publish-plugin to v0.27.0 (#1213)
* trunk: Track changes to upload-artifact@v4
* trunk: Update plugin spotless to v6.24.0 (#1225)
@@ -174,3 +174,5 @@ actual class QuickJs private constructor( | |||
private external fun gc(context: Long) | |||
private external fun setMaxStackSize(context: Long, stackSize: Long) | |||
} | |||
|
|||
internal expect fun loadNativeLibrary() |
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.
This expect declaration is only necessary if we're compiling the zipline runtime with K2 (which won't happen until Kotlin 2.0.0) - can revert if preferred.
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.
Sweet
Co-authored-by: Jake Wharton <[email protected]>
Took a quick pass at supporting K2. It might be possible to support both K2 and K1 if that's something we want to do. Else, we could wait to make these changes until K2 is released.Updated so we can support both K1 and K2. This PR also contains a couple smaller changes that aren't strictly necessary unless we're also compiling Zipline with K2. Can revert if preferred.