Skip to content

Commit 2f205b3

Browse files
authored
Revert sample AndroidManifest.xml
1 parent 7448805 commit 2f205b3

File tree

1 file changed

+136
-118
lines changed

1 file changed

+136
-118
lines changed

sentry-samples/sentry-samples-android/src/main/AndroidManifest.xml

Lines changed: 136 additions & 118 deletions
Original file line numberDiff line numberDiff line change
@@ -1,175 +1,193 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
xmlns:tools="http://schemas.android.com/tools">
3+
xmlns:tools="http://schemas.android.com/tools">
44

5-
<!-- extra recommended permission, we'd be able to check network status-->
6-
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
5+
<!-- extra recommended permission, we'd be able to check network status-->
6+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
77

8-
<!-- add extra permission (optional) -->
8+
<!-- add extra permission (optional) -->
99

10-
<!-- Just some random permissions to showcase the permission context sent to Sentry -->
11-
<uses-permission android:name="android.permission.CAMERA"/>
12-
<!-- Needed by leakcanary.NotificationEventListener -->
13-
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
10+
<!-- Just some random permissions to showcase the permission context sent to Sentry -->
11+
<uses-permission android:name="android.permission.CAMERA"/>
12+
<!-- Needed by leakcanary.NotificationEventListener -->
13+
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
1414

1515
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
1616
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_REMOTE_MESSAGING" />
1717

1818
<!-- if your minSdkVersion < 16, this would make usable on minSdkVersion >= 14-->
19-
<uses-sdk
20-
tools:overrideLibrary="io.sentry.android"/>
19+
<uses-sdk
20+
tools:overrideLibrary="io.sentry.android"/>
2121

2222
<uses-feature
2323
android:name="android.hardware.camera"
2424
android:required="false" />
2525

2626
<application
27-
android:name=".MyApplication"
28-
android:icon="@mipmap/ic_launcher"
29-
android:label="@string/app_name"
30-
android:roundIcon="@mipmap/ic_launcher_round"
31-
android:theme="@style/AppTheme"
32-
android:networkSecurityConfig="@xml/network"
33-
tools:ignore="GoogleAppIndexingWarning, UnusedAttribute">
34-
35-
<service
36-
android:name=".DummyService"
37-
android:exported="true"
38-
android:enabled="true"
39-
android:foregroundServiceType="remoteMessaging"/>
27+
android:name=".MyApplication"
28+
android:icon="@mipmap/ic_launcher"
29+
android:label="@string/app_name"
30+
android:roundIcon="@mipmap/ic_launcher_round"
31+
android:theme="@style/AppTheme"
32+
android:networkSecurityConfig="@xml/network"
33+
tools:ignore="GoogleAppIndexingWarning, UnusedAttribute">
34+
35+
<service
36+
android:name=".DummyService"
37+
android:exported="true"
38+
android:enabled="true"
39+
android:foregroundServiceType="remoteMessaging"/>
40+
41+
<activity
42+
android:name=".MainActivity"
43+
android:exported="true">
44+
<intent-filter>
45+
<action android:name="android.intent.action.MAIN" />
46+
47+
<category android:name="android.intent.category.LAUNCHER" />
48+
</intent-filter>
49+
</activity>
50+
51+
<activity
52+
android:name=".SecondActivity"
53+
android:exported="false" />
54+
55+
<activity
56+
android:name=".ThirdActivityFragment"
57+
android:exported="false" />
58+
59+
<activity
60+
android:name=".GesturesActivity"
61+
android:exported="false" />
62+
63+
<activity
64+
android:name=".PermissionsActivity"
65+
android:exported="false" />
66+
67+
<activity
68+
android:name=".ProfilingActivity"
69+
android:exported="false" />
70+
71+
<activity
72+
android:name=".CustomTabsActivity"
73+
android:exported="false" />
4074

4175
<activity
42-
android:name=".MainActivity"
43-
android:exported="true">
44-
<intent-filter>
45-
<action android:name="android.intent.action.MAIN" />
76+
android:name=".compose.ComposeActivity"
77+
android:exported="false" />
4678

47-
<category android:name="android.intent.category.LAUNCHER" />
48-
</intent-filter>
49-
</activity>
79+
<activity android:name=".FrameDataForSpansActivity"
80+
android:exported="false"/>
5081

