feature: embed web pages inside the app using <iframe> for web platforms

This commit is contained in:
Antoine Jaury
2026-09-30 11:18:54 +02:00
parent fe0ed2391b
commit 880aba06a2
6 changed files with 81 additions and 40 deletions
+9
View File
@@ -14,6 +14,15 @@ kotlin {
implementation(libs.compose.uiToolingPreview)
implementation(libs.androidx.webkit)
}
// webMain is the js + wasmJs intermediate source set from the default hierarchy template.
webMain.dependencies {
// DOM access (document, navigator) to embed the page in an <iframe>
implementation(libs.kotlinx.browser)
}
wasmJsMain {
// HTMLIFrameElement interop on Wasm requires this opt-in.
languageSettings.optIn("kotlin.js.ExperimentalWasmJsInterop")
}
commonMain.dependencies {
// Core modules
implementation(projects.core.logging)