- Sep 11, 2020
-
-
Matthias Urhahn authored
* Rework of keyfile download and caching. * Supports interop * More modular for better testing and build flavour based behavior adjustments * More resilient handling of failed downloads * Preperations for future hourly download and serverside checksums TODO: Finish unit tests, keycache migration and cache health check * First batch of unit tests and some fixes for incorrect behavior that the tests surfaced. * Added unit tests for the KeyCacheRepository TODO: Tests for downloader and migration. * Implemented POC for migration old key files. * Fixed legacy file migration and cleanup, improved logging. * Added unit tests for legacy key file migration. * Add fallback for different file hashes in the header. * Yes kLint, we know it's a long method, but for this it's better to read it in one block vs jumping to extra methods. * More linting issues, adjusting project code style prevent a few of these in the future. * Added missing unit tests for `KeyFileDownloader` and fixed faulty behavior that was noticed during testing. * CRUD (instrumentation) test for `KeyCacheDatabase` * Remove unused `FileStorageHelper` and related constants+tests. * Fix last3Hours unit test in deviceRelease mode, we need to explicitly enable debug for these tests. * Until we have more information about the hashsum's format in the header, default to `ETag * Split app config server API from diagnosis key download API, and reintroduce caching for the app config download. * Add test to check that the cache is used on flaky connections. * Code changes based on PR comment, part #1. * Code fluff, formatting. * Handle download errors correctly. * Refactoring: * Remove unnecessary `currentDate` we always start with the newest date from the servers index. * Make a specialised class for header validation * Let legacy cache migration abort early, depending on whether the key dir exists. * If we can't create the base directory for the key repo, throw an exception. * Delete cache entry if a download fails. * Fixed test regression due to refactoring. * Consolidate staleness check into `getStale` * Consolidate clean up for failed downloads into the download method. Added tests to check that we delete the keycache entry if the download fails (which we didn't for hours :O!) * Because the hour-mode uses caching too, we add an explicit button to the test menu that clears the cache. * Add comment with reference to ticket regarding follow up on the other headers. * Move expected storage size per country into a named constant. Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
- Sep 04, 2020
-
-
Matthias Urhahn authored
# Conflicts: # Corona-Warn-App/src/main/java/de/rki/coronawarnapp/transaction/RetrieveDiagnosisKeysTransaction.kt # Corona-Warn-App/src/test/java/de/rki/coronawarnapp/transaction/RetrieveDiagnosisKeysTransactionTest.kt
-
- Sep 03, 2020
-
-
Mert Safter authored
* Implement country filter (#2229) * Implement measure for Risk calculation and Key Retrieval (#2229) * Some code cleanup for measureRiskLevelAndKeyRetrieval * Some code cleanup (#2229) * Implement usage of AppConfig usage for country codes (#2229) * change CURRENT_COUNTRY val to var * Suppress "LongMethod" warning (#2229) * Adjust unit tests to respect new country filter * Align with backend for app config country property name * Display total file size of keys in results (#2229) * Fix linting issue * Update strings.xml files * Do refactoring and some code clean up * Move RiskLevel and Key retrieval measurement in own class * Move code in logical classes. Remove translation in test fragment * Fix linting and Unit tests * Remove 3hour boolean check from debug class. * Refactor CountryWrapper and missing dates check. * Fix linting and Unit tests * Add Unit test for getMissingDates * Code cleanup * Hide keyboard on action * Extend statistics for api submission * Set callback to null after invoked Co-authored-by:
Mert Safter <mert.safter@sap.com> Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
apopovsap authored
Initial implementation of submission country selection ui (EXPOSUREAPP-2265)
-
- Sep 02, 2020
-
-
Jakob Möller authored
Signed-off-by:
d067928 <jakob.moeller@sap.com>
-
chris-cwa authored
* + new strings * let the app not crash on other languages than DE * values for lint and tests * made bad test a comment * removed unnecessary strings * more string fixes Co-authored-by:
Jakob Möller <jakob.moeller@sap.com> Co-authored-by:
Luka Harambasic <luka.harambasic@sap.com>
-
Jakob Möller authored
This reverts commit 2ba3ec0f This is done as the UTC communication was done falsely by Google and will be corrected in the docs. No action is necessary on our side. Signed-off-by:
d067928 <jakob.moeller@sap.com>
-
janetback authored
Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
SAP LX Lab Service Account authored
Change-Id: I57f40756ff9d468edc1c019ed4215d0261233e6b
-
Tobias Preuss authored
Co-authored-by:
Jakob Möller <jakob.moeller@sap.com>
-
- Sep 01, 2020
-
-
SAP LX Lab Service Account authored
* [INTERNAL] Translation delivery: commit by LX Lab Change-Id: I1ebfb2ad23afaf9e4c459c0d97b0f9ae59d62b47 * [INTERNAL] Translation delivery: commit by LX Lab Change-Id: I2f0934278446712cb558cd2ca7288a658c146d7f Co-authored-by:
Matthias Urhahn <darken@darken.eu>
-
chris-cwa authored
* made power management injectable interface * same behaviour every where * - unnecessary tests * Integrate DI with workarounds until singletons are gone. * house keeping * unnecessary import * house keeping * fixed typo Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com> Co-authored-by:
Jakob Möller <jakob.moeller@sap.com>
-
Oliver Zimmerman authored
* Removed blanked internet connection UI state. New Dev base for pipeline issues Removed the blanket internet connection status: Removed the connection state from TracingStatusHelper Adjusted formatters which use the adjusted TracingStatusHelper Removed connection logic from various fragments (SettingsTracingFragment, etc.) Adjusted XML views (Settings Fragment: no connection card, etc.) Adjusted automated tests that previously included the connection state. Closes JIRA task EXPOSUREAPP-1572 * Update FormatterSettingsHelperTest.kt * Update fragment_main.xml deviceForTesters was still using connection state. * Update Project.xml * Update FormatterSettingsHelperTest.kt Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
Kolya Opahle authored
-
Kolya Opahle authored
Added first implementation of Submission Country Selection Screen. (Currently not part of nav graph). Moved stuff inside of submission package into subpackages Signed-off-by:
Kolya Opahle <k.opahle@sap.com>
-
Kolya Opahle authored
Signed-off-by:
Kolya Opahle <k.opahle@sap.com>
-
Rituraj Sambherao authored
Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Jakob Möller <jakob.moeller@sap.com>
-
Rituraj Sambherao authored
Co-authored-by:
Jakob Möller <jakob.moeller@sap.com>
-
harambasicluka authored
* added our awesome developers <3
-
Matthias Urhahn authored
* Don't execute the transactions as part of any view scopes. We don't want to cancel them if the viewscope is cleared. This commit introduces distinct scopes for each transaction. * Mock injection helper behavior on existing tests. * Simplify to one CoroutineScope for all Transaction. Switch context when awaiting the transaction codeblock to end, otherwise a cancellation still affects us. * Add test for timeout * Remove unused code. * Expand comment on unexpected test behavior * Even without actual timeout, runBlockingTest causes flaky test behavior. Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com> Co-authored-by:
Jakob Möller <jakob.moeller@sap.com>
-
- Aug 31, 2020
-
-
Alex Paulescu authored
Co-authored-by:
Jakob Möller <jakob.moeller@sap.com>
-
harambasicluka authored
-
- Aug 28, 2020
-
-
chris-cwa authored
* let tests be run for all flavors * new gradle task for deviceForTesters * fixed: name is ambiguous * trying to run both tasks in a single step * fixed: expected <block end> * reverted names * checking circle ci to report compile error in deviceForTesters * circle ci correctly reported - removing invalid coding * Explicitly run `quickBuildTest` as part of the pipeline. * Revert "new gradle task for deviceForTesters" This reverts commit 62f329a5 Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com> Co-authored-by:
Matthias Urhahn <darken@darken.eu> Co-authored-by:
Jakob Möller <jakob.moeller@sap.com>
-
- Aug 27, 2020
-
-
Rituraj Sambherao authored
* changed the links to English contact form * logic for getting device language improved * String corrections * manually creating contact form link * provide locale to everyone * test contact form logic * fixed MaxLineLength * removed not needed resources for lint Co-authored-by:
Philipp Woessner <64482866+pwoessner@users.noreply.github.com> Co-authored-by:
Jakob Möller <jakob.moeller@sap.com> Co-authored-by:
chris-cwa <chris.cwa.sap@gmail.com> Co-authored-by:
chris-cwa <69595386+chris-cwa@users.noreply.github.com>
-
harambasicluka authored
-
Alex Paulescu authored
* Active tracing days no longer negative * Shortened line length Co-authored-by:
Jakob Möller <jakob.moeller@sap.com>
-
Fabian-K authored
For plausible deniability, the test result retrieval after the initial registration (via QR or TeleTAN) needs to be part of the same playbook and not two playbooks executed sequentially. For this, this commit: - updates the initial registration playbook to fetch the test result instead of a dummy request and returns the registration token as well as the test result - adds an argument "skipInitialTestResultRefresh" to the SubmissionTestResultFragment to optionally skip the initial test result refresh - includes the argument "skipInitialTestResultRefresh" when navigating from the QR Code scan or the TeleTAN input screen to the SubmissionTestResultFragment - adds "updateTestResult" to the SubmissionRepository to be able to set the test result without having to refresh it every time from the server - updates the SubmissionService to set the test result coming from the initial registration playbook Co-authored-by:
Jakob Möller <jakob.moeller@sap.com>
-
BMItter authored
* EXPOSUREAPP_2025 Updated exposure api * Ignore location unavailable on devcie which support locationless scanning * EN Update updated exposure notification from 1.6.0->1.6.1 * update build.gradle to exlicit implement EN aar explicit implementation for exposurenotification sdk 1.6.1 Co-authored-by:
Jakob Möller <jakob.moeller@sap.com>
-
Matthias Urhahn authored
Add explicit tags to allow for type specific filtering and fix bad log statements. Move OkHttp web logging to VERBOSE (from INFO). Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com> Co-authored-by:
Jakob Möller <jakob.moeller@sap.com>
-
- Aug 26, 2020
-
-
harambasicluka authored
* fix grammar error * fix
-
apopovsap authored
* add Sixteen include in onboarding & positive_submission * minor fixes Co-authored-by:
Kolya Opahle <k.opahle@sap.com> Co-authored-by:
Jakob Möller <jakob.moeller@sap.com>
-
Matthias Urhahn authored
* 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:
Matthias Urhahn <matthias.urhahn@sap.com> Co-authored-by:
Jakob Möller <jakob.moeller@sap.com>
-
harambasicluka authored
Co-authored-by:
Jakob Möller <jakob.moeller@sap.com>
-
chris-cwa authored
* - add hilt for dependency injection - enable application & activities for hilt * updated dependency versions * test get risk level * renamed binding * -hilt +dagger 2 * satisfying klint * satisfying klint * satisfying klint * satisfying klint * satisfying klint for tests * additional module stubs, explicit android injector * additional module stubs, explicit android injector * renamed implementations * fixed compiler error for device for tester Co-authored-by:
Fabian Kajzar <fabian.kajzar@sap.com> Co-authored-by:
Jakob Möller <jakob.moeller@sap.com>
-
- Aug 25, 2020
-
-
Matthias Urhahn authored
Automatically enable coroutine debugging in DEBUG and test builds. (#1060) (Spawned by EXPOSUREAPP-2267) * Automatically enable coroutine debugging in DEBUG and test builds. CWADebug should be used as abstraction for enabling additional non-production debug features and modes. In the future we can use this abstraction to enable additional debugging options in productions builds. Sometimes that's the only way to debug issues that can't be reproduced by developers. * Fix LINTing Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com> Co-authored-by:
Jakob Möller <jakob.moeller@sap.com>
-
- Aug 24, 2020
-
-
Matthias Urhahn authored
* Ship a common codeStyle that matches KLint. * The config for newlines at end of files should also have a new line at it's end :D. Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com> Co-authored-by:
Jakob Möller <jakob.moeller@sap.com>
-
harambasicluka authored
-
- Aug 21, 2020
-
-
harambasicluka authored
-
janetback authored
Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
janetback authored
-