Skip to content

Commit

Permalink
Update react-native-permissions to 4.1.5 (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad-Elsayed authored Sep 30, 2024
2 parents 405a255 + 630fffb commit 3cfb241
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 13 deletions.
12 changes: 12 additions & 0 deletions packages/jsActions/mobile-resources-native/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,32 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

### Added

- We have upgraded React Native Permissions to 4.5.1

## [8.0.1] Native Mobile Resources - 2024-8-29

### Fixed

- We fixed an issue where the `RequestNotificationPermission` action incorrectly returned 'true' after the user previously selected 'Don't Allow' on iOS and Android.

## [2.2.1] Accordion

### Fixed

- Fixed a bug where the accordion state was not updating correctly when the "Collapsed" attribute was selected.

- Resolved an issue where the accordion's dynamic content was not updating its height after the initial render.

## [3.3.0] BottomSheet

### Added

- We have upgraded React Native Device Info to version 11.1.0.

## [1.1.0] Gallery

### Added

- We have upgraded React Native Device Info to version 11.1.0.
Expand All @@ -33,16 +41,19 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- We've resolved an issue where the loading indicator was triggered when pulling down the list, even in the absence of a pull-down event.

## [3.3.0] IntroScreen

### Added

- We have upgraded React Native Device Info to version 11.1.0.

## [3.1.0] ListViewSwipe

### Added

- We have upgraded React Native Gesture Handler to version 2.16.2.

## [5.0.1] Rating

### Changed

- We have updated the rating native widget to replace the use of AnimatableProps from the react-native-animatable library with AnimatableProperties.
Expand All @@ -52,6 +63,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- We made the widget compatible with React Native 0.73.8

## [5.0.1] VideoPlayer

### Fixed

- We have fixed an issue where the video player was not functioning on iOS devices.
Expand Down
2 changes: 1 addition & 1 deletion packages/jsActions/mobile-resources-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"react-native-image-picker": "5.0.1",
"react-native-inappbrowser-reborn": "3.4.0",
"react-native-localize": "1.4.2",
"react-native-permissions": "3.3.1",
"react-native-permissions": "4.1.5",
"react-native-push-notification": "8.1.1",
"react-native-schedule-exact-alarm-permission": "^0.1.3",
"react-native-sound": "0.11.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ async function checkScheduleAlarm(): Promise<"granted" | "blocked"> {
// END EXTRA CODE

/**
* @param {"NanoflowCommons.Enum_Permissions.APP_TRACKING_TRANSPARENCY_IOS"|"NanoflowCommons.Enum_Permissions.BLUETOOTH_PERIPHERAL_IOS"|"NanoflowCommons.Enum_Permissions.CAMERA_IOS"|"NanoflowCommons.Enum_Permissions.CALENDARS_IOS"|"NanoflowCommons.Enum_Permissions.CONTACTS_IOS"|"NanoflowCommons.Enum_Permissions.FACE_ID_IOS"|"NanoflowCommons.Enum_Permissions.LOCATION_ALWAYS_IOS"|"NanoflowCommons.Enum_Permissions.LOCATION_WHEN_IN_USE_IOS"|"NanoflowCommons.Enum_Permissions.MEDIA_LIBRARY_IOS"|"NanoflowCommons.Enum_Permissions.MICROPHONE_IOS"|"NanoflowCommons.Enum_Permissions.MOTION_IOS"|"NanoflowCommons.Enum_Permissions.PHOTO_LIBRARY_IOS"|"NanoflowCommons.Enum_Permissions.PHOTO_LIBRARY_ADD_ONLY_IOS"|"NanoflowCommons.Enum_Permissions.REMINDERS_IOS"|"NanoflowCommons.Enum_Permissions.SIRI_IOS"|"NanoflowCommons.Enum_Permissions.SPEECH_RECOGNITION_IOS"|"NanoflowCommons.Enum_Permissions.STOREKIT_IOS"|"NanoflowCommons.Enum_Permissions.ACCEPT_HANDOVER_ANDROID"|"NanoflowCommons.Enum_Permissions.ACCESS_BACKGROUND_LOCATION_ANDROID"|"NanoflowCommons.Enum_Permissions.ACCESS_COARSE_LOCATION_ANDROID"|"NanoflowCommons.Enum_Permissions.ACCESS_FINE_LOCATION_ANDROID"|"NanoflowCommons.Enum_Permissions.ACCESS_MEDIA_LOCATION_ANDROID"|"NanoflowCommons.Enum_Permissions.ACTIVITY_RECOGNITION_ANDROID"|"NanoflowCommons.Enum_Permissions.ADD_VOICEMAIL_ANDROID"|"NanoflowCommons.Enum_Permissions.ANSWER_PHONE_CALLS_ANDROID"|"NanoflowCommons.Enum_Permissions.BLUETOOTH_ADVERTISE_ANDROID"|"NanoflowCommons.Enum_Permissions.BLUETOOTH_CONNECT_ANDROID"|"NanoflowCommons.Enum_Permissions.BLUETOOTH_SCAN_ANDROID"|"NanoflowCommons.Enum_Permissions.BODY_SENSORS_ANDROID"|"NanoflowCommons.Enum_Permissions.CALL_PHONE_ANDROID"|"NanoflowCommons.Enum_Permissions.CAMERA_ANDROID"|"NanoflowCommons.Enum_Permissions.GET_ACCOUNTS_ANDROID"|"NanoflowCommons.Enum_Permissions.PROCESS_OUTGOING_CALLS_ANDROID"|"NanoflowCommons.Enum_Permissions.READ_CALENDAR_ANDROID"|"NanoflowCommons.Enum_Permissions.READ_CALL_LOG_ANDROID"|"NanoflowCommons.Enum_Permissions.READ_CONTACTS_ANDROID"|"NanoflowCommons.Enum_Permissions.READ_EXTERNAL_STORAGE_ANDROID"|"NanoflowCommons.Enum_Permissions.READ_PHONE_NUMBERS_ANDROID"|"NanoflowCommons.Enum_Permissions.READ_PHONE_STATE_ANDROID"|"NanoflowCommons.Enum_Permissions.READ_SMS_ANDROID"|"NanoflowCommons.Enum_Permissions.RECEIVE_MMS_ANDROID"|"NanoflowCommons.Enum_Permissions.RECEIVE_SMS_ANDROID"|"NanoflowCommons.Enum_Permissions.RECEIVE_WAP_PUSH_ANDROID"|"NanoflowCommons.Enum_Permissions.RECORD_AUDIO_ANDROID"|"NanoflowCommons.Enum_Permissions.SEND_SMS_ANDROID"|"NanoflowCommons.Enum_Permissions.USE_SIP_ANDROID"|"NanoflowCommons.Enum_Permissions.WRITE_CALENDAR_ANDROID"|"NanoflowCommons.Enum_Permissions.WRITE_CALL_LOG_ANDROID"|"NanoflowCommons.Enum_Permissions.WRITE_CONTACTS_ANDROID"|"NanoflowCommons.Enum_Permissions.WRITE_EXTERNAL_STORAGE_ANDROID"|"NanoflowCommons.Enum_Permissions.SCHEDULE_EXACT_ALARM_ANDROID"} permission - This field is required.
* @returns {Promise.<"NanoflowCommons.Enum_PermissionStatus.unavailable"|"NanoflowCommons.Enum_PermissionStatus.denied"|"NanoflowCommons.Enum_PermissionStatus.limited"|"NanoflowCommons.Enum_PermissionStatus.granted"|"NanoflowCommons.Enum_PermissionStatus.blocked">}
* @param {"NativeMobileResources.Enum_Permissions.APP_TRACKING_TRANSPARENCY_IOS"|"NativeMobileResources.Enum_Permissions.BLUETOOTH_IOS"|"NativeMobileResources.Enum_Permissions.CAMERA_IOS"|"NativeMobileResources.Enum_Permissions.CALENDARS_IOS"|"NativeMobileResources.Enum_Permissions.CALENDARS_WRITE_ONLY_IOS"|"NativeMobileResources.Enum_Permissions.CONTACTS_IOS"|"NativeMobileResources.Enum_Permissions.FACE_ID_IOS"|"NativeMobileResources.Enum_Permissions.LOCATION_ALWAYS_IOS"|"NativeMobileResources.Enum_Permissions.LOCATION_WHEN_IN_USE_IOS"|"NativeMobileResources.Enum_Permissions.MEDIA_LIBRARY_IOS"|"NativeMobileResources.Enum_Permissions.MICROPHONE_IOS"|"NativeMobileResources.Enum_Permissions.MOTION_IOS"|"NativeMobileResources.Enum_Permissions.PHOTO_LIBRARY_IOS"|"NativeMobileResources.Enum_Permissions.PHOTO_LIBRARY_ADD_ONLY_IOS"|"NativeMobileResources.Enum_Permissions.REMINDERS_IOS"|"NativeMobileResources.Enum_Permissions.SIRI_IOS"|"NativeMobileResources.Enum_Permissions.SPEECH_RECOGNITION_IOS"|"NativeMobileResources.Enum_Permissions.STOREKIT_IOS"|"NativeMobileResources.Enum_Permissions.ACCEPT_HANDOVER_ANDROID"|"NativeMobileResources.Enum_Permissions.ACCESS_BACKGROUND_LOCATION_ANDROID"|"NativeMobileResources.Enum_Permissions.ACCESS_COARSE_LOCATION_ANDROID"|"NativeMobileResources.Enum_Permissions.ACCESS_FINE_LOCATION_ANDROID"|"NativeMobileResources.Enum_Permissions.ACCESS_MEDIA_LOCATION_ANDROID"|"NativeMobileResources.Enum_Permissions.ACTIVITY_RECOGNITION_ANDROID"|"NativeMobileResources.Enum_Permissions.ADD_VOICEMAIL_ANDROID"|"NativeMobileResources.Enum_Permissions.ANSWER_PHONE_CALLS_ANDROID"|"NativeMobileResources.Enum_Permissions.BLUETOOTH_ADVERTISE_ANDROID"|"NativeMobileResources.Enum_Permissions.BLUETOOTH_CONNECT_ANDROID"|"NativeMobileResources.Enum_Permissions.BLUETOOTH_SCAN_ANDROID"|"NativeMobileResources.Enum_Permissions.BODY_SENSORS_ANDROID"|"NativeMobileResources.Enum_Permissions.CALL_PHONE_ANDROID"|"NativeMobileResources.Enum_Permissions.CAMERA_ANDROID"|"NativeMobileResources.Enum_Permissions.GET_ACCOUNTS_ANDROID"|"NativeMobileResources.Enum_Permissions.PROCESS_OUTGOING_CALLS_ANDROID"|"NativeMobileResources.Enum_Permissions.READ_CALENDAR_ANDROID"|"NativeMobileResources.Enum_Permissions.READ_CALL_LOG_ANDROID"|"NativeMobileResources.Enum_Permissions.READ_CONTACTS_ANDROID"|"NativeMobileResources.Enum_Permissions.READ_EXTERNAL_STORAGE_ANDROID"|"NativeMobileResources.Enum_Permissions.READ_PHONE_NUMBERS_ANDROID"|"NativeMobileResources.Enum_Permissions.READ_PHONE_STATE_ANDROID"|"NativeMobileResources.Enum_Permissions.READ_SMS_ANDROID"|"NativeMobileResources.Enum_Permissions.RECEIVE_MMS_ANDROID"|"NativeMobileResources.Enum_Permissions.RECEIVE_SMS_ANDROID"|"NativeMobileResources.Enum_Permissions.RECEIVE_WAP_PUSH_ANDROID"|"NativeMobileResources.Enum_Permissions.RECORD_AUDIO_ANDROID"|"NativeMobileResources.Enum_Permissions.SEND_SMS_ANDROID"|"NativeMobileResources.Enum_Permissions.USE_SIP_ANDROID"|"NativeMobileResources.Enum_Permissions.WRITE_CALENDAR_ANDROID"|"NativeMobileResources.Enum_Permissions.WRITE_CALL_LOG_ANDROID"|"NativeMobileResources.Enum_Permissions.WRITE_CONTACTS_ANDROID"|"NativeMobileResources.Enum_Permissions.WRITE_EXTERNAL_STORAGE_ANDROID"|"NativeMobileResources.Enum_Permissions.SCHEDULE_EXACT_ALARM_ANDROID"|"NativeMobileResources.Enum_Permissions.BODY_SENSORS_BACKGROUND_ANDROID"|"NativeMobileResources.Enum_Permissions.NEARBY_WIFI_DEVICES_ANDROID"|"NativeMobileResources.Enum_Permissions.READ_MEDIA_AUDIO_ANDROID"|"NativeMobileResources.Enum_Permissions.READ_MEDIA_IMAGES_ANDROID"|"NativeMobileResources.Enum_Permissions.READ_MEDIA_VIDEO_ANDROID"|"NativeMobileResources.Enum_Permissions.READ_MEDIA_VISUAL_USER_SELECTED_ANDROID"} permission - This field is required.
* @returns {Promise.<"NativeMobileResources.Enum_PermissionStatus.unavailable"|"NativeMobileResources.Enum_PermissionStatus.denied"|"NativeMobileResources.Enum_PermissionStatus.limited"|"NativeMobileResources.Enum_PermissionStatus.granted"|"NativeMobileResources.Enum_PermissionStatus.blocked">}
*/
export async function RequestGenericPermission(
permission?: string
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export type IOSPermissionName =
| "APP_TRACKING_TRANSPARENCY"
| "BLUETOOTH_PERIPHERAL"
| "BLUETOOTH"
| "CALENDARS"
| "CAMERA"
| "CONTACTS"
Expand All @@ -15,6 +15,7 @@ export type IOSPermissionName =
| "REMINDERS"
| "SIRI"
| "SPEECH_RECOGNITION"
| "CALENDARS_WRITE_ONLY"
| "STOREKIT";

export type ANDROIDPermissionName =
Expand Down Expand Up @@ -51,4 +52,10 @@ export type ANDROIDPermissionName =
| "WRITE_CALL_LOG"
| "WRITE_CONTACTS"
| "WRITE_EXTERNAL_STORAGE"
| "SCHEDULE_EXACT_ALARM";
| "SCHEDULE_EXACT_ALARM"
| "BODY_SENSORS_BACKGROUND"
| "NEARBY_WIFI_DEVICES"
| "READ_MEDIA_AUDIO"
| "READ_MEDIA_IMAGES"
| "READ_MEDIA_VIDEO"
| "READ_MEDIA_VISUAL_USER_SELECTED";
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13129,7 +13129,7 @@ __metadata:
react-native-image-picker: "npm:5.0.1"
react-native-inappbrowser-reborn: "npm:3.4.0"
react-native-localize: "npm:1.4.2"
react-native-permissions: "npm:3.3.1"
react-native-permissions: "npm:4.1.5"
react-native-push-notification: "npm:8.1.1"
react-native-schedule-exact-alarm-permission: "npm:^0.1.3"
react-native-sound: "npm:0.11.0"
Expand Down Expand Up @@ -15378,17 +15378,17 @@ __metadata:
languageName: node
linkType: hard

"react-native-permissions@npm:3.3.1":
version: 3.3.1
resolution: "react-native-permissions@npm:3.3.1"
"react-native-permissions@npm:4.1.5":
version: 4.1.5
resolution: "react-native-permissions@npm:4.1.5"
peerDependencies:
react: ">=16.13.1"
react-native: ">=0.63.3"
react-native-windows: ">=0.62.0"
react: ">=18.1.0"
react-native: ">=0.70.0"
react-native-windows: ">=0.70.0"
peerDependenciesMeta:
react-native-windows:
optional: true
checksum: 10/5ded313f2bc999f14b395220ddb3066ef85d02dd600ac4d730ba5ce3d8ef91f1df563184a4742c5ff0459e1d5b51040cff86e4893ac7e6ea88cdf8b2d92e5ad9
checksum: 10/2b1eaa879e4b0c3455488c3dfa1d8b203bdbf2cd550b8ee5691d26e03c086d33f9bc495a70f8e1e85d0c16131374e11d12f7927168179e339f158eea9fb04830
languageName: node
linkType: hard

Expand Down

0 comments on commit 3cfb241

Please sign in to comment.