Skip to content

Commit a4b3917

Browse files
committed
fix(app-check): fix platform guard for AppAttest to match upstream
macOS platform guard was missing, one method was missing all non-iOS guards
1 parent c9153ab commit a4b3917

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/app-check/ios/RNFBAppCheck/RNFBAppCheckProvider.m

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,18 @@ - (void)configure:(FIRApp *)app
5555
}
5656

5757
if ([providerName isEqualToString:@"appAttest"]) {
58-
if (@available(iOS 14.0, macCatalyst 14.0, tvOS 15.0, watchOS 9.0, *)) {
58+
if (@available(iOS 14.0, macOS 11.0, macCatalyst 14.0, tvOS 15.0, watchOS 9.0, *)) {
5959
self.delegateProvider = [[FIRAppAttestProvider alloc] initWithApp:app];
6060
} else {
6161
// This is not a valid configuration.
62-
DLog(@"AppAttest unavailable: it requires iOS14+, macCatalyst14+ or tvOS15+. Installing "
62+
DLog(@"AppAttest unavailable: it requires iOS14+, macOS 11+, macCatalyst14+ or tvOS15+. Installing "
6363
@"debug provider to guarantee invalid tokens in this invalid configuration.");
6464
self.delegateProvider = [[FIRAppCheckDebugProvider alloc] initWithApp:app];
6565
}
6666
}
6767

6868
if ([providerName isEqualToString:@"appAttestWithDeviceCheckFallback"]) {
69-
if (@available(iOS 14.0, *)) {
69+
if (@available(iOS 14.0, macOS 11.0, macCatalyst 14.0, tvOS 15.0, watchOS 9.0, *)) {
7070
self.delegateProvider = [[FIRAppAttestProvider alloc] initWithApp:app];
7171
} else {
7272
self.delegateProvider = [[FIRDeviceCheckProvider alloc] initWithApp:app];

0 commit comments

Comments
 (0)