From deb6b380b251564163939fbf04cf62e07c9820bb Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Tue, 18 Apr 2023 02:35:19 -0700 Subject: [PATCH] Remove deprecated POST_NOTIFICATION from `PermissionsAndroid` (#36936) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/36936 I'm removing `POST_NOTIFICATION` as that's a typo as it should be `POST_NOTIFICATIONS` We had both in version 0.71 so we can remove the wrong one as it's misleading for users. Changelog: [Android] [Removed] - Remove deprecated POST_NOTIFICATION from `PermissionsAndroid` Reviewed By: sshic Differential Revision: D45054310 fbshipit-source-id: be733811a1ee8e7c9d6e4986c0303eed7c07c35b --- .../Libraries/PermissionsAndroid/PermissionsAndroid.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/react-native/Libraries/PermissionsAndroid/PermissionsAndroid.js b/packages/react-native/Libraries/PermissionsAndroid/PermissionsAndroid.js index 094b3ccf901..e975ba49d55 100644 --- a/packages/react-native/Libraries/PermissionsAndroid/PermissionsAndroid.js +++ b/packages/react-native/Libraries/PermissionsAndroid/PermissionsAndroid.js @@ -75,7 +75,6 @@ const PERMISSIONS = Object.freeze({ ANSWER_PHONE_CALLS: 'android.permission.ANSWER_PHONE_CALLS', READ_PHONE_NUMBERS: 'android.permission.READ_PHONE_NUMBERS', UWB_RANGING: 'android.permission.UWB_RANGING', - POST_NOTIFICATION: 'android.permission.POST_NOTIFICATIONS', // Remove in 0.72 POST_NOTIFICATIONS: 'android.permission.POST_NOTIFICATIONS', NEARBY_WIFI_DEVICES: 'android.permission.NEARBY_WIFI_DEVICES', }); @@ -107,7 +106,6 @@ class PermissionsAndroid { CAMERA: string, GET_ACCOUNTS: string, NEARBY_WIFI_DEVICES: string, - POST_NOTIFICATION: string, // Remove in 0.72 POST_NOTIFICATIONS: string, PROCESS_OUTGOING_CALLS: string, READ_CALENDAR: string,