- Oct 07, 2020
-
-
Matthias Urhahn authored
Introduce VM injection for home screen and enable screen testing (EXPOSUREAPP-2946, EXPOSUREAPP-2948) (#1320) * Rename "MainFragment" to "HomeFragment" Add VM injection. Move initial logic into VM. TODO: Move more code, write more tests. * Additional refactoring, moving logic out of the Fragment. Moving code into their own encapsulated routines/components. Use composition to reuse TracingViewModel, SettingsViewModel and SubmissionViewModel * Introduce @AppContext annotation to prevent anyone mistaking it for something else. * Add VM to RiskDetailsFragment * Simplify nested viewmodels, here: TracingViewModel.kt * Add skeletons instrumentation test skeleton for single fragments with injection and mocking. * Address PR comments. * Introduce sealed events class, + some refactoring. * Make the linter happy.
-
- Oct 05, 2020
-
-
Matthias Urhahn authored
* Add coroutine dispatcher injection to deal with flaky tests. We need to be able to replace Dispatchers.IO in tests, and that requires providing the dispatcher via injection. * Linting * Replace remaining static access of Dispatchers.IO.
-
Matthias Urhahn authored
Merge 1.5.x into 1.6.x
-
Matthias Urhahn authored
* Better handling of unexpected supportedCountryData from the server. Perform sanity checks on country data. Map values to known `Country` enum. * Fix unit test regression. * Fix unit test regression.
-
- Oct 02, 2020
-
-
AlexanderAlferov authored
1.5.0 version code and name bump Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
Ralf Gehrer authored
* [INTERNAL] Translation delivery: commit by LX Lab (#1296) Change-Id: Ic1777f41c4667ffe4057f87dfb2d1415036688ba Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> * Update default strings * Update Link language tag * Fix missing IDs * re-add placeholder * re-add placeholder Co-authored-by:
SAP LX Lab Service Account <tmsatsls+github.com_service-tip-git@sap.com> Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
Matthias Urhahn authored
* Remove code duplication between different flavors. Remove extra MainFragment and NavGraph. Introduce TestMenu indirection Add logic for splitting test code up into extra fragments. * Style list items a bit :) * fix lints * Detekt *hug* * We can only show the menu entry if we are actually on the right flavor, otherwise, in deviceDebug, we would not have access to the right resources. * Address PR comments * Fix wrong XML namespace.
-
Matthias Urhahn authored
* Support for EUR key packages depending on the enabled environment. * Refactor names and fix tests. * Refactoring names and added missing enum key test. * Additional refactoring. Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
chris-cwa authored
Legal Texts (EXPOSUREAPP-2954 , EXPOSUREAPP-2951, EXPOSUREAPP-2942, EXPOSUREAPP-2938, EXPOSUREAPP-2931, EXPOSUREAPP-2925, EXPOSUREAPP-2924, EXPOSUREAPP-2923, EXPOSUREAPP-2922, EXPOSUREAPP-2920, EXPOSUREAPP-2919, EXPOSUREAPP-2918, EXPOSUREAPP-2917) (#1270) * text body from EXPOSURE_APP 2740 * line breaks * - duplicate values * Interoperability: Make Changes to User Consent Text (Initial Onboarding) (EXPOSUREAPP-2938) (#1276) * 2938 updated legal strings in defaults, de & tr * added translatable false * updated german strings (#1278) * nex text for EXPOSUREAPP-2942 * Legal Textchange: Exposure Logging Screen (EXPOSUREAPP-2923) (#1280) * Legal Textchange: Home Screen - FAQ Section (EXPOSUREAPP-2922) (#1281) * Legal Textchange: Initial Onboarding (EXPOSUREAPP-2920) (#1282) * Legal Textchange: Test Result Screen (EXPOSUREAPP-2918) (#1283) * Legal Textchange: Info Screen (EXPOSUREAPP-2917) (#1284) * update string (#1288) * kEA-2942 * Legal Textchange: New Eula (Nutzungsbedingungen) (EXPOSUREAPP-2951) (#1285) * updated eula * updated tr & en eula with german * Interoperability: Changes to Data Privacy (EXPOSUREAPP-2954) (#1287) * Interoperability: Make Changes to User Consent Text (Key Upload) (EXPOSUREAPP-2942) (#1275) * 2942 - strings updated and added to new legal string file * removed tr strings, to fix circle ci error. * added translatable false * Follow up: Initital onboarding 3rd & 6th paragraph (EXPOSUREAPP-2920) (#1289) * updated & added strings * updated 6th paragraph * Legal Textchange: Cross Country Exposure Logging Screen (EXPOSUREAPP-2924) (#1279) * updated & added strings * text under countries added Co-authored-by:
Rituraj Sambherao <git.rituraj.sambherao@gmail.com> * Interoperability: Delta Onboarding (EXPOSUREAPP-2931, EXPOSUREAPP-2919) (#1277) * 2931 text update * move to legal text & update 2919 * delta onboarding text changes for initial text Co-authored-by:
Oliver Zimmerman <oezimmerman@gmail.com> * Legal Textchange: Delta Interop Screen (EXPOSUREAPP-2919) (#1294) * 2931 text update * delta onboarding text changes for initial text * Added new legal texts and navigation to terms. - adjused xml layout - added required strings - created navigation to legal terms in both nav graphs - created navigation in fragment * Update OnboardingDeltaInteroperabilityFragment.kt * Update OnboardingDeltaInteroperabilityFragment.kt Co-authored-by:
Luka Harambasic <luka.harambasic@sap.com> * fixed wrong implementation regrading user consent in warn others Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Rituraj Sambherao <git.rituraj.sambherao@gmail.com> Co-authored-by:
Oliver Zimmerman <oezimmerman@gmail.com> Co-authored-by:
Luka Harambasic <luka.harambasic@sap.com>
-
Matthias Urhahn authored
* Define environment for each flavor and build type. * Add smart LiveData class that does async initialization (not on the main thread). * View extensions setGone/setInvisible * Refactor test for api fragment. * Replace ALT environment with a list to select from. * klint * Fix tests * Fix tests * Further flaky test fixes. * Move the debug check for isLast3HourModeEnabled to the settings. The KeyFileDownloader.kt shouldn't be aware of that detail. The settings are what is affected by the build flavors/modes. * Code cleanup and UI improvement of fragment_test_for_a_p_i.xml * Code that retries flaky tests until we found a better solution. Not great, Not terrible... Co-authored-by:
Mert Safter <mert.safter@sap.com>
-
chris-cwa authored
Interoperability: Submit days since onset of symptoms, Add 15th key to transmission risk vector (EXPOSUREAPP-2748, EXPOSUREAPP-2686) (#1223) * Update proto file to generate TemporaryExposureKey and fix visibility * Introduce placeholder and model for days since onset of symptoms * EXPOSURE_APP_2686 (wip) * fixed annotation * fixed compile error * Implement determinator for days since onset of symptoms in accordance with the risk vector determinator * extracted index calc * add 15th key * get index * Reverse order of days since onset of symptoms vector to align index with risk vector * updated behaviour * fixed today * - false thinking * implemented days ago * detekt + ktlint * not needed * fixed index into vectors * https://github.com/corona-warn-app/cwa-app-android/pull/1223#discussion_r494957683 * tests * Move vector length to determinator and fix test * Fix test and ktlint * improvements suggested in PR * use UTC, improved tests * tests with gap and several keys in one day * more unit tests + fixed a bug in age of days * test transmission risk vector * Improve test readabilty and switch to Junit5 * inject it * End of class please. * fixed tests * remove magic number * fixed tests * fixed test * fixed test * Fix lint issues * Add java doc with link to the documentation. * Fix tests * fixed test * ktlint Co-authored-by:
ralfgehrer <mail@ralfgehrer.com> Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
Matthias Urhahn authored
If there is no fallback appconfig yet, abort early to show a more accurate error (download error vs "no app config" error). (#1293) Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
Matthias Urhahn authored
* Try to use formatted error messages if available. * Try to use formatted error messages if available. * If there is no fallback appconfig yet, abort early to show a more accurate error (download error vs "no app config" error). * Revert "If there is no fallback appconfig yet, abort early to show a more accurate error (download error vs "no app config" error)." This reverts commit 10ff8f4f Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
BMItter authored
* Fix unnecessary refreshes in resultRequests * satisfy circleCI
-
- Oct 01, 2020
-
-
Mert Safter authored
-
chris-cwa authored
-
Matthias Urhahn authored
* Fix unreliable test. Random could be randomly 0 which would fail the test. * Create types for buildflavors to prevent string comparison. Use these build variants for specific tests. * Don't assign the times variable to a final value as it breaks tests. Until refactored, it's okay to recalculate this. * Remove a few sonar code smells. * Fix broken instrumentation test for key verification. Add matching binary, signature and pubkey from pod.
-
- Sep 30, 2020
-
-
janetback authored
Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
Matthias Urhahn authored
Pull latest 1.4.x into 1.5.x
-
Matthias Urhahn authored
# Conflicts: # Corona-Warn-App/src/main/java/de/rki/coronawarnapp/util/di/ApplicationComponent.kt
-
Matthias Urhahn authored
* Fix various code smells and some refactoring to make SonarCloud happy. * Fix refactoring regression. * Additional log output to determine how long certain steps take on cold-start.
-
Matthias Urhahn authored
* Update protobuf format * Addition of contentToFederation and visistedCountries/supportedCountries. TODO: Unit tests, pull supportedCountries from AppConfig (waiting for #1213) * Fix invalid package being assigned. This would break daggers annotation processing as the class could not be resolved. * Improved existing and implemented new tests. * Fixed test regression due to refactoring. * Integrate pulling the supportedCountries data from the AppConfig for the submission transaction. (Previously wasn't implemented yet, now it's merged) * Address merge conflicts, and a little refactoring, and a bit more tests. * Revert file change to Project.xml * AppConfigProvider should insert "DE" as fallback if the supportedCountry list is empty/not supplied. * Don't insert the fallback country at application config provider level. The UI requires the list to be empty, if it is empty in the config. I've moved the fallback country insertion into the transaction. * Make detekt happy. * Make klint happy.
-
Mert Safter authored
-
- Sep 29, 2020
-
-
Matthias Urhahn authored
# Conflicts: # Corona-Warn-App/src/device/java/de/rki/coronawarnapp/ui/main/MainFragment.kt # Corona-Warn-App/src/deviceForTesters/java/de/rki/coronawarnapp/ui/main/MainFragment.kt # Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/riskdetails/RiskDetailsFragment.kt # Corona-Warn-App/src/main/res/values-de/strings.xml # Corona-Warn-App/src/main/res/values-pl/strings.xml # Corona-Warn-App/src/main/res/values/strings.xml # Corona-Warn-App/src/test/java/testhelpers/preferences/MockSharedPreferences.kt
-
Matthias Urhahn authored
* Move AppConfig related code into it's own package. * Use "files" instead of "cache" for storing our AppConfigApiTest. * Add "files" to "cache" migration. * Refactor CDN related code into an independent "environment module". TODO: UnitTests, Fallback behavior even if cached AppConfig is stale. * Further structure refactoring and unit test for app config cache migration. * Added config fallback behavior for all cases + additional tests. * Improve code readability. * First POC for multi-environment support. * logic for ACME test Countries toggle button in Dev menu * ACME Test Countries dev menu * Additional clean up and refactoring on build constants. * Cleaned up the test fragment a bit. * Fixed detekt issue * Fix flaky test that depends on build variant. * Let the test fragment show us the actual environment we toggled to. * Changes upon review * Address PR comments. Co-authored-by:
Rituraj Sambherao <git.rituraj.sambherao@gmail.com>
-
AlexanderAlferov authored
Version code bump to 42
-
Matthias Urhahn authored
Perform data reset for users already affected by the encryption issues (EXPOSUREAPP-1851/EXPOSUREAPP-2958) (#1256) * A reset mechanism that performs a data reset for those (and just those) already affected by the pre 1.4.0 encryption error. If encountered the preference and database file will be deleted, then we will retry to generate an EncryptedSharedPreferences instance, and show the user a popup about what happened. TODO: This still has placeholders for the popup dialog. * Change detekt config. Early returns help code readability if used as guard closes. * Add final texts and fix missing dialog in other build flavors. * Additional test that we also match nested exceptions. * Fix incorrect shared preferences path. * Make klint happy. * Address PR comments. Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
Ralf Gehrer authored
-
SAP LX Lab Service Account authored
Change-Id: I198b60dfc466c636a90644815e36f03aba51e7ab
-
BMItter authored
* test enhancement for interop and countrylist, added liveDataTestExtension * better test naming, removed one assert Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
Matthias Urhahn authored
Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
Kolya Opahle authored
Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
harambasicluka authored
* update text * added hyphen
-
Ralf Gehrer authored
* EXPOSUREAPP-2865: Update default strings * EXPOSUREAPP-2865: Fix Link language
-
Alex Paulescu authored
* Added country list to submission of keys screen * Ktlint changes * Added missing s * Added text changes * Removed file from wrong location * Reverted back to old way of instantiating countryList in SubmissionViewModel * Removed hardcoded spacing * Changed country list text style from bold to paragraph size * Added dimen everywhere and added back en string Co-authored-by:
Alexandru.Paulescu <alexandru.paulescu@sap.com>
-
Matthias Urhahn authored
-
AlexanderAlferov authored
Version code bump
-
SAP LX Lab Service Account authored
Change-Id: I623bba4d9bb2a5b4eba70bc4fe6c22b8c9487cbf Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
- Sep 28, 2020
-
-
Matthias Urhahn authored
Add the new local environment file `test_environments.json` to the .gitignore as it should not be checked in. (#1247)
-
Matthias Urhahn authored
* Add retry mechanism with backoff to EncryptedSharedPreferences creation. * Increase default delays and make the actual delay a randomized value between the last and the new delay. * Upgrade to "androidx.security:security-crypto:1.0.0-rc03" * Further space retry delays. * Unit tests for retry mechanism and factory init. * klint * Fixed flaky test. Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-