Skip to content
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

Fix file sharing export & log refactoring #86

Merged
merged 5 commits into from
Dec 18, 2023
Merged

Conversation

CharlVS
Copy link
Member

@CharlVS CharlVS commented Dec 5, 2023

  • Change file export package used for, among other things, log exporting. The latest Android version (Android 14) has breaking changes for the package we were using that was discontinued 2 years ago. The new package is an old version of the package (share_plus) used on komodo-wallet. We can't re-use the reviewed version because this (old) version is the newest version compatible with our older Dart/Flutter version.

  • Add log exporting from home page in case the user cannot access the settings page because the app crashes during wallet login. (Tap home screen logo 7 times)

  • Coin config updater refactoring. Background:

Make the coin updater more robust to exceptions thrown during updating/loading coins config data and improve logging for the loading process. The aim of this is to possibly solve the reported issues of the production app crashing (for a minority of users) when MM2 is launched. At the very least, this will help us get more info to diagnose the issue.

To test:

  • Test that log export works from the settings menu and by tapping home screen logo 7 times. Test on latest Android version (Android 14 or newer) and verify that you can unzip the text files and they are readable.
  • Test that the logs export does not allow the user to export if the logs are empty. You will need to clear storage and then use home screen export method.
  • Test that runtime coin updates are still working. Same tests as point 1 and 2 from "Suggested "To Test" List for QA: of [RC] 0.8.0: UI revamp, bug fixes and coins update #78.

CharlVS and others added 5 commits November 20, 2023 13:02
Make the coin updater more robust to exceptions thrown during updating/loading coins config data and improve logging for the loading process. The aim of this is to possibly solve the reported issues of the production app crashing (for a minority of users) when MM2 is launched.
Refactor `share` to `share_plus` and add home page log export by tapping app logo 7 times.
Sync the iOS counterparts of the changed Dart dependencies.
Throw an exception in the logs layer if there are no exported log files to share.
Catch the error and show a snackbar.
GZip is the final compression algorithm used,
so the file extension should be `.gz`.
@CharlVS CharlVS requested a review from kivqa December 16, 2023 14:18
@CharlVS CharlVS added bug Something isn't working QA Ready for QA testing labels Dec 16, 2023
@CharlVS CharlVS requested a review from smk762 December 16, 2023 14:26
@CharlVS
Copy link
Member Author

CharlVS commented Dec 16, 2023

@smk762 @kivqa Can you please test this?

@CharlVS CharlVS requested a review from ca333 December 17, 2023 09:20
@kivqa
Copy link

kivqa commented Dec 17, 2023

Logs export for android 14 works as expected on real device Pixel 5 from Home screen and from Settings screen

@CharlVS CharlVS added the 0.9.0 v0.9.0 release: Net ID migration and order book + file export bug fixes. label Dec 17, 2023
Copy link
Contributor

@ca333 ca333 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sec reviewed

@ca333 ca333 merged commit 8dcbbcb into dev Dec 18, 2023
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.9.0 v0.9.0 release: Net ID migration and order book + file export bug fixes. bug Something isn't working QA Ready for QA testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants