File tree Expand file tree Collapse file tree 4 files changed +16
-8
lines changed Expand file tree Collapse file tree 4 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -1256,7 +1256,8 @@ - (void)sendStats:(NSDictionary *)stats {
1256
1256
- (void )sendConnectStats {
1257
1257
NSMutableDictionary *stats = [NSMutableDictionary dictionary ];
1258
1258
1259
- #if TARGET_OS_IOS || TARGET_OS_TV
1259
+ #if TARGET_OS_IOS || TARGET_OS_TV || \
1260
+ (defined (TARGET_OS_VISION) && TARGET_OS_VISION)
1260
1261
if (self.config .persistenceEnabled ) {
1261
1262
stats[@" persistence.ios.enabled" ] = @1 ;
1262
1263
}
Original file line number Diff line number Diff line change 52
52
#import " FirebaseDatabase/Sources/Utilities/Tuples/FTupleTransaction.h"
53
53
#import < dlfcn.h>
54
54
55
- #if TARGET_OS_IOS || TARGET_OS_TV
55
+ #if TARGET_OS_IOS || TARGET_OS_TV || \
56
+ (defined(TARGET_OS_VISION) && TARGET_OS_VISION)
56
57
#import < UIKit/UIKit.h>
57
58
#endif
58
59
@@ -815,7 +816,8 @@ - (void)didEnterBackground {
815
816
816
817
// Targetted compilation is ONLY for testing. UIKit is weak-linked in actual
817
818
// release build.
818
- #if TARGET_OS_IOS || TARGET_OS_TV
819
+ #if TARGET_OS_IOS || TARGET_OS_TV || \
820
+ (defined (TARGET_OS_VISION) && TARGET_OS_VISION)
819
821
// The idea is to wait until any outstanding sets get written to disk. Since
820
822
// the sets might still be in our dispatch queue, we wait for the dispatch
821
823
// queue to catch up and for persistence to catch up. This may be
Original file line number Diff line number Diff line change @@ -275,7 +275,8 @@ - (void)close {
275
275
}
276
276
277
277
+ (NSString *)firebaseDir {
278
- #if TARGET_OS_IOS || TARGET_OS_WATCH
278
+ #if TARGET_OS_IOS || TARGET_OS_WATCH || \
279
+ (defined (TARGET_OS_VISION) && TARGET_OS_VISION)
279
280
NSArray *dirPaths = NSSearchPathForDirectoriesInDomains (
280
281
NSDocumentDirectory, NSUserDomainMask, YES );
281
282
NSString *documentsDir = [dirPaths objectAtIndex: 0 ];
Original file line number Diff line number Diff line change 26
26
#import " FirebaseDatabase/Sources/Realtime/FWebSocketConnection.h"
27
27
#import " FirebaseDatabase/Sources/Utilities/FStringUtilities.h"
28
28
29
- #if TARGET_OS_IOS || TARGET_OS_TV
29
+ #if TARGET_OS_IOS || TARGET_OS_TV || \
30
+ (defined(TARGET_OS_VISION) && TARGET_OS_VISION)
30
31
#import < UIKit/UIKit.h>
31
- #endif // TARGET_OS_IOS || TARGET_OS_TV
32
+ #endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) &&
33
+ // TARGET_OS_VISION)
32
34
33
35
#if TARGET_OS_WATCH
34
36
#import < Network/Network.h>
@@ -144,14 +146,16 @@ - (NSString *)userAgent {
144
146
145
147
// Targetted compilation is ONLY for testing. UIKit is weak-linked in actual
146
148
// release build.
147
- #if TARGET_OS_IOS || TARGET_OS_TV
149
+ #if TARGET_OS_IOS || TARGET_OS_TV || \
150
+ (defined (TARGET_OS_VISION) && TARGET_OS_VISION)
148
151
Class uiDeviceClass = NSClassFromString (@" UIDevice" );
149
152
if (uiDeviceClass) {
150
153
systemVersion = [uiDeviceClass currentDevice ].systemVersion ;
151
154
deviceName = [uiDeviceClass currentDevice ].model ;
152
155
hasUiDeviceClass = YES ;
153
156
}
154
- #endif // TARGET_OS_IOS || TARGET_OS_TV
157
+ #endif // TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) &&
158
+ // TARGET_OS_VISION)
155
159
156
160
if (!hasUiDeviceClass) {
157
161
NSDictionary *systemVersionDictionary = [NSDictionary
You can’t perform that action at this time.
0 commit comments