Skip to content

Commit b334ae5

Browse files
committed
Updated xCode wrapper to satisfy Libindy
Signed-off-by: artem.ivanov <[email protected]>
1 parent df73c9f commit b334ae5

File tree

8 files changed

+0
-23
lines changed

8 files changed

+0
-23
lines changed

wrappers/ios/libindy-pod/Indy-demoTests/Case Tests/Anoncreds/AnoncredsHighCases.m

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,6 @@ - (void)testProverGetCredentialsForProofReqWorksForRevealedAttr {
479479

480480
NSString *credentialsJson;
481481
ret = [[AnoncredsUtils sharedInstance] proverGetCredentialsForProofReq:proofRequest
482-
extraQueryJson:nil
483482
walletHandle:walletHandle
484483
credentialsJson:&credentialsJson];
485484
XCTAssertEqual(ret.code, Success, @"AnoncredsUtils::proverGetCredentialsForProofReqWithWalletHandle returned wrong code");
@@ -517,7 +516,6 @@ - (void)testProverGetCredentialsForProofReqWorksForNotFoundAttribute {
517516

518517
NSString *credentialsJson;
519518
ret = [[AnoncredsUtils sharedInstance] proverGetCredentialsForProofReq:proofRequest
520-
extraQueryJson:nil
521519
walletHandle:walletHandle
522520
credentialsJson:&credentialsJson];
523521
XCTAssertEqual(ret.code, Success, @"AnoncredsUtils::proverGetCredentialsForProofReqWithWalletHandle returned wrong code");
@@ -557,7 +555,6 @@ - (void)testProverGetCredentialsForProofReqWorksForSatisfyPredicate {
557555

558556
NSString *credentialsJson;
559557
ret = [[AnoncredsUtils sharedInstance] proverGetCredentialsForProofReq:proofRequest
560-
extraQueryJson:nil
561558
walletHandle:walletHandle
562559
credentialsJson:&credentialsJson];
563560
XCTAssertEqual(ret.code, Success, @"AnoncredsUtils::proverGetCredentialsForProofReqWithWalletHandle returned wrong code");
@@ -596,7 +593,6 @@ - (void)testProverGetCredentialsForProofReqWorksForNotSatisfyPredicate {
596593
}];
597594
NSString *credentialsJson;
598595
ret = [[AnoncredsUtils sharedInstance] proverGetCredentialsForProofReq:proofRequest
599-
extraQueryJson:nil
600596
walletHandle:walletHandle
601597
credentialsJson:&credentialsJson];
602598
XCTAssertEqual(ret.code, Success, @"AnoncredsUtils::proverGetCredentialsForProofReqWithWalletHandle returned wrong code");
@@ -648,7 +644,6 @@ - (void)testProverGetCredentialsForProofReqWorksForMultiplyAttributeAndPredicate
648644

649645
NSString *credentialsJson;
650646
ret = [[AnoncredsUtils sharedInstance] proverGetCredentialsForProofReq:proofRequest
651-
extraQueryJson:nil
652647
walletHandle:walletHandle
653648
credentialsJson:&credentialsJson];
654649
XCTAssertEqual(ret.code, Success, @"AnoncredsUtils::proverGetCredentialsForProofReqWithWalletHandle returned wrong code");
@@ -749,7 +744,6 @@ - (void)testProverCreateProofWorks {
749744

750745
NSString *credentialsJson;
751746
ret = [[AnoncredsUtils sharedInstance] proverGetCredentialsForProofReq:proofRequest
752-
extraQueryJson:nil
753747
walletHandle:walletHandle
754748
credentialsJson:&credentialsJson];
755749

wrappers/ios/libindy-pod/Indy-demoTests/Case Tests/Anoncreds/AnoncredsMediumCasesDemos.m

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ - (void)testAnoncredsWorksForSingleIssuerSingleProver {
137137
NSString *credentialsJson = nil;
138138

139139
ret = [[AnoncredsUtils sharedInstance] proverGetCredentialsForProofReq:proofReqJson
140-
extraQueryJson:nil
141140
walletHandle:proverWalletHandle
142141
credentialsJson:&credentialsJson];
143142
XCTAssertEqual(ret.code, Success, @"proverGetCredentialsForProofReq() failed!");
@@ -387,7 +386,6 @@ - (void)testAnoncredsWorksForMultiplyIssuerSingleProver {
387386

388387
NSString *credentialsJson;
389388
ret = [[AnoncredsUtils sharedInstance] proverGetCredentialsForProofReq:proofReqJson
390-
extraQueryJson:nil
391389
walletHandle:proverWalletHandle
392390
credentialsJson:&credentialsJson];
393391
XCTAssertEqual(ret.code, Success, @"AnoncredsUtils::proverGetCredentialsForProofReq() failed");
@@ -651,7 +649,6 @@ - (void)testAnoncredsWorksForSingleIssuerMultipleCredentialsSingleProver {
651649

652650
NSString *credentialsJson;
653651
ret = [[AnoncredsUtils sharedInstance] proverGetCredentialsForProofReq:proofReqJson
654-
extraQueryJson:nil
655652
walletHandle:proverWalletHandle
656653
credentialsJson:&credentialsJson];
657654
XCTAssertEqual(ret.code, Success, @"AnoncredsUtils::proverGetCredentialsForProofReq() failed");

wrappers/ios/libindy-pod/Indy-demoTests/Demo Tests/AnoncredsDemo.mm

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ - (void)testAnoncredsDemo {
134134
NSString *credentialsJson = nil;
135135

136136
ret = [[AnoncredsUtils sharedInstance] proverGetCredentialsForProofReq:proofReqJSON
137-
extraQueryJson:nil
138137
walletHandle:walletHandle
139138
credentialsJson:&credentialsJson];
140139
XCTAssertEqual(ret.code, Success, @"proverGetCredentialsForProofReq() failed!");
@@ -558,7 +557,6 @@ - (void)testAnoncredsDemoForRevocationProof {
558557

559558
NSString *credentialsJson = nil;
560559
ret = [[AnoncredsUtils sharedInstance] proverGetCredentialsForProofReq:proofReqJson
561-
extraQueryJson:nil
562560
walletHandle:proverWalletHandle
563561
credentialsJson:&credentialsJson];
564562
XCTAssertEqual(ret.code, Success, @"proverGetCredentialsForProofReq() failed!");

wrappers/ios/libindy-pod/Indy-demoTests/Demo Tests/Interaction.mm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,6 @@ - (void)testAnoncredsRevocationInteractionForIssuanceOnDemand {
373373

374374
NSString *credentialsJson = nil;
375375
ret = [[AnoncredsUtils sharedInstance] proverGetCredentialsForProofReq:proofReqJson
376-
extraQueryJson:nil
377376
walletHandle:proverWalletHandle
378377
credentialsJson:&credentialsJson];
379378
XCTAssertEqual(ret.code, Success, @"proverGetCredentialsForProofReq() failed!");

wrappers/ios/libindy-pod/Indy-demoTests/Test Utils/AnoncredsUtils.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@
112112
outCredId:(NSString **)outCredId;
113113

114114
- (NSError *)proverGetCredentialsForProofReq:(NSString *)proofReqJSON
115-
extraQueryJson:(NSString *)extraQueryJson
116115
walletHandle:(IndyHandle)walletHandle
117116
credentialsJson:(NSString **)outCredentialsJson;
118117

wrappers/ios/libindy-pod/Indy-demoTests/Test Utils/AnoncredsUtils.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,6 @@ - (NSError *)proverStoreCredential:(NSString *)credJson
515515
}
516516

517517
- (NSError *)proverGetCredentialsForProofReq:(NSString *)proofReqJSON
518-
extraQueryJson:(NSString *)extraQueryJson
519518
walletHandle:(IndyHandle)walletHandle
520519
credentialsJson:(NSString **)outCredentialsJson {
521520
__block NSError *err = nil;
@@ -525,7 +524,6 @@ - (NSError *)proverGetCredentialsForProofReq:(NSString *)proofReqJSON
525524
completionExpectation = [[XCTestExpectation alloc] initWithDescription:@"completion finished"];
526525

527526
[IndyAnoncreds proverGetCredentialsForProofReq:proofReqJSON
528-
extraQueryJson:extraQueryJson
529527
walletHandle:walletHandle
530528
completion:^(NSError *error, NSString *credentialsJSON) {
531529
err = error;

wrappers/ios/libindy-pod/Indy/Wrapper/IndyAnoncreds.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -431,11 +431,6 @@
431431
// for date in this interval for each attribute
432432
// (can be overridden on attribute level)
433433
}
434-
@param extraQueryJSON: (Optional) List of extra queries that will be applied to correspondent attribute/predicate:
435-
{
436-
"<attr_referent>": <wql query>,
437-
"<predicate_referent>": <wql query>,
438-
}
439434
where
440435
wql query: indy-sdk/doc/design/011-wallet-query-language/README.md
441436
attr_referent: Proof-request local identifier of requested attribute
@@ -487,7 +482,6 @@
487482
}
488483
*/
489484
+ (void)proverGetCredentialsForProofReq:(NSString *)proofReqJSON
490-
extraQueryJson:(NSString *)extraQueryJSON
491485
walletHandle:(IndyHandle)walletHandle
492486
completion:(void (^)(NSError *error, NSString *credentialsJSON))completion;
493487

wrappers/ios/libindy-pod/Indy/Wrapper/IndyAnoncreds.mm

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,6 @@ + (void)proverCloseCredentialsSearchWithHandle:(IndyHandle)searchHandle
396396
}
397397

398398
+ (void)proverGetCredentialsForProofReq:(NSString *)proofReqJSON
399-
extraQueryJson:(NSString *)extraQueryJSON
400399
walletHandle:(IndyHandle)walletHandle
401400
completion:(void (^)(NSError *error, NSString *credentialsJSON))completion {
402401
indy_error_t ret;
@@ -406,7 +405,6 @@ + (void)proverGetCredentialsForProofReq:(NSString *)proofReqJSON
406405
ret = indy_prover_get_credentials_for_proof_req(handle,
407406
walletHandle,
408407
[proofReqJSON UTF8String],
409-
[extraQueryJSON UTF8String],
410408
IndyWrapperCommonStringCallback
411409
);
412410
if (ret != Success) {

0 commit comments

Comments
 (0)