- Feb 12, 2021
-
-
chris-cwa authored
-
Lukas Lechner authored
* Show active tracing history in low risk detail screen * Move isGone logic from xml layout into state object and add tests Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com> Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
- Feb 11, 2021
-
-
Chilja Gossow authored
* show link for German only simplify layout and fragment * remove view model * add unit tests * use AppCompatImageView * comments Co-authored-by:
Mohamed Metwalli <Mohamed.Metwalli@sap.com>
-
Lukas Lechner authored
* Create SurveyUrlProvider.kt and SurveyHighRiskUrlProviderTest.kt * Call SurveyUrlProvider in Surveys.kt * Adapt SurveyUrlProvider.kt so that now the otp has to be passed directly * Add @Reusable annotation to SurveyUrlProvider.kt Co-authored-by:
BMItter <46747780+BMItter@users.noreply.github.com> Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
chris-cwa authored
-
- Feb 10, 2021
-
-
Lukas Lechner authored
* Set offset to zero instead of 90 when 'fakeCorrectDeviceTime' is active * Add a description of the 'Fake correct device time' feature in the Test Menu Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com> Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com> Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
Matthias Urhahn authored
Instead of faking the "disable-device-time-check" which won't work for SafetyNet, we now fake the time offset to be within the acceptable delta. Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
- Feb 09, 2021
-
-
Philipp Nowak authored
First and last item of statistic cards was not reachable on some devices (EXPOSUREAPP-4945) (closes #2259) #2260 * Fix issue that first and last item of statistics recycler view was not reachable on some devices (#2259) * Disable PagerSnapHelper for devices with at least 600dp width (EXPOSUREAPP-4945) (closes #2259) * Fix issue that first and last item of statistics recycler view was not reachable on some devices (#2259) * Disable PagerSnapHelper for devices with at least 600dp width (EXPOSUREAPP-4945) (closes #2259) Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
Juraj Kusnier authored
* Update LocalData implementation * Fix BackgroundWorkScheduler comment * Fix typo in SubmissionData * Skip risk calculation if user got a positive test result * Skip deadman notifications if user got a positive test result * Refresh diagnosis keys when test is removed * Update tests * End of life behaviour UI (EXPOSUREAPP-4641) (#2230) * Added strings. * Added card. * Added missing layout from main. * Removed duplicate layout and switched to different home icon. * Added test registration date. * Prepare UI for End of Life behaviour * Removed unused import. Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Juraj Kusnier <jurajkusnier@gmail.com> * Add ReactivateRiskCheckDialog * Fix comment * Update strings * Not nullable date in SubmissionDone * Fix merge * Fix instrumentation test crash * Increased font size in card layout. * Keep DiagnosisKeyBackgroundWork alive Co-authored-by:
Alex Paulescu <alex.paulescu@gmail.com> Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
Matthias Urhahn authored
Add additional test menu options to test requirement validation.
-
- Feb 08, 2021
-
-
BMItter authored
* Implemented survey mapping * Disable/enable high risk survey by app config * ktlint & detekt * Create available surveys lazily, run flow on coroutine context * Use default params * Added test für survey mapping * adjusted TracingDetailsItemProviderTest * Reworked survey config mapping * Map safety net requirements * lint, detekt * Adjusted tests * Changed url string to http url
-
- Feb 05, 2021
-
-
Chilja Gossow authored
Scrolling issues with back navigation from Statistics Info screen to Homescreen (EXPOSUREAPP-4771) #2264 * remove state fetching when submission is done * keep instance * test * rollback * rollback * rollback * rollback * save state * clean up * refactor refreshUiState to not issue unnecessary states * remove references after usage * move to home adapter * remove reference to holder * adds tests to make sure ui states are still correct * rename * Add an adapter module that handles a voluntary ViewHolder state saving mechanism. * Merge branch 'fix/4771-home-flickering-polish' into fix/4771-home-flickering # Conflicts: # Corona-Warn-App/src/main/java/de/rki/coronawarnapp/statistics/ui/homecards/StatisticsHomeCard.kt # Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/main/home/HomeAdapter.kt * revert Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com> Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
Matthias Urhahn authored
Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
- Feb 04, 2021
-
-
Matthias Urhahn authored
* First safetynet draft. TODO: Additional integrity checks. * Add nonce and APK check. Move JWS data access helpers up to the wrapper. * Add device time and time_since_onboarding check. * Increase test coverage, check for null jwsResults. * Add data donation test menu. (Currently only shows SafetyNet JWS) * Improve exception message. * Additional test cases for different JSON fields. Log optional error message that may be returned. * Fix test regression due to missing mock * Address Lukas PR comments. * Add attestation max timeout (30s) + test. Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
chris-cwa <69595386+chris-cwa@users.noreply.github.com>
-
chris-cwa authored
* Skeleton classes for SafetyNet and EventSurveys. * Fix LINTs, test compile error. * Remove lint breaking TODOs. * Add SafetyNet requirement validation call to the attestation interface. * Don't return salt/nonce, just offer the caller directly the PPACAndroid protobuf class. * Add documentation, fix test build error. * Add documentation, fix test build error. * + otp repo * unit test * requested changes * + timestamp * using gson * mockFlowPreference * https://github.com/corona-warn-app/cwa-app-android/pull/2232#discussion_r567892814 * additional tests * fixed test * https://github.com/corona-warn-app/cwa-app-android/pull/2232#discussion_r569357630 * https://github.com/corona-warn-app/cwa-app-android/pull/2232#discussion_r569358473 * https://github.com/corona-warn-app/cwa-app-android/pull/2232#discussion_r569557960 * https://github.com/corona-warn-app/cwa-app-android/pull/2232#discussion_r569559428 * https://github.com/corona-warn-app/cwa-app-android/pull/2232#discussion_r569359216 * Test formatting. * made reading otp from storage failsafe * fail fast in case gson does not initialize members * take advantage of compilereturn flow check, no Elvis-Op in unit tests * better name for test Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com> Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
- Feb 03, 2021
-
-
Mohamed Metwalli authored
* Add bottom bar * Fix di * Adjust theme * Align content on top of bottom bar * Enhance findNavController * Adjust Bottom Bar * Remove diary card * Remove up button * lint * Adapt MD theme * Fix ui tests * Delete contact diary , handle onboarding * Remove x button * Show bottom nav only for Home and contact diary destinations * Only contact diary overview screen * Adjust alert dialog theme * update docs * Fix close button issue * Revert close button changes * Rename text resources * Make visibility logic flexible for future additions * Fix typo * Setup main activity tests * Add diary overview screenshot test * lint * Disable unmocking * Update Gemfile.lock * Contact diary onboarding's bottom bar behaviour * Update ContactDiaryOnboardingFragmentTest.kt * Refactor screenshots tests * Update Corona-Warn-App/src/main/res/values/strings.xml Co-authored-by:
Sabine Loss <44154356+SabineLoss@users.noreply.github.com> * Update contact_diary_overview_fragment.xml * Small refactoring * Remove un required gravity * Use accent colour * Move diary settings into vm * Update tests * Update MainActivityViewModelTest.kt * Fix styling in bottom sheet dialog * Keep default delay * klint * Keep default delay Co-authored-by:
Sabine Loss <44154356+SabineLoss@users.noreply.github.com> Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
Mohamed Metwalli authored
* Add bottom bar * Fix di * Adjust theme * Align content on top of bottom bar * Enhance findNavController * Adjust Bottom Bar * Remove diary card * Remove up button * lint * Adapt MD theme * Fix ui tests * Delete contact diary , handle onboarding * Remove x button * Show bottom nav only for Home and contact diary destinations * Only contact diary overview screen * Adjust alert dialog theme * update docs * Fix close button issue * Revert close button changes * Rename text resources * Make visibility logic flexible for future additions * Fix typo * Contact diary onboarding's bottom bar behaviour * Update ContactDiaryOnboardingFragmentTest.kt * Update Corona-Warn-App/src/main/res/values/strings.xml Co-authored-by:
Sabine Loss <44154356+SabineLoss@users.noreply.github.com> * Update contact_diary_overview_fragment.xml * Small refactoring * Remove un required gravity * Use accent colour * Move diary settings into vm * Update MainActivityViewModelTest.kt * Fix styling in bottom sheet dialog Co-authored-by:
Sabine Loss <44154356+SabineLoss@users.noreply.github.com> Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
- Feb 02, 2021
-
-
Matthias Urhahn authored
* Let NetworkRequestWrapper enforce more specific generics. No nulls and errors need to be `Throwable` * Align error dialog generation and remove unnecessary casting. * Use less specific exception type for `filterIsInstance`. The expectation is that due to type erase, the filter will let any type of `RequestFailed` through anyways. Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
Lukas Lechner authored
* Fix issue of not showing delta onboarding about interoperability before showing release notes * Suppress failure to give the chance for other steps to continue in Firebase TestLab * Fix instrumentation test * Revert "Suppress failure to give the chance for other steps to continue in Firebase TestLab" This reverts commit 5d642b66 * Use when statement instead of if-else conditions Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Alex Paulescu <alex.paulescu@gmail.com>
-
Lukas Lechner authored
* Adjust high risk card * Adjust high risk card * Fix accessibility to read "einem Tag" instead of "eins Tag" * Rename input parameters of IncreasedRisk data class from c to context Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
AlexanderAlferov authored
* Adjusted TracingDetailsItemProvider for tracing inactive status. * Tests added, refactoring * Tests refactored Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
Chilja Gossow authored
* new release info items update * unit test move package * clean up * fix bottom spacing/ scrolling behavior * more tests * replace illustration * replace text * delete empty files
-
- Jan 28, 2021
-
-
Matthias Urhahn authored
* Skeleton classes for SafetyNet and EventSurveys. * Fix LINTs, test compile error. * Remove lint breaking TODOs. * Add SafetyNet requirement validation call to the attestation interface. * Don't return salt/nonce, just offer the caller directly the PPACAndroid protobuf class. * Add documentation, fix test build error. * Add documentation, fix test build error. * Add environment variables for data donation server and SafetyNet API key. * Remove unused function. * Fix EnvironmentSetupTest.kt
-
- Jan 27, 2021
-
-
Chilja Gossow authored
* write test for DiagnosisTestResultRetrievalPeriodicWorker * klint * Use TimeStamper
-
chris-cwa authored
* no pop up for no info on symptoms * fixed test Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
Lukas Lechner authored
* Fix issue of cutting off decimal place .00 in statistics cards * Fix number formatting issue when decimal value is 3 * Fix number formatting issue for values below zero Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
- Jan 26, 2021
-
-
Lukas Lechner authored
-
BMItter authored
* Now it is working * fix tests, not working after change Co-authored-by:
Kolya Opahle <k.opahle@sap.com> Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
- Jan 25, 2021
-
-
Matthias Urhahn authored
This basically prevents unnecessary data refreshes when moving between screens. After adding #2190, this time based test is now a lot easier :). Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
chris-cwa authored
Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
Matthias Urhahn authored
* Adjust DispatcherProvider interface to return type `CoroutineContext`. This is a preamble to fix a few coroutine tests that require time advancement. We need to be able to pass the TestCoroutineScope's context to classes under test. This can now be done using CoroutineContext.asDispatcherProvider(). * Fix compile error in test Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com> Co-authored-by:
ralfgehrer <mail@ralfgehrer.com>
-
Mohamed Metwalli authored
* Migrate to dagger2 assisted injection * bump version * Fix Worker test * Fix failing test * Remove Square AssistedInject from Technical file * Set nav-graph in Ui Thread to prevent crashing * bump dagger to 2.31.2
-
- Jan 22, 2021
-
-
chris-cwa authored
* adjusted Contact journal info screen with the additional texts and behaviour * removed duplicate image * https://github.com/corona-warn-app/cwa-app-android/pull/2155/files#r560716121 * additional layer in order to test * fixed unused import -.- * https://github.com/corona-warn-app/cwa-app-android/pull/2155#discussion_r562458618 * https://github.com/corona-warn-app/cwa-app-android/pull/2155#pullrequestreview-574153478 Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
BMItter authored
Contact Journal Risk Extension - Risk details contact overview logic & peristance (EXPOSUREAPP-4577) (#2142) * Added AggregatedRiskPerDateResult to AggregatedRisk, Added AggregatedRiskPerDateResult to riskresult database * Added list of AggregatedRiskPerDateResult to AggregatedRisk, Added AggregatedRiskPerDateResult to riskresult db * Save aggregated risk per date results * Override aggregatedRiskPerDateResults * Delete risk level per date which are older than 2 weeks * Prepared logic to show risk level per date in contact diary overview * Test day mapping for risk result * Added tests for AggregatedRiskPerDateResultDao * Fixed layouts in contact diary overview * Show risk in overview * click adjustments * Moved logic into view model * adjusted ListItem * Added clearing of obsolete aggregated risk per date results, cleaned tests * detekt & klint clean * Added test for clearing aggregated risk per date results * avoid main thread * Performance up lift by avoiding string templates * missleading comment * adjusted filter method * We dislike flaky tests * Added testability for migration * Adjusted day count for journal * fixed test * ktlint & detekt * adjusten retention * ktlint, detekt * adjusted ContactDiaryCleanTaskTest * Add tests for aggregated risk per date result table Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
Matthias Urhahn authored
* Fix statistics data missing on in-app data reset due to no refresh being triggered. Don't do a full reset and add statistics data subscription timeout. * Fix test (bad changeset)
-
Kolya Opahle authored
* changed ExistingPeriodicWorkPolicy to KEEP for deadman check task to stop notification loop on every app open Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * fixed tests Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * Added info text to the schedulePeriodic doc ... ... to explain the change to ExistingPeriodicWorkPolicy * Fixed linting Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com> Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
- Jan 21, 2021
-
-
Lukas Lechner authored
Fix flickering of statistics cards when returning from statistics information screen (EXPOSUREAPP-4704) (#2175) * Override equals() of StatisticsHomeCard.Item to ignore onHelpAction click listener * Override hashCode() in StatisticsHomeCard.Item
-
Mohamed Metwalli authored
* Replace with lambda * Add specific error handling for tan retrieval * Extend from CwaClientError * Handle BadRequestException for Tan and keys exchange * lint * lint * Fix typo * Add unit tests * Check for cause
-
- Jan 20, 2021
-
-
Matthias Urhahn authored
Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com> Co-authored-by:
Lukas Lechner <lukas.lechner@sap.com>
-
- Jan 19, 2021
-
-
freddii authored
-