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

Check device time (EXPOSUREAPP-2998) (#1985)

* Let the AppConfig validity check use absolute values, to support device time check behavior.

* Add mapping for "disable-device-time-check" to app config.

* Show popup dialog if the device time is invalid.
* Remove extra retrofit cache (use only LocalAppConfigSource.kt)
* Exposure device time check
* Reset user acknowledgement

* LINTs

* Add test menu option to disable device time check via affecting the config mapping.

* Download, but don't submit keys if device time is incorrect.
Abort risk level calculation if time is incorrect.

* Due to multiple properties in ConfigData affecting `isDeviceTimeCorrect`, make it a body property and don't allow overriding via constructor.

* Add unit test for test settings affecting the device config only in tester builds.

* Show notification regarding incorrect time when device is in the background.

* Fix test regressions and add additional test cases for download and risk task abort conditions on incorrect device time.

* Fix merge regressions.

* Add time unit to log statement.

* Fix incorrect time dialog showing in a loop when entering leaving the home screen.

* Remove unused code path for clear().

* Print additional timestamps to help debugging efforts in the future.
parent 1d8500ea
No related branches found
No related tags found
Loading
Showing
with 288 additions and 95 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