Skip to content

Commit 8c99815

Browse files
committed
Refactor project structure and enhance demo application
- Migrate existing demo to `webview.demo` and modularize navigation controls. - Introduce `DemoTopBar` with extended navigation capabilities (e.g., stop, reload, home, tools toggle). - Add `DemoRequestInterceptor` and handlers (e.g., `Echo`, `AppInfo`, `SetCookie`) for customizing WebView behavior. - Remove deprecated implementations and simplify main application entry point.
1 parent d90baa8 commit 8c99815

45 files changed

Lines changed: 3755 additions & 469 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 372 additions & 35 deletions
Large diffs are not rendered by default.

demo/build.gradle.kts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ kotlin {
2020
implementation(compose.components.uiToolingPreview)
2121
implementation(libs.androidx.lifecycle.viewmodelCompose)
2222
implementation(libs.androidx.lifecycle.runtimeCompose)
23+
implementation(libs.kotlinx.serializationJson)
2324
}
2425
commonTest.dependencies {
2526
implementation(libs.kotlin.test)
@@ -37,12 +38,12 @@ kotlin {
3738

3839
compose.desktop {
3940
application {
40-
mainClass = "io.github.kdroidfilter.composewebview.MainKt"
41+
mainClass = "io.github.kdroidfilter.webview.demo.MainKt"
4142
jvmArgs += "--enable-native-access=ALL-UNNAMED"
4243

4344
nativeDistributions {
4445
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
45-
packageName = "io.github.kdroidfilter.composewebview"
46+
packageName = "io.github.kdroidfilter.webview.demo"
4647
packageVersion = "1.0.0"
4748
}
4849
}

demo/src/jvmMain/kotlin/io/github/kdroidfilter/composewebview/App.kt

Lines changed: 0 additions & 191 deletions
This file was deleted.

0 commit comments

Comments
 (0)