Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added config plugin for expo cellular #13175

Merged
merged 2 commits into from Jun 7, 2021
Merged

Conversation

EvanBacon
Copy link
Contributor

Why

The permission wasn't documented so we missed this in the initial pass. https://exponent-internal.slack.com/archives/C1QNF5L3C/p1622937598025200
In the future we can remove this from the template and inform ppl to add the permission manually if they want to access it with PermissionsAndroid from RN.

@EvanBacon EvanBacon requested a review from ide as a code owner June 6, 2021 00:11
Copy link
Collaborator

@expo-bot expo-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review previously left here is no longer valid, jump to the latest one 👉 #13175 (review)

Copy link
Collaborator

@expo-bot expo-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi there! 👋 I'm a bot whose goal is to ensure your contributions meet our guidelines.

Looks like I have nothing to complain about 👏 Keep up the good work! 💪

Generated by ExpoBot 🤖 against e92f408

@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Jun 6, 2021
Comment on lines +26 to +31
This package requires the `android.permission.READ_PHONE_STATE` be added to your `AndroidManifest.xml`, this is used for `TelephonyManager` on Android. We **do not** require the more risky `READ_PRIVILEGED_PHONE_STATE` permission.

```xml
<!-- Added permissions -->
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be helpful to note which methods require this permission

Copy link
Contributor Author

@EvanBacon EvanBacon Jun 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't do that in all of the other modules though.

@EvanBacon EvanBacon merged commit 54206e8 into master Jun 7, 2021
@EvanBacon EvanBacon deleted the @evanbacon/cellular/add-plugin branch June 7, 2021 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: passed checks ExpoBot has nothing to complain about
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants