I hope it’s appropriate to share in this channel. ...
# multiplatform
r
I hope it’s appropriate to share in this channel. We at Amazon open sourced our internal Kotlin Multiplatform framework we call App Platform. It’s the foundation of several of our apps leveraging KMP for sharing code between apps and platforms (Android, iOS, Linux). I hope it’s useful to some of you! https://amzn.github.io/app-platform/
👍 5
🎉 2
❤️ 18
b
Thanks for open sourcing this
🙏 1
k
Out of curiosity, I haven’t seen anything related to Android-specific configuration changes in the framework. Is this out of the scope for this framework?
r
What exactly are you looking for? What is missing from your point of view? We don’t have issues with configuration changes that are related to App Platform itself.
k
In the
circuit
, for example, there is
rememberRetained
, which is responsible for saving and restoring a value after the configuration change (e.g. screen rotation). I’m wondering if there is a similar pattern in your framework, or how you handle that case?
r
We don’t have anything built in yet. In our internal codebases we have a solution for this, but we barely (if at all?) use it, because when the process relaunches, then we restore state like user logged in, settings, etc. from disk.
k
Good to know, thank you. It makes sense, as saving it to disk is the most reliable and also platform-independent
s
@ralf how are you handling navigation? using the jetpack one or created a custom?