Note
Version 1.* is a kotlin multiplatform rewrite, that's why some fundamantal changes needed to be done!
com.michaelflisar.composepreferences.core.hierarchy.PreferenceScope=>com.michaelflisar.composepreferences.core.scopes.PreferenceScopecom.michaelflisar.composepreferences.core.classes.PreferenceStyleDefaults=>com.michaelflisar.composepreferences.core.styles.PreferenceStyleDefaultsMutableState<*>.asPreferenceData()was removed => use theMutableStatedirectly now instead
-
I had to change all
titleandsubtitleparameters fromComposablestostringbecause otherwise I could not have added the new filtering feature.// OLD PreferenceBool( title = { Text("Text") }, subtitle = { Text("Text2") } ) // NEW PreferenceBool( title = "Text", subtitle = "Text" )
-
PreferenceSectionHeaderwas renamed toPreferenceSectionand does contains its children now// OLD PreferenceSectionHeader(title = "Infos") PreferenceInfo(title = "Info 1") PreferenceInfo(title = "Info 2") // NEW PreferenceSection(title = "Infos") { PreferenceInfo(title = "Info 1") PreferenceInfo(title = "Info 2") }
I probably forgot some small changes because this was a big rewrite in KMP. Let me know if you find something then I'll add it here.