Skip to content
This repository has been archived by the owner on Mar 16, 2021. It is now read-only.

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

Open
Suxsem opened this issue Jun 14, 2018 · 1 comment
Open

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

Suxsem opened this issue Jun 14, 2018 · 1 comment

Comments

@Suxsem
Copy link

Suxsem commented Jun 14, 2018

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
Copy link
Contributor

StefMa commented Jun 15, 2018

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 ...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants