Skip to content

Commit

Permalink
let the library declare and export its own permissions
Browse files Browse the repository at this point in the history
fix #50
  • Loading branch information
larsgrefer committed Jan 5, 2016
1 parent 28ffb0f commit da8a0f5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,12 @@ Configuring Your AndroidManifest
</application>
```

- Enable the `INTERNET`, `ACCESS_NETWORK_STATE` and `GET_TASKS` permissions:
- Optional: Enable the `ACCESS_NETWORK_STATE` and `GET_TASKS` permissions:

```xml
<!-- Required: Used to deliver Bugsnag crash reports -->
<uses-permission android:name="android.permission.INTERNET"/>
<!-- Optional: To provide network connectivity information to Bugsnag -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

<!-- Optional: To see which Activity was active at the time of a crash -->
<uses-permission android:name="android.permission.GET_TASKS"/>
```
Expand Down
1 change: 0 additions & 1 deletion example/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
<meta-data android:name="com.bugsnag.android.API_KEY" android:value="066f5ad3590596f9aa8d601ea89af845"/>
</application>

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.GET_TASKS" />
</manifest>
5 changes: 4 additions & 1 deletion src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.bugsnag.android"
android:versionCode="1"
android:versionName="1.0" >
android:versionName="1.0">

<!-- Required: Used to deliver Bugsnag crash reports -->
<uses-permission android:name="android.permission.INTERNET" />

</manifest>

0 comments on commit da8a0f5

Please sign in to comment.