Skip to content

Commit 7ad2380

Browse files
authored
add deprecation for watchOS (#10274)
* add deprecation for watchOS * fix style script mangling link and run style * rephrase deprecation message * Add changelog
1 parent be7128b commit 7ad2380

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

FirebaseDatabase/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 10.0.0
2+
- [deprecated] Deprecated `FirebaseDatabase` on watchOS 9 and above.
3+
watchOS users should instead use the Database REST API directly (#19272).
4+
15
# 9.6.0
26
- [fixed] Fix priority inversion issue exposed by Xcode 14. (#10130)
37

FirebaseDatabase/Sources/Public/FirebaseDatabase/FIRDatabase.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ NS_ASSUME_NONNULL_BEGIN
2626
* by calling `Database.database()`. To access a location in the database and
2727
* read or write data, use `FIRDatabase.reference()`.
2828
*/
29-
NS_SWIFT_NAME(Database)
29+
NS_SWIFT_NAME(Database) __attribute__((availability(
30+
watchos, introduced = 6.0, deprecated = 9.0,
31+
message = "Socket connections are not supported on watchOS 9.0 and higher. "
32+
"Use the Firebase Database REST API instead. See "
33+
"github.com/firebase/firebase-ios-sdk/issues/10195 "
34+
"for more details.")))
3035
@interface FIRDatabase : NSObject
3136

3237
/**

0 commit comments

Comments
 (0)