Skip to content
Snippets Groups Projects
Unverified Commit 54ddd11e authored by Matthias Urhahn's avatar Matthias Urhahn Committed by GitHub
Browse files

Add debug log feature for non-tester builds (EXPOSUREAPP-4451) (#2029)


* Initial draft for user accessible debug logs in production.

TODO: Sharing, Tests, Cleanup FileLoggerTree?

* Ready strings for translation.

* Log file compression for sharing (zip).

* Add log sharing

* Change how DebugLogger is initialized to make sure we can record issues that happen very early in the apps lifecycle.

* Add missing toolbar back arrow navigation.

* Fix initial delay for ui state emissions.

* Censor registration token.

* Adjust warning regarding sensitive data in debug logs.

* Use property injection instead of component getters.

* Hide option until greenlit.

* Add test for RegistrationTokenCensor

* Unit tests.

* Make unit test without triggerfile more specific.

* LINTs

* Fix missing injection provider in release mode.

* Fix regtoken censor if condition.

* Fix typos.

* Remove empty manifest specific to deviceForTesters build.

* Wait until log job is canceled before deleting log files.
Otherwise a race condition could lead to file creation after job cancellation.

* Replace runBlockingTest with runBlocking we don't need scheduler control and runBlockingTest is sometimes unreliable.

* Refactor FileSharing to use compat builder from androidx.

* Handle exceptions on debug log start()

* Print device infos when log is started.

* Text changes requested by UA

Co-authored-by: default avatarralfgehrer <mail@ralfgehrer.com>
parent f1537e7c
No related branches found
No related tags found
No related merge requests found
Showing
with 613 additions and 39 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment