Skip to content

impl android library#1

Merged
seokju-na merged 3 commits into
mainfrom
works
Jun 14, 2026
Merged

impl android library#1
seokju-na merged 3 commits into
mainfrom
works

Conversation

@seokju-na

@seokju-na seokju-na commented Jun 14, 2026

Copy link
Copy Markdown
Member

Summary by cubic

Add the Android SDK to serve .wvb bundles in WebView, plus a minimal test app and CI-backed end-to-end tests. Pin the FFI version for reproducible installs.

  • New Features

    • Android library :lib: WebViewBundle with request interception for https://<bundle>.wvb/*, WebViewBundleClient, WebViewBundleProtocol (passthrough rules), and BundleSource with Android defaults for builtin/remote bundles.
    • WebViewSetup: recommended WebView settings and optional service-worker interception via androidx.webkit; safe defaults with an escape hatch for custom tweaks.
    • Test app :testapp: installs the library into a full-screen WebView and loads the builtin hacker-news bundle from assets/bundles at https://hacker-news.wvb/.
    • E2E e2e/: Appium + WebdriverIO + Vitest run shared @wvb-playground/webview-hacker-news tests; APK built in global setup; emulator + drivers managed programmatically; CI workflow builds :lib/:testapp and runs the suite on Linux with KVM.
    • Build setup and deps: add androidx.annotation, androidx.webkit, and kotlinx-coroutines-android; switch JNA to the Android AAR (net.java.dev.jna:jna:<version>@aar); increase Gradle daemon heap/metaspace; enable android.useAndroidX=true.
  • Bug Fixes

    • Add lib/lint.xml to ignore a false NewApi warning in generated wvb_ffi.kt, fixing release lint in CI.

Written for commit 3b385c9. Summary will update on new commits.

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

6 issues found across 32 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread lib/src/main/kotlin/dev/wvb/WebViewSetup.kt Outdated
Comment thread lib/src/main/kotlin/dev/wvb/Source.kt Outdated
Comment thread lib/src/main/kotlin/dev/wvb/Source.kt Outdated
Comment thread lib/src/main/kotlin/dev/wvb/Conversions.kt Outdated
Comment thread lib/src/main/kotlin/dev/wvb/WebViewBundle.kt Outdated
Comment thread README.md Outdated
@seokju-na seokju-na merged commit 40bc663 into main Jun 14, 2026
3 checks passed
@seokju-na seokju-na deleted the works branch June 14, 2026 15:12
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.

1 participant