51-
<activity
52-
android:name=".SecondActivity"
53-
android:exported="false" />
54-
55-
<activity
56-
android:name=".ThirdActivityFragment"
57-
android:exported="false" />
58-
59-
<activity
60-
android:name=".GesturesActivity"
61-
android:exported="false" />
62-
63-
<activity
64-
android:name=".PermissionsActivity"
65-
android:exported="false" />
82+
<activity
83+
android:name=".CameraXActivity"
84+
android:exported="false" />
6685

67-
<activity android:name=".TriggerHttpRequestActivity"
68-
android:exported="false"/>
86+
<activity android:name=".TriggerHttpRequestActivity"
87+
android:exported="false"/>
6988

70-
<!-- NOTE: Replace the test DSN below with YOUR OWN DSN to see the events from this app in your Sentry project/dashboard-->
71-
<meta-data android:name="io.sentry.dsn" android:value="https://1053864c67cc410aa1ffc9701bd6f93d@o447951.ingest.us.sentry.io/5428559" />
89+
<!-- NOTE: Replace the test DSN below with YOUR OWN DSN to see the events from this app in your Sentry project/dashboard-->
90+
<meta-data android:name="io.sentry.dsn" android:value="https://1053864c67cc410aa1ffc9701bd6f93d@o447951.ingest.us.sentry.io/5428559" />
7291

73-
<!-- NOTE: Replace the test DSN below with YOUR OWN DSN to see the events from this app in your Sentry project/dashboard-->
74-
<meta-data android:name="io.sentry.dsn" android:value="https://8a26495179336af214ba94bafed37efc@o447951.ingest.us.sentry.io/4509161790832641" />
92+
<!-- how to enable Sentry's debug mode-->
93+
<meta-data android:name="io.sentry.debug" android:value="${sentryDebug}" />
7594

76-
<!-- how to enable Sentry's debug mode-->
77-
<meta-data android:name="io.sentry.debug" android:value="${sentryDebug}" />
95+
<!-- how to disable verbose logging of the session replay feature-->
96+
<meta-data android:name="io.sentry.session-replay.debug" android:value="false" />
7897

79-
<!-- how to disable verbose logging of the session replay feature-->
80-
<meta-data android:name="io.sentry.session-replay.debug" android:value="false" />
98+
<!-- how to set a custom debug level-->
99+
<!-- <meta-data android:name="io.sentry.debug.level" android:value="info" />-->
81100

82-
<!-- how to set a custom debug level-->
83-
<!-- <meta-data android:name="io.sentry.debug.level" android:value="info" />-->
101+
<!-- To change the time used to watch for ANR. By default it's 5 seconds (5000 below as it's in milliseconds)-->
102+
<!-- <meta-data android:name="io.sentry.anr.timeout-interval-millis" android:value="5000" />-->
84103

85-
<!-- To change the time used to watch for ANR. By default it's 5 seconds (5000 below as it's in milliseconds)-->
86-
<!-- <meta-data android:name="io.sentry.anr.timeout-interval-millis" android:value="5000" />-->
104+
<!-- Raise ANR events even if the debugger is attached-->
105+
<!-- <meta-data android:name="io.sentry.anr.report-debug" android:value="true" />-->
87106

88-
<!-- Raise ANR events even if the debugger is attached-->
89-
<!-- <meta-data android:name="io.sentry.anr.report-debug" android:value="true" />-->
107+
<!-- how to disable ANR-->
108+
<!-- <meta-data android:name="io.sentry.anr.enable" android:value="false" />-->
90109

91-
<!-- how to disable ANR-->
92-
<!-- <meta-data android:name="io.sentry.anr.enable" android:value="false" />-->
110+
<!-- how to disable the auto-init-->
111+
<!-- <meta-data android:name="io.sentry.auto-init" android:value="false" />-->
93112

94-
<!-- how to disable the auto-init-->
95-
<!-- <meta-data android:name="io.sentry.auto-init" android:value="false" />-->
113+
<!-- how to disable the NDK-->
114+
<!-- <meta-data android:name="io.sentry.ndk.enable" android:value="false" />-->
96115

97-
<!-- how to disable the NDK-->
98-
<!-- <meta-data android:name="io.sentry.ndk.enable" android:value="false" />-->
116+
<!-- how to enable the NDK Scope Sync -->
117+
<meta-data android:name="io.sentry.ndk.scope-sync.enable" android:value="true" />
99118

