This is a showcase application for the Droidcon Lisbon 2025 and Mobile Developers Week 2025 session: "SharedPreferences Caterpillar to DataStore Butterfly: How to Migrate and Make Your App Fly". The application simulates a "chatbot" that needs your personal data in order to work.
mainbranch has bot SharedPreferences and DataStore implementations, with SharedPreferences one being activedevelop_spbranch has only SharedPreferences implementation, the starting point one would encounter when doing the migration to DataStoredevelop_dsbranch has only the DataStore implementation, the end point of the migration
To simulate the migration:
- checkout develop_sp branch, run the app - fill the fields and play around with it.
- switch to develop_ds branch, run the app - the app should keep the state as it was, but this time utilizing DataStore instead of Shared preferences. Note: when you do this switch, all the data in SharedPreferences will be deleted
The presentation of the session can be accessed here








