Skip to content

1.0.0

Latest
Compare
Choose a tag to compare
@MFlisar MFlisar released this 15 Jan 13:53
· 4 commits to main since this release

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
}