Skip to content

Commit 70d2610

Browse files
authored
Automatically disable io.sentry.auto-init (#93)
* Automatically disable io.sentry.auto-init * Remove unnecessary permissions * Add changelog
1 parent b79cc79 commit 70d2610

File tree

5 files changed

+16
-7
lines changed

5 files changed

+16
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### Features
6+
7+
- feat: automatically disable `io.sentry.auto-init` ([#93](https://github.com/getsentry/sentry-kotlin-multiplatform/pull/93))
8+
59
### Improvements
610

711
- ref: improve samples & add SPM docs ([#82](https://github.com/getsentry/sentry-kotlin-multiplatform/pull/82))
Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="io.sentry.kotlin.multiplatform">
4-
<uses-permission android:name="android.permission.INTERNET" />
5-
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
6-
\</manifest>
3+
xmlns:tools="http://schemas.android.com/tools"
4+
package="io.sentry.kotlin.multiplatform">
5+
6+
<application>
7+
<provider
8+
android:name="io.sentry.android.core.SentryInitProvider"
9+
android:authorities="${applicationId}.SentryInitProvider"
10+
android:exported="false"
11+
tools:node="remove"/>
12+
</application>
13+
14+
</manifest>

sentry-samples/kmp-app-cocoapods/androidApp/src/main/AndroidManifest.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
android:supportsRtl="true"
88
android:theme="@style/AppTheme"
99
android:name=".SentryApplication">
10-
<meta-data android:name="io.sentry.auto-init" android:value="false" />
1110
<activity
1211
android:name=".MainActivity"
1312
android:exported="true">

sentry-samples/kmp-app-mvvm-di/androidApp/src/main/AndroidManifest.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
android:supportsRtl="true"
1414
android:theme="@style/AppTheme"
1515
tools:ignore="DataExtractionRules">
16-
<meta-data android:name="io.sentry.auto-init" android:value="false" />
1716
<activity
1817
android:name="sentry.kmp.demo.android.MainActivity"
1918
android:exported="true">

sentry-samples/kmp-app-spm/androidApp/src/main/AndroidManifest.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
android:supportsRtl="true"
88
android:theme="@style/AppTheme"
99
android:name=".SentryApplication">
10-
<meta-data android:name="io.sentry.auto-init" android:value="false" />
1110
<activity
1211
android:name=".MainActivity"
1312
android:exported="true">

0 commit comments

Comments
 (0)