react-native-macos/Libraries/PermissionsAndroid
David Angulo 910a750fbc Rename `POST_NOTIFICATION` to `POST_NOTIFICATIONS` (#35533)
Summary:
After adding `<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>` on my `AndroidManifest.xml`, I expected to use `PermissionsAndroid.PERMISSIONS.POST_NOTIFICATIONS` but `POST_NOTIFICATIONS` is `undefined` and is named `POST_NOTIFICATION` instead.

Every other Android permission is 1:1 in spelling except this one where it lacks `S`.

Not sure if this is a welcome change since this can be breaking. Or maybe we can include both with and without `S` to not be a breaking change. Or just keep it as is and close this PR.

## Changelog

<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->

[Android] [Changed] - Rename `POST_NOTIFICATION` to `POST_NOTIFICATIONS`

Pull Request resolved: https://github.com/facebook/react-native/pull/35533

Test Plan: `PermissionsAndroid.PERMISSIONS.POST_NOTIFICATIONS` should not be `undefined`.

Reviewed By: cortinico

Differential Revision: D41705866

Pulled By: philIip

fbshipit-source-id: a0328b174f0196421565f0cd2b2f1eb509428553
2022-12-09 12:56:07 -08:00
..
NativePermissionsAndroid.js RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
PermissionsAndroid.d.ts Place TypeScript Declarations Alongside Source Files 2022-09-26 12:09:45 -07:00
PermissionsAndroid.js Rename `POST_NOTIFICATION` to `POST_NOTIFICATIONS` (#35533) 2022-12-09 12:56:07 -08:00