|
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 | @implementation RCTConvert(RNPermission) |
63 | 66 |
|
@@ -113,6 +116,9 @@ @implementation RCTConvert(RNPermission) |
113 | 116 | #if __has_include("RNPermissionHandlerPhotoLibraryAddOnly.h") |
114 | 117 | [RNPermissionHandlerPhotoLibraryAddOnly handlerUniqueId]: @(RNPermissionPhotoLibraryAddOnly), |
115 | 118 | #endif |
| 119 | +#if __has_include("RNPermissionHandlerLocalNetworkPrivacy.h") |
| 120 | + [RNPermissionHandlerLocalNetworkPrivacy handlerUniqueId]: @(RNPermissionLocalNetworkPrivacy), |
| 121 | +#endif |
116 | 122 | }), RNPermissionUnknown, integerValue); |
117 | 123 |
|
118 | 124 | @end |
@@ -195,6 +201,9 @@ - (NSDictionary *)constantsToExport { |
195 | 201 | #if __has_include("RNPermissionHandlerLocationAccuracy.h") |
196 | 202 | [available addObject:[RNPermissionHandlerLocationAccuracy handlerUniqueId]]; |
197 | 203 | #endif |
| 204 | +#if __has_include("RNPermissionHandlerLocalNetworkPrivacy.h") |
| 205 | + [available addObject:[RNPermissionHandlerLocalNetworkPrivacy handlerUniqueId]]; |
| 206 | +#endif |
198 | 207 |
|
199 | 208 | #if RCT_DEV |
200 | 209 | if ([available count] == 0) { |
@@ -310,6 +319,11 @@ - (void)checkUsageDescriptionKeys:(NSArray<NSString *> * _Nonnull)keys { |
310 | 319 | case RNPermissionPhotoLibraryAddOnly: |
311 | 320 | handler = [RNPermissionHandlerPhotoLibraryAddOnly new]; |
312 | 321 | break; |
| 322 | +#endif |
| 323 | +#if __has_include("RNPermissionHandlerLocalNetworkPrivacy.h") |
| 324 | + case RNPermissionLocalNetworkPrivacy: |
| 325 | + handler = [RNPermissionHandlerLocalNetworkPrivacy new]; |
| 326 | + break; |
313 | 327 | #endif |
314 | 328 | case RNPermissionUnknown: |
315 | 329 | break; // RCTConvert prevents this case |
|
0 commit comments