first KMP release
Check out the docs - especially the usage section - to see how the new KMP version must be used now.
Generally following must be adjusted in android:
Statesaver creation looks like following now
val changelogStateSaver = remember {
ChangelogStateSaverPreferences.create(context)
}
// ALTERNATIVE: if you use my kotpreference library like this demo you can do following:
val changelogStateSaverKotPrefs = remember {
ChangelogStateSaverKotPreferences(DemoPrefs.lastShownVersionForChangelog)
}
Showing the changelog looks like following now:
val versionName = ChangelogUtil.getAppVersionName(context)
ShowChangelogDialogIfNecessary(changelogStateSaver, versionName, setup)
Or alternatively, the manual dialog:
ShowChangelogDialog(setup) {
// this is the dismiss callback, here we must reset the showChangelog flag
showChangelog = false
}