Skip to content
This repository has been archived by the owner on May 20, 2022. It is now read-only.

Commit

Permalink
fix(android): add permissions in library so user doesn't have to
Browse files Browse the repository at this point in the history
You can delete the INTERNET and ACCESS_NETWORK_STATE permissions from your AndroiManifest.xml
  • Loading branch information
josmithua committed Aug 6, 2021
1 parent 2b99d73 commit 872f223
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 3 additions & 3 deletions android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.reactnativemsal">

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.reactnativemsal">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</manifest>
4 changes: 0 additions & 4 deletions example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example">

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />

<application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="false" android:theme="@style/AppTheme" android:usesCleartextTraffic="true">
<activity android:name=".MainActivity" android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" android:launchMode="singleTask" android:windowSoftInputMode="adjustResize" android:theme="@style/Theme.App.SplashScreen">
<intent-filter>
Expand Down

0 comments on commit 872f223

Please sign in to comment.