Skip to content

1.7.0

Compare
Choose a tag to compare
@KevinnZou KevinnZou released this 10 Nov 07:53
· 266 commits to main since this release

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

Full Changelog: 1.6.0...1.7.0