Pavel S
07/19/2023, 2:13 PMkfun:kotlin.Throwable#<init>(kotlin.String?){} + 123
kfun:kotlin.Error#<init>(kotlin.String?){} + 119
kfun:kotlin.NotImplementedError#<init>(kotlin.String){} + 119
kfun:com.arkivanov.parcelize.darwin.NotImplementedCoding#objc:encodeWithCoder: + 219
when navigating from the app with some entries in the navigation stack, when the following method in AppDelegate
is called
func application(_ application: UIApplication, shouldSaveSecureApplicationState coder: NSCoder) -> Bool {
let savedState = rootHolder!.stateKeeper.save()
CodingKt.encodeParcelable(coder, value: savedState, key: "savedState")
return true
}
I’m using Essenty 1.1.0, parcelize-darwin plugin 0.1.4.
What might be the cause of it?Pavel S
07/19/2023, 2:16 PMArkadii Ivanov
07/19/2023, 2:45 PMparcelize-darwin
plugin? See the docs: https://arkivanov.github.io/Decompose/component/state-preservation/#darwin-apple-targets-supportPavel S
07/19/2023, 2:49 PMexport(libs.essenty.state.keeper) export(libs.parcelize.darwin.runtime)
Arkadii Ivanov
07/19/2023, 2:56 PMknbridge3
which doesn't provide any useful information. It looks like the plugin is not applied in the module where that Parcelable
class is located, or @Parcelize
annotation is not added on that class, or the compiler plugin failed to discover that class.Pavel S
07/19/2023, 3:10 PMArkadii Ivanov
07/19/2023, 3:13 PMPavel S
07/19/2023, 3:14 PMParcelable
class was located not in the module where parcelize-darwin plugin was applied