100-
<!-- how to enable the NDK Scope Sync -->
101-
<meta-data android:name="io.sentry.ndk.scope-sync.enable" android:value="true" />
119+
<!-- how to set a custom release-->
120+
<!-- <meta-data android:name="io.sentry.release" android:value="io.sentry.samples.android@1.1.0+2" />-->
102121

103-
<!-- how to set a custom release-->
104-
<!-- <meta-data android:name="io.sentry.release" android:value="io.sentry.samples.android@1.1.0+2" />-->
122+
<!-- how to disable automatic session tracking-->
123+
<!-- <meta-data android:name="io.sentry.auto-session-tracking.enable" android:value="false" />-->
105124

106-
<!-- how to disable automatic session tracking-->
107-
<!-- <meta-data android:name="io.sentry.auto-session-tracking.enable" android:value="false" />-->
125+
<!-- how to set an environment-->
126+
<meta-data android:name="io.sentry.environment" android:value="${sentryEnvironment}" />
108127

109-
<!-- how to set an environment-->
110-
<meta-data android:name="io.sentry.environment" android:value="${sentryEnvironment}" />
128+
<!-- how to change the session tracking interval-->
129+
<meta-data android:name="io.sentry.session-tracking.timeout-interval-millis" android:value="10000" />
111130

112-
<!-- how to change the session tracking interval-->
113-
<meta-data android:name="io.sentry.session-tracking.timeout-interval-millis" android:value="10000" />
131+
<!-- how to enable the performance API by setting a sample-rate (0.0 to 1.0) -->
132+
<!-- a sample-rate of 0.0 will disable the performance API -->
133+
<meta-data android:name="io.sentry.traces.sample-rate" android:value="1.0" />
114134

115-
<!-- how to enable the performance API by setting a sample-rate (0.0 to 1.0) -->
116-
<!-- a sample-rate of 0.0 will disable the performance API -->
117-
<meta-data android:name="io.sentry.traces.sample-rate" android:value="1.0" />
135+
<!-- how to enable profiling when starting transactions -->
136+
<!-- <meta-data android:name="io.sentry.traces.profiling.sample-rate" android:value="1.0" />-->
118137

119-
<!-- how to enable profiling when starting transactions -->
120-
<!-- <meta-data android:name="io.sentry.traces.profiling.sample-rate" android:value="1.0" />-->
138+
<!-- Enable profiling, adjust in production env -->
139+
<meta-data android:name="io.sentry.traces.profiling.session-sample-rate" android:value="1.0" />
140+
<!-- Set profiling lifecycle, can be `manual` or `trace` -->
141+
<meta-data android:name="io.sentry.traces.profiling.lifecycle" android:value="manual" />
142+
<!-- Enable profiling on app start -->
143+
<meta-data android:name="io.sentry.traces.profiling.start-on-app-start" android:value="true" />
121144

122-
<!-- Enable profiling, adjust in production env -->
123-
<meta-data android:name="io.sentry.traces.profiling.session-sample-rate" android:value="0.0" />
124-
<!-- Set profiling lifecycle, can be `manual` or `trace` -->
125-
<meta-data android:name="io.sentry.traces.profiling.lifecycle" android:value="manual" />
126-
<!-- Enable profiling on app start -->
127-
<meta-data android:name="io.sentry.traces.profiling.start-on-app-start" android:value="false" />
145+
<!-- how to disable the Activity auto instrumentation for tracing-->
146+
<!-- <meta-data android:name="io.sentry.traces.activity.enable" android:value="false" />-->
128147

129-
<!-- how to disable the Activity auto instrumentation for tracing-->
130-
<!-- <meta-data android:name="io.sentry.traces.activity.enable" android:value="false" />-->
148+
<!-- how to disable the Activity auto instrumentation automatically finished on onActivityPostPaused-->
149+
<!-- <meta-data android:name="io.sentry.traces.activity.auto-finish.enable" android:value="false" />-->
131150

132-
<!-- how to disable the Activity auto instrumentation automatically finished on onActivityPostPaused-->
133-
<!-- <meta-data android:name="io.sentry.traces.activity.auto-finish.enable" android:value="false" />-->
151+
<!-- how to enable the UI auto instrumentation for tracing -->
152+
<meta-data android:name="io.sentry.traces.user-interaction.enable" android:value="true" />
134153

135-
<!-- how to enable the UI auto instrumentation for tracing -->
136-
<meta-data android:name="io.sentry.traces.user-interaction.enable" android:value="true" />
154+
<!-- how to enable the time-to-full-display tracing in Activity auto instrumentation -->
155+
<meta-data android:name="io.sentry.traces.time-to-full-display.enable" android:value="true" />
137156

