Browse Source

Set integer for each enum value

Mathieu Acthernoene 5 years ago
parent
commit
ed00c89c54
1 changed files with 15 additions and 15 deletions
  1. 15
    15
      ios/RNPermissions.h

+ 15
- 15
ios/RNPermissions.h View File

4
 typedef NS_ENUM(NSInteger, RNPermission) {
4
 typedef NS_ENUM(NSInteger, RNPermission) {
5
   RNPermissionUnknown = 0,
5
   RNPermissionUnknown = 0,
6
 #if __has_include("RNPermissionHandlerBluetoothPeripheral.h")
6
 #if __has_include("RNPermissionHandlerBluetoothPeripheral.h")
7
-  RNPermissionBluetoothPeripheral,
7
+  RNPermissionBluetoothPeripheral = 1,
8
 #endif
8
 #endif
9
 #if __has_include("RNPermissionHandlerCalendars.h")
9
 #if __has_include("RNPermissionHandlerCalendars.h")
10
-  RNPermissionCalendars,
10
+  RNPermissionCalendars = 2,
11
 #endif
11
 #endif
12
 #if __has_include("RNPermissionHandlerCamera.h")
12
 #if __has_include("RNPermissionHandlerCamera.h")
13
-  RNPermissionCamera,
13
+  RNPermissionCamera = 3,
14
 #endif
14
 #endif
15
 #if __has_include("RNPermissionHandlerContacts.h")
15
 #if __has_include("RNPermissionHandlerContacts.h")
16
-  RNPermissionContacts,
16
+  RNPermissionContacts = 4,
17
 #endif
17
 #endif
18
 #if __has_include("RNPermissionHandlerFaceID.h")
18
 #if __has_include("RNPermissionHandlerFaceID.h")
19
-  RNPermissionFaceID,
19
+  RNPermissionFaceID = 5,
20
 #endif
20
 #endif
21
 #if __has_include("RNPermissionHandlerLocationAlways.h")
21
 #if __has_include("RNPermissionHandlerLocationAlways.h")
22
-  RNPermissionLocationAlways,
22
+  RNPermissionLocationAlways = 6,
23
 #endif
23
 #endif
24
 #if __has_include("RNPermissionHandlerLocationWhenInUse.h")
24
 #if __has_include("RNPermissionHandlerLocationWhenInUse.h")
25
-  RNPermissionLocationWhenInUse,
25
+  RNPermissionLocationWhenInUse = 7,
26
 #endif
26
 #endif
27
 #if __has_include("RNPermissionHandlerMediaLibrary.h")
27
 #if __has_include("RNPermissionHandlerMediaLibrary.h")
28
-  RNPermissionMediaLibrary,
28
+  RNPermissionMediaLibrary = 8,
29
 #endif
29
 #endif
30
 #if __has_include("RNPermissionHandlerMicrophone.h")
30
 #if __has_include("RNPermissionHandlerMicrophone.h")
31
-  RNPermissionMicrophone,
31
+  RNPermissionMicrophone = 9,
32
 #endif
32
 #endif
33
 #if __has_include("RNPermissionHandlerMotion.h")
33
 #if __has_include("RNPermissionHandlerMotion.h")
34
-  RNPermissionMotion,
34
+  RNPermissionMotion = 10,
35
 #endif
35
 #endif
36
 #if __has_include("RNPermissionHandlerPhotoLibrary.h")
36
 #if __has_include("RNPermissionHandlerPhotoLibrary.h")
37
-  RNPermissionPhotoLibrary,
37
+  RNPermissionPhotoLibrary = 11,
38
 #endif
38
 #endif
39
 #if __has_include("RNPermissionHandlerReminders.h")
39
 #if __has_include("RNPermissionHandlerReminders.h")
40
-  RNPermissionReminders,
40
+  RNPermissionReminders = 12,
41
 #endif
41
 #endif
42
 #if __has_include("RNPermissionHandlerSiri.h")
42
 #if __has_include("RNPermissionHandlerSiri.h")
43
-  RNPermissionSiri,
43
+  RNPermissionSiri = 13,
44
 #endif
44
 #endif
45
 #if __has_include("RNPermissionHandlerSpeechRecognition.h")
45
 #if __has_include("RNPermissionHandlerSpeechRecognition.h")
46
-  RNPermissionSpeechRecognition,
46
+  RNPermissionSpeechRecognition = 14,
47
 #endif
47
 #endif
48
 #if __has_include("RNPermissionHandlerStoreKit.h")
48
 #if __has_include("RNPermissionHandlerStoreKit.h")
49
-  RNPermissionStoreKit,
49
+  RNPermissionStoreKit = 15,
50
 #endif
50
 #endif
51
 };
51
 };
52
 
52