mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-09 13:38:01 -05:00
[INJIMOB-2425]: Add updated VCI client version in Inji (#1848)
* [INJIMOB-2425]: Update VCI client to patch version in build.gradle Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com> * [INJIMOB-2425]: Update version to 0.3.0 SNAPSHOT verrsion Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com> * [INJIMOB-2425]: Update pacakge dependecy for VCI client Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com> --------- Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com>
This commit is contained in:
@@ -341,7 +341,7 @@ fileignoreconfig:
|
||||
- filename: android/app/src/main/java/io/mosip/residentapp/InjiVciClientModule.java
|
||||
checksum: 17f55840bab193bc353034445ba4fce53e1ce466e95f616c15a1351f8d2f23bc
|
||||
- filename: ios/Inji.xcworkspace/xcshareddata/swiftpm/Package.resolved
|
||||
checksum: e1814f6ac8fe15794f26e96de887bc196ffcb37b434d46ffb69a9497d2683667
|
||||
checksum: 785f2a3390ffd7b93974f449132008c7c1b8b6d1e8deaba7b1d0737be1b5f2f4
|
||||
- filename: injitest/src/main/resources/Vids.json
|
||||
checksum: 8bcffed7a6dd565ae695e1b29de0655e10bd5c5420af2718defd593a687b8817
|
||||
- filename: injitest/src/main/java/inji/utils/UpdateNetworkSettings.java
|
||||
|
||||
@@ -272,7 +272,7 @@ dependencies {
|
||||
implementation("io.mosip:pixelpass-aar:0.7.0-SNAPSHOT")
|
||||
implementation("io.mosip:secure-keystore:0.3.0")
|
||||
implementation("io.mosip:tuvali:0.5.2-SNAPSHOT")
|
||||
implementation("io.mosip:inji-vci-client:0.2.0")
|
||||
implementation("io.mosip:inji-vci-client:0.3.0-SNAPSHOT")
|
||||
implementation("com.google.code.gson:gson:2.10.1")
|
||||
implementation("io.mosip:vcverifier-aar:1.2.0-SNAPSHOT"){
|
||||
exclude group: 'org.bouncycastle', module: 'bcpkix-jdk15on'
|
||||
|
||||
@@ -766,7 +766,7 @@
|
||||
isa = XCRemoteSwiftPackageReference;
|
||||
repositoryURL = "https://github.com/mosip/inji-vci-client-ios-swift.git";
|
||||
requirement = {
|
||||
branch = "release-0.2.x";
|
||||
branch = develop;
|
||||
kind = branch;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -51,8 +51,8 @@
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/mosip/inji-vci-client-ios-swift.git",
|
||||
"state" : {
|
||||
"branch" : "release-0.2.x",
|
||||
"revision" : "21854f841c7dae09fa51878a40676841664cc18b"
|
||||
"branch" : "develop",
|
||||
"revision" : "d283c4f7951165328c6fd24b1c758baa766af74c"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -67,7 +67,7 @@
|
||||
{
|
||||
"identity" : "pixelpass-ios-swift",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/mosip/pixelpass-ios-swift/",
|
||||
"location" : "https://github.com/mosip/pixelpass-ios-swift.git",
|
||||
"state" : {
|
||||
"branch" : "release-0.6.x",
|
||||
"revision" : "15249dc4eecb7c2b6e6074193d3928b3402c9d20"
|
||||
|
||||
@@ -24,7 +24,7 @@ class RNVCIClientModule: NSObject, RCTBridgeModule {
|
||||
reject(nil, "Invalid issuerMeta format", nil)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
|
||||
guard let credentialAudience = issuerMetaDict["credentialAudience"] as? String,
|
||||
let credentialEndpoint = issuerMetaDict["credentialEndpoint"] as? String,
|
||||
@@ -34,9 +34,9 @@ class RNVCIClientModule: NSObject, RCTBridgeModule {
|
||||
reject(nil, "Invalid issuerMeta format", nil)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
var issuerMetaObject : IssuerMeta
|
||||
|
||||
|
||||
switch credentialFormat {
|
||||
case .ldp_vc:
|
||||
guard let credentialType = issuerMetaDict["credentialType"] as? [String] else {
|
||||
@@ -50,7 +50,7 @@ class RNVCIClientModule: NSObject, RCTBridgeModule {
|
||||
credentialType: credentialType,
|
||||
credentialFormat: credentialFormat
|
||||
)
|
||||
|
||||
|
||||
case .mso_mdoc:
|
||||
guard let doctype = issuerMetaDict["doctype"] as? String,
|
||||
let claims = issuerMetaDict["claims"] as? [String:Any] else {
|
||||
@@ -66,12 +66,12 @@ class RNVCIClientModule: NSObject, RCTBridgeModule {
|
||||
claims: claims
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
let response = try await vciClient!.requestCredential(issuerMeta: issuerMetaObject, proof: JWTProof(jwt: proof), accessToken: accessToken)!
|
||||
let responseString = try response.toJSONString()
|
||||
let responseString = try response.toJsonString()
|
||||
resolve(responseString)
|
||||
} catch {
|
||||
reject(nil,error.localizedDescription, nil)
|
||||
|
||||
Reference in New Issue
Block a user