-
Notifications
You must be signed in to change notification settings - Fork 21
Import support for Clue and Flo #254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
app/src/main/java/com/mensinator/app/settings/ExportImportDialog.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/mensinator/app/settings/ExportImportDialog.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/mensinator/app/settings/ExportImportDialog.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/mensinator/app/settings/ExportImportDialog.kt
Outdated
Show resolved
Hide resolved
Also please include an example import json into the project. Else this is difficult to maintain or test. For now just include it in a testing folder, at some point unit tests should be written for the imports. |
In the linked issue I have example of exportfile from Clue and some information that is good to know: |
…ded enum. Updated strings
app/src/main/java/com/mensinator/app/settings/SettingsViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/mensinator/app/business/PeriodDatabaseHelper.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/mensinator/app/settings/SettingsViewModel.kt
Outdated
Show resolved
Hide resolved
I think I fixed most of your comments (except the one about formatting dates). I do need to refactor the entire import/export process, not only for Mensinator. But the ViewModel should not send toast to UI, it should be done in ExportImport. But I want to do that mayor change in another PR. |
@carstenhag Need help with getting the file to new class ClueImport. I think the rest might work?