ministero-salute / it-dgc-verificaC19-android

VerificaC19 is the official Italian customization of the EU Digital COVID Certificate Verifier App for the Android Operating System
https://www.dgc.gov.it
Apache License 2.0
101 stars 54 forks source link

not compile error Type mismatch: inferred type is ByteArray? but ByteArray was expected #75

Closed uganof closed 3 years ago

uganof commented 3 years ago

Hi, when I compile in Android Studio v. 4.2.2, exit with error:

it-dgc-verificaC19-android\app\src\main\java\it\ministerodellasalute\verificaC19\ui\main\verification\VerificationViewModel.kt: (96, 51): Type mismatch: inferred type is ByteArray? but ByteArray was expected

what can I do?

all necessary sources are updated by github

thanks

astagi commented 3 years ago

Hi @uganof try to update DGCA-APP-CORE-ANDROID repository to the latest commit, seems to be fixed there.

interface CompressorService {
    fun decode(input: ByteArray, verificationResult: VerificationResult): ByteArray?
}