- 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
-
Juraj Kusnier authored
-
- Jan 18, 2021
-
-
chris-cwa authored
* extracted patterns * - unexpected empty line * fixed encoding issues * was too complicated before * trying to live with different implementations * make everybody happy * pattern test * more normalizing * improved readability * team wants to hardcode everything * ktlint Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
Juraj Kusnier authored
* Introduce getFormattedDate() * Update strings
-
Chilja Gossow authored
* do not schedule reminders when test result has been viewed * clean up * renaming to make clear which notification is meant * refactor worker * rename * DI issues * DI test code * add else branch test code * test code * refactoring * comment
-
Lukas Lechner authored
* Implement StatisticsNumberValueFormatter.kt and add tests * Fix ktlint issues * Improve StatisticsNumberValueFormatter.kt * Reduce parameters for formatter, adapt test * Define formatting function as top-level function instead of a function in object
-
Matthias Urhahn authored
* Replace mock data with data loaded from server. * Revert unrelated change. * Some refactoring, add a generic statistics scope annotation. Clear retrofit cache on clear. * Clear statistic data on app reset. * Unit tests for StatisticsCache.kt * Implement tests for StatisticsModule init. * Add tests for statistics api. * Add statistics server tests that check signature validation behavior. * Add tests for StatisticsProvider behavior. * Tests for parsing statistics data. * LINTING * Add helper methods to access each cards values, and validate card KeyFigure count and types before exposing them. * LINTs. * Rename variable.
-
- Jan 15, 2021
-
-
Matthias Urhahn authored
-
- Jan 14, 2021
-
-
Matthias Urhahn authored
* Remove unused layout? * Add unit test that checks if we give consent. * Actually give consent. * Add more debug output. Log all the things! Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
- Jan 13, 2021
-
-
Katharina Seiz authored
* use Reuse Tool for Copyright and Licenses * adapt README * add chnaged open source libraries * NOTICE and THIRD-PARTY-NOTICE not needed anymore with reuse tool * add new file to dep5 file for reuse tool * fix badge info link and add Licensing chapter again * fix link to license within repo * fix badge info link * fix link to license within repo * add info about the reuse tool and the info link about the repo compliance * change wording * adapt year of copyright and add modification staements q * add license file again to root folder * adapt copyrights and add gradlew files to dep5 file * add link to chapter licensing again * fix links to LICENSE Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
- Jan 12, 2021
-
-
Mohamed Metwalli authored
* Pump dependencies versions * Traget Android 11 * Fix lint errors * Add method for failing binding * Fix lint errors * Fix more lint errors * Move away from deprecated Handler constructor with no specified looper * Use ResourcesCompat to retrieve drawables * Replace getDrawable with getDrawableCompat * Fix unit test * Fix content is not showing in Onboarding flow * lint * Fix lint failure Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
Mohamed Metwalli authored
-
- Jan 11, 2021
-
-
Matthias Urhahn authored
* Add log censoring for diary locations, persons and QR code token. * Fix divider not being hidden if bug report entry is hidden. * Fix censor modules not being applied in succession if multiple modules match. * Remove debug helper and address registration token PR issue Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com> Co-authored-by:
ralfgehrer <mail@ralfgehrer.com>
-
Mohamed Metwalli authored
* Fix some Kotlin warning * Klint * lint
-