Skip to content
Snippets Groups Projects
Unverified Commit dd3ab20e authored by Mohamed's avatar Mohamed Committed by GitHub
Browse files

Trace Location URL and ID (EXPOSUREAPP-6137, EXPOSUREAPP-6182) (#2737)


* Use config regex

* Refactoring

* Verify functionality

* Specific exceptions

* Tests

* lint

* Generate QR Code url

* Test base32

* Generate QrCode from url data

* Remove / added by the system

* Remove prefix

* Prepare for location id calculation

* Calculate location id

* Location Id from trace location and tests split

* Display last added location data in test menu

* Update EventRegistrationTestFragmentViewModel.kt

* Simplify

* Display last locations

* Pass check In Id

* Tweaking

* Style text

* Base64

* Refactoring

* Move location id and url to TraceLocation and create them lazily

* Update ConfirmCheckInViewModelTest.kt

* Update test screen

* Base64 Id for readability

* Remove added descriptor

* Return null instead of 0

it does change the logic ,but how the usr sees it

* Use Okio extension

* Add parcelization test

* Update VerifiedTraceLocationTest.kt

* Provide locationId hash

* Delete DefaultQRCodeVerifierTest2.kt

* Add traceLocationIdHash to TraceLocation

* Rename

* Revert , server will match both

* Wrap exceptions

* Pass cause

* lint

* Return null

* Create ProtoBufKtTest.kt

* lint

Co-authored-by: default avatarharambasicluka <64483219+harambasicluka@users.noreply.github.com>
Co-authored-by: default avatarMatthias Urhahn <matthias.urhahn@sap.com>
parent f775c76e
No related branches found
No related tags found
No related merge requests found
Showing
with 449 additions and 481 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment