Skip to content
Snippets Groups Projects
  1. Apr 20, 2021
  2. Apr 19, 2021
  3. Apr 16, 2021
    • Matthias Urhahn's avatar
      Corona test result fetching, storage & wiring (EXPOSUREAPP-6007) (#2824) · 8abd1754
      Matthias Urhahn authored
      * Refactoring. Move VerificationServer to `coronatest` package. Rename `TestResult` to `CoronaTestResult` and add new states.
      
      * CoronaTestRepository, draft2. More structure, modularise creation. Wire up HotDataFlow.
      
      * CoronaTestRepository, draft3. Test specific logic delegation to processor modules. Wire up legacy migration.
      
      * CoronaTestRepository, draft4. Test result polling & DataReset.
      
      * CoronaTestRepository, draft5. More migration logic.
      
      * Revert default env change.
      
      * Flesh out test storage further.
      
      * Extend test data with additional attributes, further move migration along.
      
      * Handle setting items as "being processed" when polling for test results.
      
      * Make SubmissionState test specific and remove SubmissionStateProvider.kt in favor of a state mapper for PCRCoronaTest.kt via extension function.
      
      * Make the refresh call blocking, so workers don't need extra logic to keep running.
      
      * Catch polling exceptions on processor level and store the exception.
      
      * Address PR comments and refactor legacy test data migration.
      
      * Adjust property visibility.
      
      * Make registerTest return the new test to allow the UI to navigate based on the return value.
      
      * Refactor test registration to support creating `CoronaTest` instances via TANs.
      
      * More specific key preference key.
      
      * CoronaTestRepository, draft6. Wire up SubmissionRepository.kt with all related UI elements.
      Fix dagger injection issues (loop) related to worker scheduling.
      
      * Resolve merge conflicts. Wire up HomeFragmentViewModel.kt
      
      * Fix test display behavior, only one unregistered card needs to be visible?
      
      * Fix unit tests, Pass1.
      
      * Lints
      
      * Fix unit tests, Pass2.
      
      * Fix unit tests, Pass3.
      
      * Fix unit tests, Pass4.
      
      * LINTs
      
      * Fix instrumentation tests.
      
      * Workaround for submission flow until more PRs are merged., grant consent change.
      
      * Fix processing state not being set according to parameter.
      
      * Fix/Adjust corona test storage.
      
      * Fix stableID collision between coronatest home screen cards.
      
      * Bandage unit tests that were affected by moving consent.
      8abd1754
  4. Apr 15, 2021
  5. Apr 14, 2021
  6. Apr 12, 2021
  7. Apr 09, 2021
  8. Apr 07, 2021
    • Chilja Gossow's avatar
      Warning package download & scheduling (EXPOSUREAPP-5695,EXPOSUREAPP-5696) (#2707) · 63050aca
      Chilja Gossow authored
      
      * download and repo
      
      * download warning packages
      
      * download warning packages
      
      * TraceTimeWarning Download, Draft2
      
      * TraceTimeWarning Download, Draft3
      
      * Offer only new warning packages via API.
      
      * Remove duplicate test menu entry.
      
      * TraceTimeWarning Download, Draft5
      
      * Adapt CheckInWarningMatcher to mark processed packages.
      
      * Fix failing unit tests.
      
      * Unit Test Skeletons
      
      * Back BackgroundScheduler non-static and injected.
      
      * Refactored and combined diagnosis and tracing periodic workers.
      
      * Fix unit test.
      
      * LINTs
      
      * Adapt marking packages as processed to upstream CheckInWarningMatcher changes.
      
      * Copy .await() from worker library to project due to being scope restricted.
      
      * unit tests
      
      * klint
      
      * klint
      
      * add TODO for matching comparison
      
      * refactor combination of results
      
      * rename
      
      * add test for combine
      
      * revert unnecessary changes
      
      * change initial result to failed
      
      * using low risk as default for lastCalculated to maintain the old behavior when no results are available
      
      * klint
      
      * Resolve merge regressions.
      
      * Fix fake check-in generation.
      
      * Handle worker refactoring gracefully, catch ClassNotFoundException.
      
      * Refactoring packages.
      
      * Refactor CheckInWarningMatcher.kt and PresenceTracingWarningTask.kt
      Move repository/database update calls to task, let the matcher only be responsible for matching.
      
      * Adjust test fragment to allow retriggering the download + matching task.
      
      * Fix refactoring regression.
      
      * Fix flaky time label test.
      
      * Fix package import.
      
      * Fix another timezone based flaky test.
      
      * Reduce nesting level to make the linter happy.
      
      * Update ROOM schema files.
      
      * Update ROOM schema files.
      
      * Refactoring.
      
      * Small naming fixes
      
      * Shorten worker IDs.
      
      * Collect BerndStylePoints™
      
      * Set tableName explicitly.
      
      * * Adjust id comparison within CheckInWarningMatcher.kt
      * Add tests for traceLocationIdHash calculation.
      * Calculate traceLocationIdHash on-demand, don't store it.
      
      * Improve trace warning task test menu output.
      
      * Remove spammy log output.
      
      * Remove unused function
      
      * Add additional TraceLocation test cases that match mock server.
      
      * Improve check-in matching log messages.
      
      * Fix duplicate overlaps and check for overlap distinctness.
      
      * Add test for config timeout value.
      
      * Remove unused test.
      
      * Use time measuring function.
      
      * Simplify error case handling for revoked metadata packages.
      
      * Turn createMatchingLaunchers into runMatchingLaunchers
      
      * Use TimeUnit.MINUTES
      
      * Remove extra deletion call.
      If there are no CheckIns, the SyncTool will have deleted all matches already.
      
      * Use flatMap instead of flatten.
      
      * Use more specific names (toCheckInWarningOverlap/toTraceTimeIntervalMatchEntity)
      
      * Revert "Remove extra deletion call. If there are no CheckIns, the SyncTool will have deleted all matches already."
      
      This reverts commit 3b0acf3d
      
      * Fix merge conflict regressions.
      
      Co-authored-by: default avatarMatthias Urhahn <matthias.urhahn@sap.com>
      Co-authored-by: default avatarharambasicluka <64483219+harambasicluka@users.noreply.github.com>
      Co-authored-by: default avatarAlexander Alferov <a.alferov@sap.com>
      63050aca
    • BMItter's avatar
      Risk representation for the contact journal according to the newest tech spec... · 1fbf873e
      BMItter authored
      Risk representation for the contact journal according to the newest tech spec (EXPOSUREAPP-5413) (#2754)
      
      * Sort events by trace location description
      
      * Get trace location description from CheckInRepository
      
      * Adjusted test to changes in view model, Use hardcoded date
      
      * Adjusted test
      
      * sourceCheck CleanUp
      
      * LongParameterList handling
      
      * Also check if description was mapped from check in
      
      * avoid suppressing LongParameterLister
      
      * ups
      
      Co-authored-by: default avatarharambasicluka <64483219+harambasicluka@users.noreply.github.com>
      1fbf873e
    • Mohamed's avatar
      QR Code Poster (EXPOSUREAPP-5962) (#2727) · 53cf44c2
      Mohamed authored
      * Move CreateTraceLocationApiV1.kt and TraceLocationServer.kt into new sub-package
      
      * Move CreateTraceLocation DI logic into sub-package
      
      * Create infrastructure code for new Qr-Code Poster Template Endpoint
      
      * Add new url to environment
      
      * Show new URL in the Test Menu
      
      * Implement unzipping, signature verification and parsing
      
      * Add possibility to download poster template from TestMenu
      
      * Show Android Vector Drawable in TestMenu
      
      * Create QrCodePosterTemplateApiV1Test.kt
      
      * Remove non-used ProtoConverter from retrofit
      
      * Change button position in Test Fragment
      
      * Show error if something goes wrong
      
      * Improve QrCodePosterTemplateApiV1Test.kt
      
      * Create QrCodePosterTemplateServerTest.kt
      
      * Initial setup
      
      * Connect flow to poster
      
      * Fix flow connection
      
      * Nice transition
      
      * Lint
      
      * Allow nullable extras
      
      * Adjust icon tint
      
      * rename file
      
      * Use MutableLive Data to keep the bitmap on back navigation
      
      * Fix merge issues
      
      * Change title
      
      * Display poster
      
      * lint
      
      * Adjust QR Code margin
      
      * Adjust position
      
      * Show progress
      
      * Print PDF
      
      * lint
      
      * Update QrCodePosterFragment.kt
      
      * Refactoring
      
      * Renaming
      
      * Position QR Code image
      
      * Specify size as A3
      
      * Fix merge issues
      
      * Pass location id
      
      * lint
      
      * Avoid nullable
      
      * Avoid creating blank file
      
      * Use config to position poster and QR Code
      
      * lint
      
      * Refactoring
      
      * Add info text
      
      * Scale info text
      
      * Enhancement
      
      * Defensive color parsing
      
      * typo
      
      * Delete testing screens
      
      * Revert
      
      * 🧼
      
      
      
      * Rename
      
      * Linear progress
      
      * Update QrCodePosterViewModel.kt
      
      * unify folders
      
      * Update QrCodePosterViewModel.kt
      
      * Show progress
      
      * Use server values
      
      * Generate QR Code from location url
      
      * Update TraceLocation.kt
      
      * Use location data
      
      * Remove old views and update layout preview
      
      * lint
      
      * Extend testing by adding access to qrCode
      
      * Add qrcode screen to test graph
      
      * Update fragment_test_eventregistration.xml
      
      * Rename PDF file
      
      * Polishing
      
      * Create QrCodePosterViewModelTest.kt
      
      * Update QrCodePosterViewModelTest.kt
      
      * lint
      
      * Use weak reference
      
      * Switch context
      
      * Updated strings
      
      Co-authored-by: default avatarLukas Lechner <office@lukaslechner.com>
      Co-authored-by: default avatarharambasicluka <64483219+harambasicluka@users.noreply.github.com>
      Co-authored-by: default avatarLukas Lechner <lukas.lechner@sap.com>
      Co-authored-by: default avatarI502720 <axel.herbstreith@sap.com>
      53cf44c2
  9. Apr 06, 2021
  10. Apr 01, 2021
  11. Mar 31, 2021
    • BMItter's avatar
      Contact Journal Event/Risk extension (EXPOSUREAPP-5413) #2696 · bc2764a2
      BMItter authored
      
      * string preparation
      
      * Use modular recycler view for dairy days, adapter, items, layouts
      
      * Use modular recycler view for dairy days - next
      
      * improved item handling
      
      * Added dividers, diff util
      
      * adjusted header logic
      
      * Added final risk event for diary, refactored ENFitem and ENFvh, cleanup
      
      * final logic for risk event diary
      
      * Adjusted baselne - diary extension
      
      * diary db migration and new attributes for event extension
      
      * cleanup, sourceCheck
      
      * clean code
      
      * Added migration tests, updated ContactDiaryDatabaseTest to utilize new attributes
      
      * Replaced recyclerview with Flow, some layout improvements
      
      * Removed unused viewholders
      
      * Fixed contact diary test
      
      * Removed debug code
      
      * Fixed broken tests
      
      * Added test for risk by event
      
      * Adjusted spacing
      
      * cleanup, missing itemDecoration
      
      * cleanup, detekt, reduced complexity
      
      * named params
      
      * Use srcCompat
      
      * replaced event with trace location
      
      * Respecting the tech spec
      
      * conflicts resolved for OverviewViewModel
      
      * source clean
      
      * fix conflicts to newest 2.0 merge
      
      * resolve merged migration test conflict
      
      Co-authored-by: default avatarharambasicluka <64483219+harambasicluka@users.noreply.github.com>
      Co-authored-by: default avatarMohamed <mohamed.metwalli@sap.com>
      bc2764a2
    • Lukas Lechner's avatar
      Create trace locations locally (EXPOSUREAPP-6015) (#2717) · 3c86de75
      Lukas Lechner authored
      
      * Remove Server Communication during for event creation
      
      * Fix EventRegistrationTestFragmentViewModel.kt
      
      * Make compiler happy after TraceLocation model changes
      
      * Adapt tests for TraceLocation model changes
      
      * Fix instrumentation tests
      
      * Add test for TracelocationUserInput -> TraceLocation mapper
      
      * Remove Create TraceLocation Url from Environment and Debug Options
      
      * Remove TRACE_LOCATION_VERSION constant
      
      * Do the encoding samba dance
      
      * Update room schema for event registration
      
      * Fix layout issue in debug options
      
      Co-authored-by: default avatarharambasicluka <64483219+harambasicluka@users.noreply.github.com>
      3c86de75
    • Alex Paulescu's avatar
      Trace Location QR Info screen (EXPOSUREAPP-5411) (#2708) · 60488d70
      Alex Paulescu authored
      
      * Added drawables.
      
      * Updated Strings.
      
      * Added QR info screen.
      
      * Accounted for all navigation possibilities.
      
      * Ktlin fix.
      
      * Fixed instrumentation test.
      
      * Update legal strings
      
      * BE to AE English fix
      
      * Addressed PR comments.
      
      * Now using MoreInformationView for DataPrivacy.
      
      * Removed duplicate code.
      
      Co-authored-by: default avatarRalf Gehrer <ralfgehrer@users.noreply.github.com>
      Co-authored-by: default avatarralfgehrer <mail@ralfgehrer.com>
      Co-authored-by: default avatarharambasicluka <64483219+harambasicluka@users.noreply.github.com>
      60488d70
    • Chilja Gossow's avatar
      Check-in matching (EXPOSUREAPP-5694) (#2659) · 75696a32
      Chilja Gossow authored
      
      * risk calculation
      
      * refactoring
      
      * mapping tests
      
      * move risk calculation to different change list
      
      * detekt
      
      * refactoring
      
      * compare byte array
      
      * refactor guidHash
      
      * merge 2.0.x
      
      * clean up
      
      * improve performance
      
      * klint
      
      * merge 2.0.x
      
      * adapt tests
      
      * revert unintended change
      
      * db json
      
      * change package
      
      * klint
      
      * clean up naming
      
      * parallel matching
      
      * comments
      
      * klint
      
      * limit parallel processing to max of 4
      
      * merge
      
      * move into one file
      
      * change visibility
      
      * fix test
      
      * Revert to default ENV for deviceForTestersDebug
      
      * Revert "Revert to default ENV for deviceForTestersDebug"
      
      This reverts commit e98432fc
      
      Co-authored-by: default avatarharambasicluka <64483219+harambasicluka@users.noreply.github.com>
      Co-authored-by: default avatarMatthias Urhahn <matthias.urhahn@sap.com>
      75696a32
  12. Mar 26, 2021
  13. Mar 25, 2021
  14. Mar 23, 2021
  15. Mar 22, 2021
  16. Mar 19, 2021
  17. Mar 18, 2021
    • Matthias Urhahn's avatar
      QR Code parsing (DEV/EXPOSUREAPP-5841) (#2622) · 4c0101be
      Matthias Urhahn authored
      * Adopt new signedTraceLocationFormat
      
      * QR Code decoding adjustment.
      
      * Adjust failing test & refactoring.
      
      * Fix typo.
      
      * Remove duplicate data class and re-use DefaultTraceLocation.
      Adjust to new signature/location bytearray encoding.
      
      * Remove extra interface for TraceLocation and use the dataclass directly.
      
      * Package refactoring
      
      * Fix package import.
      
      * Fix package import in nav graph
      
      * Fix additional package imports.
      
      * Fix additional package imports.
      4c0101be
  18. Mar 17, 2021
  19. Mar 16, 2021
  20. Mar 12, 2021
  21. Mar 11, 2021
    • Lukas Lechner's avatar
      Create events repository (EXPOSUREAPP-5470) (EXPOSUREAPP-5482)(EXPOSUREAPP-5484) (#2549) · daa6c773
      Lukas Lechner authored
      * Add events card in event registration test fragment
      
      * Format
      
      * Create empty fragments and implement navigation
      
      * Create layout for CreateEventTestFragment.kt
      
      * Add spinner for event type
      
      * Build event object from input
      
      * Create database for event registration and store events in it
      
      * Fix date issue
      
      * Show stored events in a simple way
      
      * Make event list more pretty
      
      * Add button to delete all events in ShowStoredEventsTestFragment.kt
      
      * Change the functions of HostedEventRepository.kt to regular functions instead of suspend functions
      
      * Change text in EventRegistration TestFragment
      
      * Fix merge issues
      
      * Add parameters from new TechSpec
      
      * Change wording from 'hosted Events' to 'TraceLocation'
      
      * Delete event registration database on app reset
      
      * Fix detect issue 'MaxLineLength'
      
      * Remove parcelable from TraceLocationEntity.kt
      
      * Map TraceLocationEntity to TraceLocation in TraceLocationRepository
      
      * Use the Instant.seconds extension function
      
      * Use existing EventRegistrationModule.kt instead of creating a new one
      
      * Only delete traceLocations on App reset instead of all tables in TraceLocationRepository.kt
      
      * Add named parameters to TraceLocation mapping
      
      * Add unit test for TraceLocation Mapper
      
      * Add unit tests for EventRegistrationConverters
      
      * Add unit tests for TraceLocationEntity mapping
      
      * Add events database table to 'TraceLocation' database and remove 'EventRegistration' database
      
      * Add database tests for TraceLocations
      
      * Fix issue in EventRegistrationModule.kt
      
      * Add database tests for checkInDao
      
      * Fix detekt maxLineLength issue
      
      * Fix inconsistency in TraceLocationEntity.kt
      
      * Fix ktlint issues
      
      * Inherit from BaseTest or BaseTestInstrumentation in tests
      
      * Fix issue in TraceLocationConverters.kt
      daa6c773
    • Mohamed Metwalli's avatar
      Ignore Tests · 1a19ad79
      Mohamed Metwalli authored
      1a19ad79
    • Mohamed Metwalli's avatar
      Use SignedTraceLocation · df4df8a8
      Mohamed Metwalli authored
      df4df8a8
Loading