Skip to content

Commit ed00c89

Browse files
committed
Set integer for each enum value
1 parent 4d223b3 commit ed00c89

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

ios/RNPermissions.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,49 +4,49 @@
44
typedef NS_ENUM(NSInteger, RNPermission) {
55
RNPermissionUnknown = 0,
66
#if __has_include("RNPermissionHandlerBluetoothPeripheral.h")
7-
RNPermissionBluetoothPeripheral,
7+
RNPermissionBluetoothPeripheral = 1,
88
#endif
99
#if __has_include("RNPermissionHandlerCalendars.h")
10-
RNPermissionCalendars,
10+
RNPermissionCalendars = 2,
1111
#endif
1212
#if __has_include("RNPermissionHandlerCamera.h")
13-
RNPermissionCamera,
13+
RNPermissionCamera = 3,
1414
#endif
1515
#if __has_include("RNPermissionHandlerContacts.h")
16-
RNPermissionContacts,
16+
RNPermissionContacts = 4,
1717
#endif
1818
#if __has_include("RNPermissionHandlerFaceID.h")
19-
RNPermissionFaceID,
19+
RNPermissionFaceID = 5,
2020
#endif
2121
#if __has_include("RNPermissionHandlerLocationAlways.h")
22-
RNPermissionLocationAlways,
22+
RNPermissionLocationAlways = 6,
2323
#endif
2424
#if __has_include("RNPermissionHandlerLocationWhenInUse.h")
25-
RNPermissionLocationWhenInUse,
25+
RNPermissionLocationWhenInUse = 7,
2626
#endif
2727
#if __has_include("RNPermissionHandlerMediaLibrary.h")
28-
RNPermissionMediaLibrary,
28+
RNPermissionMediaLibrary = 8,
2929
#endif
3030
#if __has_include("RNPermissionHandlerMicrophone.h")
31-
RNPermissionMicrophone,
31+
RNPermissionMicrophone = 9,
3232
#endif
3333
#if __has_include("RNPermissionHandlerMotion.h")
34-
RNPermissionMotion,
34+
RNPermissionMotion = 10,
3535
#endif
3636
#if __has_include("RNPermissionHandlerPhotoLibrary.h")
37-
RNPermissionPhotoLibrary,
37+
RNPermissionPhotoLibrary = 11,
3838
#endif
3939
#if __has_include("RNPermissionHandlerReminders.h")
40-
RNPermissionReminders,
40+
RNPermissionReminders = 12,
4141
#endif
4242
#if __has_include("RNPermissionHandlerSiri.h")
43-
RNPermissionSiri,
43+
RNPermissionSiri = 13,
4444
#endif
4545
#if __has_include("RNPermissionHandlerSpeechRecognition.h")
46-
RNPermissionSpeechRecognition,
46+
RNPermissionSpeechRecognition = 14,
4747
#endif
4848
#if __has_include("RNPermissionHandlerStoreKit.h")
49-
RNPermissionStoreKit,
49+
RNPermissionStoreKit = 15,
5050
#endif
5151
};
5252

0 commit comments

Comments
 (0)