You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/contributing.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,8 +19,8 @@ There are many ways to contribute to React Native, and many of them do not invol
19
19
* Read through the [React Native docs](http://facebook.github.io/react-native/). If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
20
20
* Browse [Stack Overflow](https://stackoverflow.com/questions/tagged/react-native) and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
21
21
* Take a look at the [features requested](https://react-native.canny.io/feature-requests) by others in the community and consider opening a pull request if you see something you want to work on.
22
-
* Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
23
-
* For information on how to build the React Native project locally with your changes, make sure to read through the [Building React Native from source guide](https://facebook.github.io/react-native/docs/building-from-source.html).
22
+
* Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
23
+
* For information on how to build the React Native project locally with your changes, make sure to read through the [Building React Native from source guide](https://facebook.github.io/react-native/docs/building-from-source.html).
24
24
* Check out the [Testing your changes guide](https://facebook.github.io/react-native/docs/testing.html) to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.
25
25
26
26
Contributions are very welcome. If you think you need help planning your contribution, please hop into [#react-native](https://discord.gg/0ZcbPKXt5bZjGY5n) and let people know you're looking for a mentor.
Copy file name to clipboardExpand all lines: docs/removing-default-permissions.md
+50-50Lines changed: 50 additions & 50 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,63 +7,63 @@ By default, some permissions are added to your Android APK.
7
7
8
8
The default permissions that get added are:
9
9
10
-
* android.permission.INTERNET - Required for debug mode.
11
-
* android.permission.SYSTEM_ALERT_WINDOW - Required for debug mode.
12
-
* android.permission.READ_PHONE_STATE - Not required for debug or production.
13
-
* android.permission.WRITE_EXTERNAL_STORAGE - Not required for debug or production.
14
-
* android.permission.READ_EXTERNAL_STORAGE - Not required for debug or production.
10
+
* android.permission.INTERNET - Required for debug mode.
11
+
* android.permission.SYSTEM_ALERT_WINDOW - Required for debug mode.
12
+
* android.permission.READ_PHONE_STATE - Not required for debug or production.
13
+
* android.permission.WRITE_EXTERNAL_STORAGE - Not required for debug or production.
14
+
* android.permission.READ_EXTERNAL_STORAGE - Not required for debug or production.
15
15
16
16
1. Let's start by removing `READ_PHONE_STATE`, `WRITE_EXTERNAL_STORAGE`, and `READ_EXTERNAL_STORAGE` from both production and debug APKs, as it is not required in either. These storage permissions are still not needed if `AsyncStorage` module is in use, so it is safe to remove from both production and debug.
17
17
2. Open your `android/app/src/main/AndroidManifest.xml` file.
18
18
3. Even though these three permissions are not listed in the manifest they get added in. We add the three permissions with `tools:node="remove"` attribute, to make sure it gets removed during build. Note that the package identifier will be different, for below it is "com.myapp" because the project was created with `react-native init myapp`.
That's it. We did not remove the `INTERNET` permission as pretty much all apps use it. Now whenever you create a production APK all these 4 permissions will be removed. When you create a debug APK (`react-native run-android`) it will install the APK with only the three permissions removed, and `SYSTEM_ALERT_WINDOW` will remain.
0 commit comments