|
58 | 58 | #if __has_include("RNPermissionHandlerLocationAccuracy.h") |
59 | 59 | #import "RNPermissionHandlerLocationAccuracy.h" |
60 | 60 | #endif |
| 61 | +#if __has_include("RNPermissionHandlerLocalNetworkPrivacy.h") |
| 62 | +#import "RNPermissionHandlerLocalNetworkPrivacy.h" |
| 63 | +#endif |
61 | 64 |
|
62 | 65 | static NSString* SETTING_KEY = @"@RNPermissions:Requested"; |
63 | 66 |
|
@@ -115,6 +118,9 @@ @implementation RCTConvert(RNPermission) |
115 | 118 | #if __has_include("RNPermissionHandlerPhotoLibraryAddOnly.h") |
116 | 119 | [RNPermissionHandlerPhotoLibraryAddOnly handlerUniqueId]: @(RNPermissionPhotoLibraryAddOnly), |
117 | 120 | #endif |
| 121 | +#if __has_include("RNPermissionHandlerLocalNetworkPrivacy.h") |
| 122 | + [RNPermissionHandlerLocalNetworkPrivacy handlerUniqueId]: @(RNPermissionLocalNetworkPrivacy), |
| 123 | +#endif |
118 | 124 | }), RNPermissionUnknown, integerValue); |
119 | 125 |
|
120 | 126 | @end |
@@ -197,6 +203,9 @@ - (NSDictionary *)constantsToExport { |
197 | 203 | #if __has_include("RNPermissionHandlerLocationAccuracy.h") |
198 | 204 | [available addObject:[RNPermissionHandlerLocationAccuracy handlerUniqueId]]; |
199 | 205 | #endif |
| 206 | +#if __has_include("RNPermissionHandlerLocalNetworkPrivacy.h") |
| 207 | + [available addObject:[RNPermissionHandlerLocalNetworkPrivacy handlerUniqueId]]; |
| 208 | +#endif |
200 | 209 |
|
201 | 210 | #if RCT_DEV |
202 | 211 | if ([available count] == 0) { |
@@ -313,6 +322,11 @@ - (void)checkUsageDescriptionKeys:(NSArray<NSString *> * _Nonnull)keys { |
313 | 322 | case RNPermissionPhotoLibraryAddOnly: |
314 | 323 | handler = [RNPermissionHandlerPhotoLibraryAddOnly new]; |
315 | 324 | break; |
| 325 | +#endif |
| 326 | +#if __has_include("RNPermissionHandlerLocalNetworkPrivacy.h") |
| 327 | + case RNPermissionLocalNetworkPrivacy: |
| 328 | + handler = [RNPermissionHandlerLocalNetworkPrivacy new]; |
| 329 | + break; |
316 | 330 | #endif |
317 | 331 | case RNPermissionUnknown: |
318 | 332 | break; // RCTConvert prevents this case |
|
0 commit comments