GCX-HCI / tray

a SharedPreferences replacement for Android with multiprocess support
Apache License 2.0
2.29k stars 273 forks source link

How to migrate from default module to my own module #130

Open Suxsem opened 6 years ago

Suxsem commented 6 years ago

Hi all, thanks for this great library! I have started my project using the default module of tray (new AppPreferences(getContext())). Now i need to implement the auto backup feature of tray for android 6+ but from what i understood I need a custom module to put the proper code: super(context, "myModule", VERSION, TrayStorage.Type.USER);

Do you provide a builtin way to do this migration? Or must I handle this in the onCreate method of the module on my own?

Thanks!

StefMa commented 6 years ago

Is that related to #131 ? There nothing "really" for that usecase. We have a Migration API. See here for example. But I don't know how useful that is ...