Open
Conversation
- Convert from Android Library to KMP (android, wasmJs targets) - Move sources from src/main/java to src/commonMain/kotlin - Split platform-specific code into androidMain and wasmJsMain using expect/actual - Android: RenderEffect, RuntimeShader, BlurMaskFilter (native APIs) - wasmJs: Skia ImageFilter, RuntimeShaderBuilder, MaskFilter (via Skiko) - Extract DrawBackdropExt.kt from DrawBackdropModifier for cross-platform drawing - Implement SkSL highlight shaders for wasmJs (Default + Ambient) - Remove @Language/@FloatRange annotations from commonMain - Update build scripts for Compose Multiplatform (1.11.0-beta01) - Retain Maven Central publish configuration - Add .kotlin/ to .gitignore
Owner
|
There is already a kmp branch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR migrates Backdrop from an Android-only library to Kotlin Multiplatform, enabling usage on Wasm (browser) targets in addition to Android.
Changes
src/main/java/→src/commonMain/kotlin/androidMain(10 files): Android RenderEffect, RuntimeShader, BlurMaskFilter (native APIs)wasmJsMain(10 files): Skia ImageFilter, RuntimeShaderBuilder, MaskFilter (via Skiko)RuntimeShaderBuilderkotlin.multiplatform+com.android.kotlin.multiplatform.library+ Compose MultiplatformArchitecture