Migrate to NucleusFramework: Tao/NativeView desktop WebView (Linux) and drop Wry - #49
Merged
Merged
Conversation
Rename io.github.kdroidfilter to dev.nucleusframework, drop the wrywebview module (Gobley/JNA/Rust), make desktop a no-op stub, and bump Kotlin/Compose to 2.4.10 / 1.11.1.
…I natives Wire desktop WebView through NativeView/WebKit2GTK (Linux only), Nucleus application plugin + GraalVM metadata, matrix native builds, and a full visual suite covering the public API.
Wire macOS into the same Tao NativeView path as Linux/Windows, split the JNI/ObjC backend by domain, and extend visual e2e + CI natives for darwin.
Rename demo hosts to e2e-*, move the visual suite to commonMain with platform capabilities, expose WebView content overlays, and run the same catalog on desktop/Android/Wasm/iOS. Remove jvmTest drivers and the Playwright webview-compose-test module. Wire PR CI for commonTest plus desktop and Android emulator visual e2e; fix Android JS bridge thread and cookie removal.
- Download natives into resources/nucleus/native (upload strips parents) - Move Android emulator suite into a single bash script (runner is line-by-line) - Run iOS commonTest on macos-15 / Xcode 16+ for Compose 1.11 UIViewLayoutRegion
rememberWebViewState* was re-assigning state.content on every recomposition, resetting suite mutations (C09) back to the initial boot HTML on Android. Compose Multiplatform 1.11 needs the iOS 26 SDK (UIViewLayoutRegion); select Xcode 26.x on the macos-15 runner instead of 16.x.
NSDate.timeIntervalSince1970 is unresolved under the newer Foundation cinterop; use kotlin.system getTimeMillis/getTimeNanos instead.
getTimeMillis/getTimeNanos are hard errors on Kotlin 2.4 Native. NSDate.timeIntervalSince1970 needs the top-level extension import platform.Foundation.timeIntervalSince1970 (same as IOSCookieManager).
kdroidFilter
marked this pull request as ready for review
August 7, 2026 06:03
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.
Summary
Rebrand the library under NucleusFramework and replace the old Wry desktop backend with a Nucleus Tao + NativeView implementation (WebKit2GTK on Linux). Windows and macOS stay no-op for now.
Rebrand & cleanup
io.github.kdroidfilter→dev.nucleusframework(sources, namespaces, MavenGROUP, demos, iOS bundle id)wrywebviewmodule entirely (Rust / Wry / UniFFI / Gobley / JNA / Skiko) and related toolingiosX64targets with CMP 1.11Desktop backend (Linux first)
NativeView+NucleusPlatformView.GtkWidgetlibcompose_webview_linux.so) underwebview-compose/src/jvmMain/native/linux/nucleusApplication+decorated-window-tao); AWT alone will not embed the viewDemo
dev.nucleusframework2.3.0) instead ofcompose.desktop { application { … } }Testing
/tmp/composewebview-visual-suite-report.txtand exits non-zero on failureallGreen=trueCI natives (Nucleus-style matrix)
.github/workflows/build-natives.yaml:ubuntu-latest)ubuntu-24.04-arm)natives-linux-*artifacts**/resources/nucleus/native/):webview-compose:buildNativeLinux(orbash webview-compose/src/jvmMain/native/linux/build.sh)Test plan
./gradlew :webview-compose:compileKotlinJvm :demo:compileKotlinJvm./gradlew :demo:run(Nucleus plugin) — visual suite 51/51build.sh/buildNativeLinux).so:demo:package/packageDeb) when neededNotes for reviewers
nucleusApplication(backend = NucleusBackend.Tao)and depend onnucleus.decorated-window-taofor embedding to workdesktopWebSettings.transparent = false); settransparent = trueonly for overlay use cases