Skip to content
Snippets Groups Projects
  1. Jan 25, 2021
    • Mohamed Metwalli's avatar
      Dagger2 Assisted Inject (Dev) #2181 · 82d322da
      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
      Unverified
      82d322da
  2. Jan 11, 2021
  3. Jan 08, 2021
  4. Jan 07, 2021
    • Matthias Urhahn's avatar
      Change LINT check for "LongMethod" from 60 to 120 lines. (#2047) · 0e5e9fc5
      Matthias Urhahn authored
      Long methods are not generally bad and should be decided on a case by case basis in PR reviews.
      Unverified
      0e5e9fc5
    • Matthias Urhahn's avatar
      Add debug log feature for non-tester builds (EXPOSUREAPP-4451) (#2029) · 54ddd11e
      Matthias Urhahn authored
      
      * Initial draft for user accessible debug logs in production.
      
      TODO: Sharing, Tests, Cleanup FileLoggerTree?
      
      * Ready strings for translation.
      
      * Log file compression for sharing (zip).
      
      * Add log sharing
      
      * Change how DebugLogger is initialized to make sure we can record issues that happen very early in the apps lifecycle.
      
      * Add missing toolbar back arrow navigation.
      
      * Fix initial delay for ui state emissions.
      
      * Censor registration token.
      
      * Adjust warning regarding sensitive data in debug logs.
      
      * Use property injection instead of component getters.
      
      * Hide option until greenlit.
      
      * Add test for RegistrationTokenCensor
      
      * Unit tests.
      
      * Make unit test without triggerfile more specific.
      
      * LINTs
      
      * Fix missing injection provider in release mode.
      
      * Fix regtoken censor if condition.
      
      * Fix typos.
      
      * Remove empty manifest specific to deviceForTesters build.
      
      * Wait until log job is canceled before deleting log files.
      Otherwise a race condition could lead to file creation after job cancellation.
      
      * Replace runBlockingTest with runBlocking we don't need scheduler control and runBlockingTest is sometimes unreliable.
      
      * Refactor FileSharing to use compat builder from androidx.
      
      * Handle exceptions on debug log start()
      
      * Print device infos when log is started.
      
      * Text changes requested by UA
      
      Co-authored-by: default avatarralfgehrer <mail@ralfgehrer.com>
      Unverified
      54ddd11e
  5. Jan 05, 2021
    • Matthias Urhahn's avatar
      Background/Async TEK submission (EXPOSUREAPP-3620) #2008 · 5c7ec06d
      Matthias Urhahn authored
      * Introduce lastSubmissionUserActivityUTC settings and use it as "skip condition" for the SubmissionTask
      
      * Introduce background submission.
      
      * Fix worker not being canceled.
      
      * Disable auto submission is consent is not given.
      
      * Cancel worker by tag.
      
      * Introduce per TaskRequest error-handling.
      Set SubmissionWorker deployed task requests to SILENT.
      
      * Fix test regressions due to api change.
      
      * Add SubmissionWorker test.
      
      * Add AutoSubmissionTest.kt
      
      * Don't reset retry attempt count and date when enabling MONITOR or SUBMIT_ASAP.
      Otherwise would loose that data when the app is restarted despite it still "trying".
      Only reset the data on DISABLED, i.e. when the task finishes or give sup.
      
      * Add additional SubmissionTaskTest.kt related to automatic submission behavior.
      
      * Remove unused value.
      
      * Fix typo
      
      * Return Result.retry() on exceptions.
      We retry until we are successful, any abort conditions will be handled by the task.
      
      * LINTs
      
      * Fix test regression.
      Unverified
      5c7ec06d
  6. Dec 28, 2020
  7. Dec 23, 2020
    • Matthias Urhahn's avatar
      Check device time (EXPOSUREAPP-2998) (#1985) · 6e7d89e2
      Matthias Urhahn authored
      * 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.
      Unverified
      6e7d89e2
    • Matthias Urhahn's avatar
      Improve risklevel result data access performance (DEV) #1953 · 665b6f21
      Matthias Urhahn authored
      
      * Don't log all exposure windows on `RiskLevelTaskResult.toString()` due to performance impact when logging.
      
      * Add RiskLevelResult flow optimized for just getting the latest two results.
      
      * Share risk level result subscriptions.
      The delay when switching from Home to RiskDetails fragment will be bridged and no re-loading necessary.
      
      * Fix test regressions
      
      * Remove test code.
      
      * Introduce specific query for "latestAndLastSuccessful".
      Add unit tests for SQL queries.
      
      * Fix test regressions due to missing mocking.
      
      * Address merge conflicts.
      
      * Fix instrumentation tests not building.
      
      Co-authored-by: default avatarRalf Gehrer <ralfgehrer@users.noreply.github.com>
      Unverified
      665b6f21
    • Rituraj Sambherao's avatar
      Wrong button text color in symptom flow (EXPOSUREAPP-4207) #1911 · c4ea0d24
      Rituraj Sambherao authored
      
      * Text Color changed
      
      * Text Color changed for calendar screen
      
      * removing build.gradle changes that carried over from 1.10
      
      * lint fix
      
      * adapt color scheme to be consistent and high contrast
      
      * klint
      
      Co-authored-by: default avatarRalf Gehrer <ralfgehrer@users.noreply.github.com>
      Co-authored-by: default avatarChilja Gossow <49635654+chiljamgossow@users.noreply.github.com>
      Co-authored-by: default avatarchilja <chiljamgossow@gmail.com>
      Unverified
      c4ea0d24
  8. Dec 22, 2020
    • Matthias Urhahn's avatar
      Refactor home-screen and tracing details fragment (EXPOSUREAPP-4049) (#1912) · 2880971e
      Matthias Urhahn authored
      
      * Refactor home-screen and tracing details fragment.
      * Use recycler view to display list items
      * Remove nested/included layouts and make Android Studio layout previews functional
      * Split list items into independent elements (positive/negative/pending)
      * Layout cleanups & flattening
      * Small padding and alignment fixes
      
      * Clean up tests and fix class names.
      
      * Move UI classes towards "package by feature", each feature has their own ui package.
      
      * LINTs
      
      * Fix log statements.
      
      * Only crash in tester builds.
      
      * Update Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/main/home/HomeAdapter.kt
      
      Co-authored-by: default avatarfynngodau <fynngodau@mailbox.org>
      
      * Refactor adapter init.
      
      * LINT
      
      * Remove "card" from property name, the "TracingStateProvider" is UI agnostic.
      
      * LINTs
      
      * Don't show the risk card if there is a positive test result.
      
      * Fix crash on init with unknown resource IDs (before data binding is available).
      
      * Fix progress card not being colored in risk details fragment
      
      * LINTs
      
      * Prepare viewholders for payload use.
      
      * Update Corona-Warn-App/src/main/res/layout/home_fragment_layout.xml
      
      Co-authored-by: default avatarfynngodau <fynngodau@mailbox.org>
      
      * Improve toolbar and tracing bar behavior, scrollable, fewer nested layouts.
      
      * Adjust popup theme.
      
      * Remove color state list for cards, click behavior is done via `selectableItemBackground`
      
      * Fix visual artifact when expanding toolbar menu.
      
      * Align box coloring in dark mode and click animation.
      
      * Fix flickering Test and FAQ card.
      
      * Fix missing "enable tracing" button in home card.
      
      * Fix risk/tracing details elevation/dividers in light and dark mode
      
      * Resolve merge regressions and include contact diary card via recyclerview.
      
      * Adjust toolbar background color to new mockups (diary mockups have lighter darkmode).
      
      * Update Corona-Warn-App/src/main/res/layout/home_card_container_layout.xml
      
      Co-authored-by: default avatarfynngodau <fynngodau@mailbox.org>
      
      * Update Corona-Warn-App/src/main/res/layout/tracing_content_failed_view.xml
      
      Co-authored-by: default avatarfynngodau <fynngodau@mailbox.org>
      
      * Tint card background color. Just replacing the background didn't ahve the desired effect.
      
      * Fix possible NPE on last encounter calculation.
      
      * LINTs and typos.
      
      Co-authored-by: default avatarfynngodau <fynngodau@mailbox.org>
      Unverified
      2880971e
  9. Dec 17, 2020
    • Chilja Gossow's avatar
      Contact diary edit screens (EXPOSUREAPP-4161 EXPOSUREAPP-4162) (#1908) · 063442b6
      Chilja Gossow authored
      * Merge branch 'feature/4152-contact-diary' of https://github.com/corona-warn-app/cwa-app-android into feature/4152-contact-diary
      
      # Conflicts:
      #	Corona-Warn-App/schemas/de.rki.coronawarnapp.contactdiary.storage.ContactDiaryDatabase/1.json
      #	Corona-Warn-App/src/main/java/de/rki/coronawarnapp/util/DataReset.kt
      
      * clean up DI
      
      * add recycler view
      
      * clean up
      
      * new texts
      
      * clean up
      
      * clean up
      
      * background, dialog
      
      * klint
      
      * klint
      
      * klint
      
      * review comments
      
      * review comments
      
      * review comments
      
      * Merge branch 'feature/4152-contact-diary' into feature/4161-4162-edit-person-location
      
      # Conflicts:
      #	Corona-Warn-App/src/main/java/de/rki/coronawarnapp/contactdiary/ui/onboarding/ContactDiaryOnboardingFragment.kt
      Unverified
      063442b6
    • AlexanderAlferov's avatar
      Contact diary data retention (EXPOSUREAPP-4167) (#1903) · 32ced070
      AlexanderAlferov authored
      * Data retention with test fragment and tests
      
      * Formatting
      
      * Minor fix
      
      * Removed unnecessary injection
      
      * Resolve merge conflicts
      
      * Adjusted Tasks with tests
      
      * Formatting
      
      * Refactoring
      Unverified
      32ced070
  10. Dec 14, 2020
    • Matthias Urhahn's avatar
      Fix crash when accessing TEK history without tracing enabled (EXPOSUREAPP-4284) (#1886) · a40222ae
      Matthias Urhahn authored
      * Fix crash when trying to update TEK history without tracing enabled.
      Refactor tracing permission requests and then re-use the tracing permission requests within the TEK updater logic.
      
      * Fix test regressions.
      
      * Implement additional unit tests for TEKHistoryUpdater.kt
      
      * Additional unit tests for ENF related permission requests.
      
      * Additional tests for TEKHistory Updater/TracingPermission callbacks.
      
      * Additional tests for TracingPermissionHelper.kt handleActivityResult calls.
      Unverified
      a40222ae
  11. Dec 10, 2020
  12. Dec 08, 2020
  13. Dec 07, 2020
    • chris-cwa's avatar
      Fixed: fields without values are visible (EXPOSUREAPP-3988) (#1808) · 20baacc9
      chris-cwa authored
      
      * fixed: fields without values are visible; + logs
      
      * detect version update, force recalc on 1.7 -> 1.8
      
      * detect version update in diagnosis keys task only
      
      * no connection type ignoring
      
      * Add test to ensure that parsing old configs from 1.7.x fails and the default fallback for 1.8.x is used.
      
      * Fix logging typo.
      
      * no wasLastDetectionPerformedRecently abort on app update
      
      * Fix lint issues
      
      * fixed condition
      
      * used shared settings
      
      * get last encounter at from enf v1 to display second line after app update while risk level calc is not finished
      
      * fixed di
      
      * fixed tests
      
      * fixed tests
      
      * fixed tests
      
      * Add unit tests for DownloadDiagnosisKeysTask.kt
      
      * fixed tests
      
      * Add tests for DownloadDiagnosisKeysSettingsTest
      
      Co-authored-by: default avatarMatthias Urhahn <matthias.urhahn@sap.com>
      Unverified
      20baacc9
  14. Dec 03, 2020
    • Matthias Urhahn's avatar
      Submission upload (EXPOSUREAPP-3748) (#1794) · 950653c1
      Matthias Urhahn authored
      * Submission upload, first draft.
      Storing Symptoms and TEKs.
      
      TODO:
      * Change upload task to use stored data.
      * Blocking upload task
      * Tests
      
      * Update symptoms on each screen.
      Integrate permission request and automatic TEK history update.
      
      TODO:
      * Cancel dialog
      * Blocking upload task
      * Tests
      
      * Add submission on cancel behavior.
      
      * LINTs and unit tests.
      
      * Hooking up navigation and first break through on TAN based submission.
      
      * Hook up navigation for QR Code to test result without consent.
      
      * Fix positive result consent given submission: Abort to Main Screen
      
      * Restore default environment.
      
      * Adjust notification target fragment.
      
      * Address LINTs
      
      * Clean up symptoms introduction nav actions.
      
      * Fix tests
  15. Dec 02, 2020
    • Rituraj Sambherao's avatar
      Submission flow no consent keys Submission Screen (EXPOSUREAPP-4064) (#1783) · 9d7c8906
      Rituraj Sambherao authored
      * Andere Warnen screen added
      
      * Merge conflict resolve and screen stability improvement
      
      * string text header added to ensure translation
      
      * using submitTaskState instead of API request state
      
      * onDataPrivacyClick() function added in the relevant viewModel
      
      * long strings divided
      
      * legal strings updated
      
      * added navigation to mainfragment
      removed unnecessary cases
      fixed colors for under16 layout
      fixed country list in layout
      added onDataPrivacyClick method in own ViewModel
      refactored color value
      
      * minor changes in navigation
      Unverified
      9d7c8906
  16. Dec 01, 2020
  17. Nov 30, 2020
  18. Nov 27, 2020
  19. Nov 26, 2020
  20. Nov 25, 2020
  21. Nov 24, 2020
  22. Nov 23, 2020
  23. Nov 20, 2020
  24. Nov 19, 2020
Loading