File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Private/Plugins/CDVWebViewEngine Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,11 @@ -(NSString *)getMimeType:(NSURL *)url
221
221
222
222
NSString *type;
223
223
[url getResourceValue: &type forKey: NSURLTypeIdentifierKey error: nil ];
224
+
225
+ #pragma clang diagnostic push
226
+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
224
227
return (__bridge_transfer NSString *)UTTypeCopyPreferredTagWithClass ((__bridge CFStringRef)type, kUTTagClassMIMEType );
228
+ #pragma clang diagnostic pop
225
229
}
226
230
227
231
- (nullable NSData *)readFromFileHandle : (NSFileHandle *)handle upTo : (NSUInteger )length error : (NSError **)err
Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
40
40
return YES ;
41
41
}
42
42
43
+ #pragma clang diagnostic push
44
+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
45
+ #pragma clang diagnostic ignored "-Wdeprecated-implementations"
43
46
// this happens while we are running ( in the background, or from within our own app )
44
47
// only valid if Info.plist specifies a protocol to handle
45
48
- (BOOL )application : (UIApplication *)app openURL : (NSURL *)url options : (NSDictionary <UIApplicationOpenURLOptionsKey, id> *)options
@@ -64,12 +67,10 @@ - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDiction
64
67
[openURLData setValue: options[UIApplicationOpenURLOptionsAnnotationKey] forKey: @" annotation" ];
65
68
}
66
69
67
- #pragma clang diagnostic push
68
- #pragma clang diagnostic ignored "-Wdeprecated-declarations"
69
70
[[NSNotificationCenter defaultCenter ] postNotification: [NSNotification notificationWithName: CDVPluginHandleOpenURLWithAppSourceAndAnnotationNotification object: openURLData]];
70
- #pragma clang diagnostic pop
71
71
72
72
return YES ;
73
73
}
74
+ #pragma clang diagnostic pop
74
75
75
76
@end
You can’t perform that action at this time.
0 commit comments