Skip to content

Commit 0510690

Browse files
committed
chore(ios): handle newly deprecated SDK constants
firebase-ios-sdk 8.15.0 deprecates this with the explicit message that the values themselves will stay the same, and in their integration tests, they simply in-lined the constants, so follow same approach
1 parent bc8f7a6 commit 0510690

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/functions/ios/RNFBFunctions/RNFBFunctionsModule.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ @implementation RNFBFunctionsModule
6262
NSObject *details = [NSNull null];
6363
NSString *message = error.localizedDescription;
6464
NSMutableDictionary *userInfo = [NSMutableDictionary dictionary];
65-
if (error.domain == FIRFunctionsErrorDomain) {
66-
details = error.userInfo[FIRFunctionsErrorDetailsKey];
65+
if ([error.domain isEqual:@"com.firebase.functions"]) {
66+
details = error.userInfo[@"details"];
6767
if (details == nil) {
6868
details = [NSNull null];
6969
}

0 commit comments

Comments
 (0)