1.7.0
Breaking Changes
Starting from version 1.7.0, we switched from Java CEF Browser to Kotlin CEF Browser for more features and better performance.
After switching to KCEF, developers need to configure it for the desktop app.
- For new users, just follow this instruction to config the KCEF.
- For developers that upgrade from a lower version, you have to delete the origin
jcef-bundle
and update the initialization configuration from CEF to KCEF like below:
LaunchedEffect(Unit) {
withContext(Dispatchers.IO) {
KCEF.init(builder = {
installDir(File("kcef-bundle"))
settings {
cachePath = File("cache").absolutePath
}
}, onError = {
it?.printStackTrace()
}, onRestartRequired = {
})
}
}
DisposableEffect(Unit) {
onDispose {
KCEF.disposeBlocking()
}
}
Jogamp's Maven is also required for KCEF:
repositories {
maven("https://jogamp.org/deployment/maven")
}
Please see the README.desktop.md for more details.
New Features
- Upgrade to Compose 1.5.10 and Kotlin 1.9.20
- Support CookieManager for Desktop
- Support custom headers for iOS
What's Changed
- Migrate to KCEF by @DatL4g in #25
- Feature/ktlint support by @KevinnZou in #35
- Feature/ci setup by @KevinnZou in #36
- feat: Support custom headers for iOS request by @KevinnZou in #40
Full Changelog: 1.6.0...1.7.0