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

Storage check with optional allocation (EXPOSUREAPP-2259) (#1076)


* Disable klint debug output to make it easier to find the actual error in the log.

* Setup jUnit5 & kotest.

* Add base classes for testing to setup log output.

* Introduce class `DeviceStorage` to check (or request on newer APIs) free space.

Rel. EXPOSUREAPP-2259

* Add test cases for failure modes.

* Make it obvious that the check should not be executed on the ui thread.

* Try fall back to legacy method if the API26+ version fails.
If that also fails, throw the exception and let the caller handle it.

* Wire up injection annotations.

* Remove unused mockito testing dependency.

* klint...

Co-authored-by: default avatarMatthias Urhahn <matthias.urhahn@sap.com>
Co-authored-by: default avatarJakob Möller <jakob.moeller@sap.com>
parent 7ebafe5c
No related branches found
No related tags found
Loading
Showing
with 440 additions and 74 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