Extract data from QR codes (EXPOSUREAPP-6031) (#2843)
* extract data from qr code
* move to extractor
* unit test pcr test
* unit tests
* unit tests
* adapt for hash
* resolve merge conflicts
* make sure no unexpected exception is thrown in case a value is missing
* use correct type
* remove guid from supertype as RAT use a hsh instead
* fix tests
* add hex check
* detekt
Co-authored-by:
Lukas Lechner <lukas.lechner@sap.com>
Showing
- Corona-Warn-App/src/device/java/de/rki/coronawarnapp/risk/storage/DefaultRiskLevelStorage.kt 1 addition, 1 deletion...rki/coronawarnapp/risk/storage/DefaultRiskLevelStorage.kt
- Corona-Warn-App/src/main/java/de/rki/coronawarnapp/coronatest/qrcode/CoronaTestQRCode.kt 25 additions, 9 deletions...e/rki/coronawarnapp/coronatest/qrcode/CoronaTestQRCode.kt
- Corona-Warn-App/src/main/java/de/rki/coronawarnapp/coronatest/qrcode/CoronaTestQRCodeValidation.kt 0 additions, 12 deletions...nawarnapp/coronatest/qrcode/CoronaTestQRCodeValidation.kt
- Corona-Warn-App/src/main/java/de/rki/coronawarnapp/coronatest/qrcode/CoronaTestQRCodeValidator.kt 27 additions, 0 deletions...onawarnapp/coronatest/qrcode/CoronaTestQRCodeValidator.kt
- Corona-Warn-App/src/main/java/de/rki/coronawarnapp/coronatest/qrcode/InvalidQRCodeException.kt 5 additions, 0 deletions...coronawarnapp/coronatest/qrcode/InvalidQRCodeException.kt
- Corona-Warn-App/src/main/java/de/rki/coronawarnapp/coronatest/qrcode/PcrQrCodeExtractor.kt 34 additions, 0 deletions...rki/coronawarnapp/coronatest/qrcode/PcrQrCodeExtractor.kt
- Corona-Warn-App/src/main/java/de/rki/coronawarnapp/coronatest/qrcode/RapidAntigenQrCodeExtractor.kt 92 additions, 0 deletions...awarnapp/coronatest/qrcode/RapidAntigenQrCodeExtractor.kt
- Corona-Warn-App/src/main/java/de/rki/coronawarnapp/coronatest/type/rapidantigen/RapidAntigenProcessor.kt 1 addition, 1 deletion...app/coronatest/type/rapidantigen/RapidAntigenProcessor.kt
- Corona-Warn-App/src/main/java/de/rki/coronawarnapp/service/submission/QRScanResult.kt 0 additions, 28 deletions...a/de/rki/coronawarnapp/service/submission/QRScanResult.kt
- Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/submission/qrcode/scan/SubmissionQRCodeScanViewModel.kt 13 additions, 14 deletions...i/submission/qrcode/scan/SubmissionQRCodeScanViewModel.kt
- Corona-Warn-App/src/test/java/de/rki/coronawarnapp/coronatest/qrcode/CoronaTestQrCodeValidatorTest.kt 32 additions, 0 deletions...arnapp/coronatest/qrcode/CoronaTestQrCodeValidatorTest.kt
- Corona-Warn-App/src/test/java/de/rki/coronawarnapp/coronatest/qrcode/PcrQrCodeExtractorTest.kt 22 additions, 28 deletions...coronawarnapp/coronatest/qrcode/PcrQrCodeExtractorTest.kt
- Corona-Warn-App/src/test/java/de/rki/coronawarnapp/coronatest/qrcode/RapidAntigenQrCodeExtractorTest.kt 45 additions, 0 deletions...napp/coronatest/qrcode/RapidAntigenQrCodeExtractorTest.kt
- Corona-Warn-App/src/test/java/de/rki/coronawarnapp/coronatest/qrcode/TestQrCodes.kt 22 additions, 0 deletions...ava/de/rki/coronawarnapp/coronatest/qrcode/TestQrCodes.kt
- Corona-Warn-App/src/test/java/de/rki/coronawarnapp/ui/submission/qrcode/scan/SubmissionQRCodeScanViewModelTest.kt 33 additions, 5 deletions...bmission/qrcode/scan/SubmissionQRCodeScanViewModelTest.kt
Loading
Please register or sign in to comment