Skip to content

Commit

Permalink
v2.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelavoyan committed Mar 5, 2024
1 parent a02bf64 commit d913df0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions VCL/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ android {
defaultConfig {
minSdk 24
targetSdk 33
versionName "2.3.3"
versionCode 133
versionName "2.3.4"
versionCode 134
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,15 +289,18 @@ internal class CredentialIssuerVerifierImpl(
val allFutures = CompletableFuture.allOf(*completableFutures.toTypedArray())
allFutures.join()

if (isCredentialVerified)
completionBlock(VCLResult.Success(true))
else
completionBlock(
VCLResult.Failure(
globalError
?: VCLError(errorCode = VCLErrorCode.IssuerUnexpectedPermissionFailure.value)
globalError?.let {
completionBlock(VCLResult.Failure(it))
} ?: run {
if (isCredentialVerified) {
completionBlock(VCLResult.Success(true))
} else {
completionBlock(
VCLResult.Failure(VCLError(errorCode = VCLErrorCode.IssuerUnexpectedPermissionFailure.value))
)
)
}
}

} ?: run {
onError(
VCLError(errorCode = VCLErrorCode.InvalidCredentialSubjectType.value),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import io.velocitycareerlabs.impl.data.verifiers.CredentialIssuerVerifierImpl
import io.velocitycareerlabs.impl.domain.verifiers.CredentialIssuerVerifier
import io.velocitycareerlabs.impl.extensions.toJsonObject
import io.velocitycareerlabs.impl.extensions.toJwtList
import io.velocitycareerlabs.impl.utils.VCLLog
import io.velocitycareerlabs.infrastructure.network.NetworkServiceSuccess
import io.velocitycareerlabs.infrastructure.resources.CredentialTypesModelMock
import io.velocitycareerlabs.infrastructure.resources.valid.CredentialManifestMocks
Expand Down

0 comments on commit d913df0

Please sign in to comment.