Releases: Winterreisender/webviewko
v0.6.0
- Update webview to webview/webview@7b40e46 v0.10.0-build.230210
- use static links for Windows and macOS in Kotlin/Native, no longer need copy
dll
files #7 - Removed deprecated
freeze
in Kotlin/Native - Remove GitHub Packages and UberJars
- Drop Kotlin/JS support, you can still use v0.5.0
- Other improvements
Full Changelog: 0.5.0...0.6.0
v0.5.0
Common
- add:
libPath
- add:
start
- add:
destroy
Native
- remove
cDispatch
andcBind
JVM
- add: Apple M1 support from webview_deno
JS
- initial Kotlin/JS support
- fix: wrong usage of
isError
v0.4.0
v0.4.0 [ Radio Waves ]
Highlights
Common
- add
json
parameter forJSRejectException
JVM
- add support for Windows ARM64, Windows x86 (Only x64 are tested)
Native
- add support for concurrent mutability. Now you can use
bind
,dispatch
freely in multi thread applications - mark
cBind
andcDispatch
asDeprecated
since concurrent mutability is supported
Download
- dll/so/dylib: https://github.com/Winterreisender/webviewko/tree/4e61c26d8d978daa69a5a2ebb406004aa512ab84/src/nativeMain/nativeInterop/cinterop/webview
- GitLab Packages: https://gitlab.com/Winterreisender/webviewko/-/packages/
- GitHub Packages: https://github.com/Winterreisender?tab=packages&repo_name=webviewko
v0.3.0
v0.3.0「Flying Circus」
Highlights
Common
- Update Kotlin to 1.7.10
- Update webview to commit2022.7.26-8409184
- Use
-static-libgcc
and-static-libstdc++
during compilation so that it doesn't rely onlibgcc_s_seh.dll
andlibstdc++-6.dll
on Windows anymore - Throw
Exception
when failed to create webview instead ofNullPointerException
- Add
JSRejectException
which will be caught bybind
and thrown to JS (reject thePromise
) - Migrate to GitLab Packages so that users won't need authentication anymore.
JVM
- Remove deprecated
getInstance
- Fix
invalid memory access
when failed to create webview. webview/webview#799
Native
- Add
cBind
andcDispatch
providing a C API for Kotlin/Native - Fix crash when failed to create webview. webview/webview#799
- Prevent memory leak by adding
disposeList
forbind
anddispose
directly fordispatch
- call
initRuntimeIfNeeded()
inbind
anddispatch
for better C-interop
Known Issues
-
Download
GitLab Packages: https://gitlab.com/Winterreisender/webviewko/-/packages/
v0.2.0
v0.2.0 「WhiteBox」
Highlights
- Update webview
- Add Kotlin/Native support for Windows and Linux
Full Changelog: 0.1.1...0.2.0
Known Issues
- When failed to create webview,for example the webview2 runtime is not installed, it won't throw an exception in Kotlin/Native and throw
invalid memory access
in Kotlin/JVM. We have feedback this issue to webview with a solution webview/webview#799. Update: This is fixed in 3aa6fef - Need
libgcc_s_seh-1.dll
andlibstdc++-6.dll
to works on Windows. These dependencies will be removed in the next version
Upstream
- webview commit2022.7.4-5376bae
- MS Webview2 1.0.1245.22
- JNA 5.12.0
- Kotlin 1.7.0
v0.2.0-dev.2
- add Kotlin/Native/Linux support
For JVM and Kotlin/Native/Linux, see JitPack.io for build systems instructions.
Since JitPack.io dose not support Windows, You need compiled yourself by cloning and gradle publishToMavenLocal
An example for Gradle (Kotlin DSL):
repositories {
maven {
url = uri("https://jitpack.io")
content {
includeGroup("com.github.Winterreisender.webviewko")
}
}
}
dependencies {
implementation("com.github.Winterreisender.webviewko:webviewko:0.2.0-dev.2") //For Kotlin Multiplatform
implementation("com.github.Winterreisender.webviewko:webviewko-jvm:0.2.0-dev.2") //For Kotlin/JVM and Java
implementation("com.github.Winterreisender.webviewko:webviewko-linuxX64:0.2.0-dev.2") //For Kotlin/Native/Linux
//implementation("com.github.Winterreisender.webviewko:webviewko-mingwX64:0.2.0-dev.2") //For Kotlin/Native/Windows
}
You also need to copy the libwebview.dll
or libwebview.so
to the same folder as you program.
v0.2.0-dev.1
Because JitPack.io does not support Winodws for building Kotlin/Native Mingw and GitHub Maven service doesn’t allow for unauthorized access (see How to allow unauthorised read access to GitHub packages maven repository? ), you can either import jars and klibs manually or
authorise with GitHub
- Add Kotlin/Native MingwX64 support
- Move to GitHub Packages
- remove:
initJS
, replaced withinit
Full Changelog: 0.1.0-dev.2...v0.2.0-dev.1
v0.1.1
If you're using Gradle or Maven, see https://jitpack.io/#Winterreisender/webviewko/0.1.1
NOTICE: This version supports Java 11+ on Windows x64, Linux x64 and macOS x64.
Full Changelog: 0.1.0-dev.1...0.1.1
Upstream
webview: commit2022.6.13-1df2191
Webview2: 1.0.1245.22
JNA: 5.12.0
v0.0.1-v0.1.0
All release files during v0.0.1-v0.1.0