Skip to content

Commit 245d4ec

Browse files
committed
Rename providesAppNotificationSettings -> providesAppSettings
1 parent 24f2284 commit 245d4ec

File tree

9 files changed

+2521
-2539
lines changed

9 files changed

+2521
-2539
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ type NotificationSettings = {
756756
provisional?: boolean;
757757
lockScreen?: boolean;
758758
notificationCenter?: boolean;
759-
providesAppNotificationSettings?: boolean;
759+
providesAppSettings?: boolean;
760760
};
761761

762762
function checkNotifications(): Promise<{
@@ -784,7 +784,14 @@ You cannot request notifications permissions on Android. `requestNotifications`
784784

785785
```ts
786786
// only used on iOS
787-
type NotificationOption = 'alert' | 'badge' | 'sound' | 'criticalAlert' | 'carPlay' | 'provisional' | 'providesAppNotificationSettings';
787+
type NotificationOption =
788+
| 'alert'
789+
| 'badge'
790+
| 'sound'
791+
| 'criticalAlert'
792+
| 'carPlay'
793+
| 'provisional'
794+
| 'providesAppSettings';
788795

789796
type NotificationSettings = {
790797
// properties only available on iOS
@@ -797,7 +804,7 @@ type NotificationSettings = {
797804
provisional?: boolean;
798805
lockScreen?: boolean;
799806
notificationCenter?: boolean;
800-
providesAppNotificationSettings?: boolean;
807+
providesAppSettings?: boolean;
801808
};
802809

803810
function requestNotifications(options: NotificationOption[]): Promise<{

example/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export const App = () => {
130130

131131
<TouchableRipple
132132
onPress={() => {
133-
RNPermissions.requestNotifications(['alert', 'badge', 'sound', 'providesAppNotificationSettings'])
133+
RNPermissions.requestNotifications(['alert', 'badge', 'sound', 'providesAppSettings'])
134134
.then(check)
135135
.catch((error) => console.error(error));
136136
}}
@@ -156,7 +156,7 @@ export const App = () => {
156156
{`provisional: ${notifications.settings.provisional}\n`}
157157
{`lockScreen: ${notifications.settings.lockScreen}\n`}
158158
{`notificationCenter: ${notifications.settings.notificationCenter}\n`}
159-
{`providesAppNotificationSettings: ${notifications.settings.providesAppNotificationSettings}\n`}
159+
{`providesAppSettings: ${notifications.settings.providesAppSettings}\n`}
160160
</Text>
161161
)}
162162
</>

example/ios/Podfile.lock

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -11,41 +11,41 @@ PODS:
1111
- ReactCommon/turbomodule/core (= 0.66.4)
1212
- fmt (6.2.1)
1313
- glog (0.3.5)
14-
- Permission-AppTrackingTransparency (3.2.0):
14+
- Permission-AppTrackingTransparency (3.3.0):
1515
- RNPermissions
16-
- Permission-BluetoothPeripheral (3.2.0):
16+
- Permission-BluetoothPeripheral (3.3.0):
1717
- RNPermissions
18-
- Permission-Calendars (3.2.0):
18+
- Permission-Calendars (3.3.0):
1919
- RNPermissions
20-
- Permission-Camera (3.2.0):
20+
- Permission-Camera (3.3.0):
2121
- RNPermissions
22-
- Permission-Contacts (3.2.0):
22+
- Permission-Contacts (3.3.0):
2323
- RNPermissions
24-
- Permission-FaceID (3.2.0):
24+
- Permission-FaceID (3.3.0):
2525
- RNPermissions
26-
- Permission-LocationAccuracy (3.2.0):
26+
- Permission-LocationAccuracy (3.3.0):
2727
- RNPermissions
28-
- Permission-LocationAlways (3.2.0):
28+
- Permission-LocationAlways (3.3.0):
2929
- RNPermissions
30-
- Permission-LocationWhenInUse (3.2.0):
30+
- Permission-LocationWhenInUse (3.3.0):
3131
- RNPermissions
32-
- Permission-MediaLibrary (3.2.0):
32+
- Permission-MediaLibrary (3.3.0):
3333
- RNPermissions
34-
- Permission-Microphone (3.2.0):
34+
- Permission-Microphone (3.3.0):
3535
- RNPermissions
36-
- Permission-Motion (3.2.0):
36+
- Permission-Motion (3.3.0):
3737
- RNPermissions
38-
- Permission-Notifications (3.2.0):
38+
- Permission-Notifications (3.3.0):
3939
- RNPermissions
40-
- Permission-PhotoLibrary (3.2.0):
40+
- Permission-PhotoLibrary (3.3.0):
4141
- RNPermissions
42-
- Permission-PhotoLibraryAddOnly (3.2.0):
42+
- Permission-PhotoLibraryAddOnly (3.3.0):
4343
- RNPermissions
44-
- Permission-Reminders (3.2.0):
44+
- Permission-Reminders (3.3.0):
4545
- RNPermissions
46-
- Permission-SpeechRecognition (3.2.0):
46+
- Permission-SpeechRecognition (3.3.0):
4747
- RNPermissions
48-
- Permission-StoreKit (3.2.0):
48+
- Permission-StoreKit (3.3.0):
4949
- RNPermissions
5050
- RCT-Folly (2021.06.28.00-v2):
5151
- boost
@@ -310,7 +310,7 @@ PODS:
310310
- React-jsi (= 0.66.4)
311311
- React-logger (= 0.66.4)
312312
- React-perflogger (= 0.66.4)
313-
- RNPermissions (3.2.0):
313+
- RNPermissions (3.3.0):
314314
- React-Core
315315
- RNVectorIcons (8.1.0):
316316
- React-Core
@@ -483,24 +483,24 @@ SPEC CHECKSUMS:
483483
FBReactNativeSpec: fe08c1cd7e2e205718d77ad14b34957cce949b58
484484
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
485485
glog: 5337263514dd6f09803962437687240c5dc39aa4
486-
Permission-AppTrackingTransparency: 95c9308dd40819fa9f6830751d0ef3ea11498723
487-
Permission-BluetoothPeripheral: dd2663f81d622c9d153a2aacd7e3de0d59f7b4b6
488-
Permission-Calendars: b2c5f5e0b53403d195f9ac78114731682a9a0e91
489-
Permission-Camera: 53efcbb755b0e8bdf253dbb27cc7559ccfce8480
490-
Permission-Contacts: 3919ddcaa62d6dc4320d41a27883b6f734a76fa4
491-
Permission-FaceID: e3d306dc6284b8985beb608b033817900388cbb8
492-
Permission-LocationAccuracy: c13bf629b614be250031458cf81d6a2e9dcdf64f
493-
Permission-LocationAlways: 012fd2c1f610068c5f9a7b48bc908ea41edd0c43
494-
Permission-LocationWhenInUse: 13de9a01e006cb53a6ac3c9f8d1ab6cc98318d9c
495-
Permission-MediaLibrary: d35adbe2a069f2e16121fd79cf15959e86a3f74a
496-
Permission-Microphone: db557c64f7e9ad41bff6b3f6d93df3b67311855b
497-
Permission-Motion: 4a699388cd4fd57db51eb4e0a34d6e66a0268f61
498-
Permission-Notifications: bb420c3d28328df24de1b476b41ed8249ccf2537
499-
Permission-PhotoLibrary: 7bec836dcdd04a0bfb200c314f1aae06d4476357
500-
Permission-PhotoLibraryAddOnly: 06fb0cdb1d35683b235ad8c464ef0ecc88859ea3
501-
Permission-Reminders: 3c2d5d1e9c4b9fe90f937a23cbec9d8cf5ba52fd
502-
Permission-SpeechRecognition: bfb038564b6f3a6e5dcf8d848171c32ae09d949c
503-
Permission-StoreKit: ee68e7b70e9c44c2b16c6add64ddc58bd54c81c6
486+
Permission-AppTrackingTransparency: c669dda9631d6cb5e3ce8b4764d68097ffb360d2
487+
Permission-BluetoothPeripheral: ee2c235581da52db647b2f383cbcdc037ca72326
488+
Permission-Calendars: 54cd96108f1734496d7dbfb6ac26d56e920e930e
489+
Permission-Camera: 597646618d1edcc055a3f660844c2ee6de8e0596
490+
Permission-Contacts: 8ceb322105c234fd41cbe5f4329bbf9ebcb7df21
491+
Permission-FaceID: 000e0070e445d69da5860494c4323619493f15a5
492+
Permission-LocationAccuracy: 2dd707dcda613cd1f997ba3430d8451bbf628b59
493+
Permission-LocationAlways: dc302c06bead91cc4e0076c21393d0b8573caa6a
494+
Permission-LocationWhenInUse: 9be81f411058a40ef6616825062fc74cec660cc9
495+
Permission-MediaLibrary: 4acaae8adc5986d9d110f75315108a1acd74e5dd
496+
Permission-Microphone: 964f87c350f8bc7aa163700a9736dd33c028817a
497+
Permission-Motion: 637b9e51ee19b10039e9fd9e6cb299d33f9005c9
498+
Permission-Notifications: ae00347c7a9efdfaa1a0138e59e37c8f0f3ede0b
499+
Permission-PhotoLibrary: 33911b5522ee5978fcabe25d604756135325d067
500+
Permission-PhotoLibraryAddOnly: 4d5e8e4b193221641dedcc9d640375f9429e87b0
501+
Permission-Reminders: d3a829967ddeb506980690aac637525d23c8c0f1
502+
Permission-SpeechRecognition: d5ce2da7f10585790e63ccb2353aa701c94088ce
503+
Permission-StoreKit: 6ee6cc240d4f07dd7c99070f66c146521f8fc9af
504504
RCT-Folly: a21c126816d8025b547704b777a2ba552f3d9fa9
505505
RCTRequired: 4bf86c70714490bca4bf2696148638284622644b
506506
RCTTypeSafety: c475a7059eb77935fa53d2c17db299893f057d5d
@@ -525,7 +525,7 @@ SPEC CHECKSUMS:
525525
React-RCTVibration: e3ffca672dd3772536cb844274094b0e2c31b187
526526
React-runtimeexecutor: dec32ee6f2e2a26e13e58152271535fadff5455a
527527
ReactCommon: 57b69f6383eafcbd7da625bfa6003810332313c4
528-
RNPermissions: f7ebe52db07c00901127966ca080b4ec6a6ceb0a
528+
RNPermissions: bcd846e8f5a7f39e921cc7ca7172e2de0e698b6f
529529
RNVectorIcons: 31cebfcf94e8cf8686eb5303ae0357da64d7a5a4
530530
Yoga: e7dc4e71caba6472ff48ad7d234389b91dadc280
531531

example/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,25 @@
2626
"dependencies": {
2727
"react": "17.0.2",
2828
"react-native": "0.66.4",
29-
"react-native-paper": "4.11.0",
29+
"react-native-paper": "4.11.2",
3030
"react-native-permissions": "../",
3131
"react-native-vector-icons": "8.1.0",
3232
"react-native-windows": "^0.62.0-0"
3333
},
3434
"devDependencies": {
35-
"@babel/core": "7.16.0",
36-
"@babel/runtime": "7.16.3",
37-
"@types/jest": "27.0.3",
38-
"@types/react": "17.0.37",
39-
"@types/react-native": "0.66.8",
35+
"@babel/core": "7.17.5",
36+
"@babel/runtime": "7.17.2",
37+
"@types/jest": "27.4.1",
38+
"@types/react": "17.0.39",
39+
"@types/react-native": "0.66.16",
4040
"@types/react-test-renderer": "17.0.1",
41-
"appium": "1.22.1",
42-
"babel-jest": "27.4.4",
43-
"jest": "27.4.4",
41+
"appium": "1.22.2",
42+
"babel-jest": "27.5.1",
43+
"jest": "27.5.1",
4444
"metro-react-native-babel-preset": "0.66.2",
4545
"react-test-renderer": "17.0.2",
4646
"selenium-appium": "1.0.2",
47-
"selenium-webdriver": "4.1.0",
48-
"typescript": "4.5.3"
47+
"selenium-webdriver": "4.1.1",
48+
"typescript": "4.5.5"
4949
}
5050
}

0 commit comments

Comments
 (0)