mirror of
https://github.com/google/app-check
synced 2026-11-09 22:05:52 +05:45
[v11] Migrate to GoogleUtilities v8 (#61)
Signed-off-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>
This commit is contained in:
1 parent
ad32d9baa4
commit
34e4ef0800
20 files changed
+274
-112
No files matched your search
@@ -22,9 +22,6 @@
|
||||
#import "FBLPromises.h"
|
||||
#endif
|
||||
|
||||
#import <GoogleUtilities/GULURLSessionDataResponse.h>
|
||||
#import <GoogleUtilities/NSURLSession+GULPromises.h>
|
||||
|
||||
#import "AppCheckCore/Sources/Core/APIService/GACAppCheckAPIService.h"
|
||||
#import "AppCheckCore/Sources/Core/APIService/GACAppCheckToken+APIResponse.h"
|
||||
|
||||
@@ -67,13 +64,13 @@ static NSString *const kLimitedUseField = @"limited_use";
|
||||
NSURL *URL = [NSURL URLWithString:URLString];
|
||||
|
||||
return [self HTTPBodyWithDebugToken:debugToken limitedUse:limitedUse]
|
||||
.then(^FBLPromise<GULURLSessionDataResponse *> *(NSData *HTTPBody) {
|
||||
.then(^FBLPromise<GACURLSessionDataResponse *> *(NSData *HTTPBody) {
|
||||
return [self.APIService sendRequestWithURL:URL
|
||||
HTTPMethod:@"POST"
|
||||
body:HTTPBody
|
||||
additionalHeaders:@{kContentTypeKey : kJSONContentType}];
|
||||
})
|
||||
.then(^id _Nullable(GULURLSessionDataResponse *_Nullable response) {
|
||||
.then(^id _Nullable(GACURLSessionDataResponse *_Nullable response) {
|
||||
return [self.APIService appCheckTokenWithAPIResponse:response];
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user