138-
<!-- how to enable the time-to-full-display tracing in Activity auto instrumentation -->
139-
<meta-data android:name="io.sentry.traces.time-to-full-display.enable" android:value="true" />
157+
<!-- how to enable and set a sampleRate (anything between 0.01 and 1.0), it's disabled by default-->
158+
<!-- <meta-data android:name="io.sentry.sample-rate" android:value="0.5" />-->
140159

141-
<!-- how to enable and set a sampleRate (anything between 0.01 and 1.0), it's disabled by default-->
142-
<!-- <meta-data android:name="io.sentry.sample-rate" android:value="0.5" />-->
160+
<!-- how to disable default sentry uncaught exception-->
161+
<!-- <meta-data android:name="io.sentry.uncaught-exception-handler.enable" android:value="false" />-->
143162

144-
<!-- how to disable default sentry uncaught exception-->
145-
<!-- <meta-data android:name="io.sentry.uncaught-exception-handler.enable" android:value="false" />-->
163+
<!-- how to disable the activity lifecycle breadcrumbs integration-->
164+
<!-- <meta-data android:name="io.sentry.breadcrumbs.activity-lifecycle" android:value="false" />-->
146165

147-
<!-- how to disable the activity lifecycle breadcrumbs integration-->
148-
<!-- <meta-data android:name="io.sentry.breadcrumbs.activity-lifecycle" android:value="false" />-->
166+
<!-- how to disable the app lifecycle breadcrumbs integration-->
167+
<!-- <meta-data android:name="io.sentry.breadcrumbs.app-lifecycle" android:value="false" />-->
149168

150-
<!-- how to disable the app lifecycle breadcrumbs integration-->
151-
<!-- <meta-data android:name="io.sentry.breadcrumbs.app-lifecycle" android:value="false" />-->
169+
<!-- how to disable the system events breadcrumbs integration-->
170+
<!-- <meta-data android:name="io.sentry.breadcrumbs.system-events" android:value="false" />-->
152171

153-
<!-- how to disable the system events breadcrumbs integration-->
154-
<!-- <meta-data android:name="io.sentry.breadcrumbs.system-events" android:value="false" />-->
172+
<!-- how to disable the app components breadcrumbs integration-->
173+
<!-- <meta-data android:name="io.sentry.breadcrumbs.app-components" android:value="false" />-->
155174

156-
<!-- how to disable the app components breadcrumbs integration-->
157-
<!-- <meta-data android:name="io.sentry.breadcrumbs.app-components" android:value="false" />-->
175+
<!-- how to enable the attach screenshot feature-->
176+
<meta-data android:name="io.sentry.attach-screenshot" android:value="true" />
158177

159-
<!-- how to enable the attach screenshot feature-->
160-
<meta-data android:name="io.sentry.attach-screenshot" android:value="true" />
178+
<!-- how many breadcrumbs will be stored-->
179+
<meta-data android:name="io.sentry.max-breadcrumbs" android:value="100"/>
161180

162-
<!-- how many breadcrumbs will be stored-->
163-
<meta-data android:name="io.sentry.max-breadcrumbs" android:value="100"/>
181+
<!-- how to enable the attach view hierarchy feature-->
182+
<meta-data android:name="io.sentry.attach-view-hierarchy" android:value="true" />
164183

165-
<!-- how to enable the attach view hierarchy feature-->
166-
<meta-data android:name="io.sentry.attach-view-hierarchy" android:value="true" />
184+
<!-- how to enable the send default pii-->
185+
<meta-data android:name="io.sentry.send-default-pii" android:value="true" />
167186

168-
<!-- how to enable the send default pii-->
169-
<meta-data android:name="io.sentry.send-default-pii" android:value="true" />
187+
<!-- how to disable sentry -->
188+
<!-- <meta-data android:name="io.sentry.enabled" android:value="false" /> -->
170189

171-
<!-- how to disable sentry -->
172-
<!-- <meta-data android:name="io.sentry.enabled" android:value="false" /> -->
190+
<meta-data android:name="io.sentry.performance-v2.enable" android:value="true" />
173191

174192
<meta-data android:name="io.sentry.session-replay.screenshot-strategy" android:value="canvas" />
175193
<meta-data android:name="io.sentry.session-replay.session-sample-rate" android:value="1" />

0 commit comments

Comments
 (0)