Skip to content

Commit c105a0d

Browse files
authored
[AppCheck] App Attest provider is supported by watchOS 9.0+ (#10098)
* [AppCheck] App Attest provider is supported by watchOS 9.0+ * Style * Add TODO * [skip ci] Review
1 parent 0373d0b commit c105a0d

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

FirebaseAppCheck/CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 9.5.0
2-
- [added] AppCheck's App Attest provider is available for tvOS 15.0+.
3-
- [added] AppCheck's DeviceCheck provider is available for watchOS 9.0+.
2+
- [added] DeviceCheck and App Attest providers are supported by watchOS 9.0+. (#10094, #10098)
3+
- [added] App Attest provider availability updated to support tvOS 15.0+. (#10093)
44

55
# 9.0.0
66
- [added] **Breaking change:** `FirebaseAppCheck` has exited beta and is now
@@ -21,13 +21,17 @@
2121
# 8.5.0
2222
- [changed] App Check SDK available for all supported platforms/OS versions, but App Attest and
2323
DeviceCheck providers availability changed to match underlying platfrom API availability. (#8388)
24+
2425
# 8.4.0
2526
- [fixed] Fixed build issues introduced in Xcode 13 beta 3. (#8401)
2627
- [fixed] Bump Promises dependency. (#8365)
28+
2729
# 8.3.0
2830
- [added] Token API for 3P use. (#8266)
31+
2932
# 8.2.0
3033
- [added] Apple's App Attest attestation provider support. (#8133)
3134
- [changed] Token auto-refresh optimizations. (#8232)
35+
3236
# 8.0.0
3337
- [added] Firebase abuse reduction support SDK. (#7928, #7937, #7948)

FirebaseAppCheck/Sources/Public/FirebaseAppCheck/FIRAppCheckAvailability.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,24 @@
4646

4747
#pragma mark - App Attest
4848

49+
#if defined(__WATCHOS_9_0) && __WATCH_OS_VERSION_MAX_ALLOWED >= __WATCHOS_9_0
50+
51+
// Targets where `DCAppAttestService` is available to be used in preprocessor conditions.
52+
#define FIR_APP_ATTEST_SUPPORTED_TARGETS \
53+
TARGET_OS_IOS || TARGET_OS_OSX || TARGET_OS_TV || TARGET_OS_WATCH
54+
55+
// `AppAttestProvider` availability annotations
56+
#define FIR_APP_ATTEST_PROVIDER_AVAILABILITY \
57+
API_AVAILABLE(macos(11.0), ios(14.0), tvos(15.0), watchos(9.0))
58+
59+
// TODO(ncooke3): Remove `#else` clause when Xcode 14 is the minimum supported Xcode.
60+
#else // defined(__WATCHOS_9_0) && __WATCH_OS_VERSION_MAX_ALLOWED >= __WATCHOS_9_0
61+
4962
// Targets where `DCAppAttestService` is available to be used in preprocessor conditions.
5063
#define FIR_APP_ATTEST_SUPPORTED_TARGETS TARGET_OS_IOS || TARGET_OS_OSX || TARGET_OS_TV
5164

5265
// `AppAttestProvider` availability annotations
5366
#define FIR_APP_ATTEST_PROVIDER_AVAILABILITY \
5467
API_AVAILABLE(macos(11.0), ios(14.0), tvos(15.0)) API_UNAVAILABLE(watchos)
68+
69+
#endif // defined(__WATCHOS_9_0) && __WATCH_OS_VERSION_MAX_ALLOWED >= __WATCHOS_9_0

0 commit comments

Comments
 (0)