-
-
Notifications
You must be signed in to change notification settings - Fork 468
Expand file tree
/
Copy pathAndroidManifest.xml
More file actions
275 lines (220 loc) · 10.4 KB
/
AndroidManifest.xml
File metadata and controls
275 lines (220 loc) · 10.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<!-- extra recommended permission, we'd be able to check network status-->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!-- add extra permission (optional) -->
<!-- Just some random permissions to showcase the permission context sent to Sentry -->
<uses-permission android:name="android.permission.CAMERA" />
<!-- Needed by leakcanary.NotificationEventListener -->
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_REMOTE_MESSAGING" />
<!-- if your minSdkVersion < 16, this would make usable on minSdkVersion >= 14-->
<uses-sdk tools:overrideLibrary="io.sentry.android" />
<uses-feature
android:name="android.hardware.camera"
android:required="false" />
<application
android:name=".MyApplication"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:networkSecurityConfig="@xml/network"
android:roundIcon="@mipmap/ic_launcher_round"
android:theme="@style/AppTheme"
tools:ignore="GoogleAppIndexingWarning, UnusedAttribute">
<service
android:name=".DummyService"
android:enabled="true"
android:exported="true"
android:foregroundServiceType="remoteMessaging" />
<activity
android:name=".MainActivity"
android:exported="true"
android:theme="@style/AppTheme.Main">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".SecondActivity"
android:exported="false" />
<activity
android:name=".ThirdActivityFragment"
android:exported="false" />
<activity
android:name=".GesturesActivity"
android:exported="false" />
<activity
android:name=".PermissionsActivity"
android:exported="false" />
<activity
android:name=".ProfilingActivity"
android:exported="false" />
<activity
android:name=".CustomTabsActivity"
android:exported="false" />
<activity
android:name=".compose.ComposeActivity"
android:exported="false" />
<activity
android:name=".FrameDataForSpansActivity"
android:exported="false" />
<activity
android:name=".CameraXActivity"
android:exported="false" />
<activity
android:name=".TriggerHttpRequestActivity"
android:exported="false" />
<!-- NOTE: Replace the test DSN below with YOUR OWN DSN to see the events from this app in your Sentry project/dashboard-->
<meta-data
android:name="io.sentry.dsn"
android:value="https://1053864c67cc410aa1ffc9701bd6f93d@o447951.ingest.us.sentry.io/5428559" />
<!-- how to enable Sentry's debug mode-->
<meta-data
android:name="io.sentry.debug"
android:value="${sentryDebug}" />
<!-- how to disable verbose logging of the session replay feature-->
<meta-data
android:name="io.sentry.session-replay.debug"
android:value="false" />
<!-- how to set a custom debug level-->
<!-- <meta-data android:name="io.sentry.debug.level" android:value="info" />-->
<!-- To change the time used to watch for ANR. By default it's 5 seconds (5000 below as it's in milliseconds)-->
<!-- <meta-data android:name="io.sentry.anr.timeout-interval-millis" android:value="5000" />-->
<!-- Raise ANR events even if the debugger is attached-->
<!-- <meta-data android:name="io.sentry.anr.report-debug" android:value="true" />-->
<!-- how to disable ANR-->
<!-- <meta-data android:name="io.sentry.anr.enable" android:value="false" />-->
<!-- how to disable the auto-init-->
<!-- <meta-data android:name="io.sentry.auto-init" android:value="false" />-->
<!-- how to disable the NDK-->
<!-- <meta-data android:name="io.sentry.ndk.enable" android:value="false" />-->
<!-- how to enable the NDK Scope Sync -->
<meta-data
android:name="io.sentry.ndk.scope-sync.enable"
android:value="true" />
<!-- how to set a custom release-->
<!-- <meta-data android:name="io.sentry.release" android:value="io.sentry.samples.android@1.1.0+2" />-->
<!-- how to disable automatic session tracking-->
<!-- <meta-data android:name="io.sentry.auto-session-tracking.enable" android:value="false" />-->
<!-- how to set an environment-->
<meta-data
android:name="io.sentry.environment"
android:value="${sentryEnvironment}" />
<!-- how to change the session tracking interval-->
<meta-data
android:name="io.sentry.session-tracking.timeout-interval-millis"
android:value="10000" />
<!-- how to enable the performance API by setting a sample-rate (0.0 to 1.0) -->
<!-- a sample-rate of 0.0 will disable the performance API -->
<meta-data
android:name="io.sentry.traces.sample-rate"
android:value="1.0" />
<!-- how to enable profiling when starting transactions -->
<!-- <meta-data android:name="io.sentry.traces.profiling.sample-rate" android:value="1.0" />-->
<!-- Enable profiling, adjust in production env -->
<meta-data
android:name="io.sentry.traces.profiling.session-sample-rate"
android:value="1.0" />
<!-- Set profiling lifecycle, can be `manual` or `trace` -->
<meta-data
android:name="io.sentry.traces.profiling.lifecycle"
android:value="manual" />
<!-- Enable profiling on app start -->
<meta-data
android:name="io.sentry.traces.profiling.start-on-app-start"
android:value="true" />
<!-- how to disable the Activity auto instrumentation for tracing-->
<!-- <meta-data android:name="io.sentry.traces.activity.enable" android:value="false" />-->
<!-- how to disable the Activity auto instrumentation automatically finished on onActivityPostPaused-->
<!-- <meta-data android:name="io.sentry.traces.activity.auto-finish.enable" android:value="false" />-->
<!-- how to enable the UI auto instrumentation for tracing -->
<meta-data
android:name="io.sentry.traces.user-interaction.enable"
android:value="true" />
<!-- how to enable the time-to-full-display tracing in Activity auto instrumentation -->
<meta-data
android:name="io.sentry.traces.time-to-full-display.enable"
android:value="true" />
<!-- how to enable and set a sampleRate (anything between 0.01 and 1.0), it's disabled by default-->
<!-- <meta-data android:name="io.sentry.sample-rate" android:value="0.5" />-->
<!-- how to disable default sentry uncaught exception-->
<!-- <meta-data android:name="io.sentry.uncaught-exception-handler.enable" android:value="false" />-->
<!-- how to disable the activity lifecycle breadcrumbs integration-->
<!-- <meta-data android:name="io.sentry.breadcrumbs.activity-lifecycle" android:value="false" />-->
<!-- how to disable the app lifecycle breadcrumbs integration-->
<!-- <meta-data android:name="io.sentry.breadcrumbs.app-lifecycle" android:value="false" />-->
<!-- how to disable the system events breadcrumbs integration-->
<!-- <meta-data android:name="io.sentry.breadcrumbs.system-events" android:value="false" />-->
<!-- how to disable the app components breadcrumbs integration-->
<!-- <meta-data android:name="io.sentry.breadcrumbs.app-components" android:value="false" />-->
<!-- how to enable the attach screenshot feature-->
<meta-data
android:name="io.sentry.attach-screenshot"
android:value="true" />
<!-- how many breadcrumbs will be stored-->
<meta-data
android:name="io.sentry.max-breadcrumbs"
android:value="100" />
<!-- how to enable the attach view hierarchy feature-->
<meta-data
android:name="io.sentry.attach-view-hierarchy"
android:value="true" />
<!-- how to enable the send default pii-->
<meta-data
android:name="io.sentry.send-default-pii"
android:value="true" />
<!-- how to disable sentry -->
<!-- <meta-data android:name="io.sentry.enabled" android:value="false" /> -->
<meta-data
android:name="io.sentry.performance-v2.enable"
android:value="true" />
<meta-data
android:name="io.sentry.session-replay.screenshot-strategy"
android:value="canvas" />
<meta-data
android:name="io.sentry.session-replay.session-sample-rate"
android:value="1" />
<meta-data
android:name="io.sentry.session-replay.mask-all-text"
android:value="true" />
<!-- Testing Network Details -->
<!-- Catpure network details for all urls -->
<meta-data
android:name="io.sentry.session-replay.network-detail-allow-urls"
android:value=".*" />
<!-- Exclude any url with the substring 'deny' -->
<meta-data
android:name="io.sentry.session-replay.network-detail-deny-urls"
android:value=".*deny.*" />
<!-- Disable network body capture for urls specified in .network-detail-allow-urls -->
<!-- <meta-data android:name="io.sentry.session-replay.network-capture-bodies" android:value="false" />-->
<!-- Some random headers to extract. See TriggerHttpRequestActivity to set these on a test http request -->
<meta-data
android:name="io.sentry.session-replay.network-request-headers"
android:value="Authorization,X-Custom-Header,X-Test-Request" />
<meta-data
android:name="io.sentry.session-replay.network-response-headers"
android:value="X-Response-Time,X-Cache-Status,X-Test-Response" />
<meta-data
android:name="io.sentry.spotlight.enable"
android:value="true" />
<meta-data
android:name="io.sentry.screenshot.mask-all-text"
android:value="true" />
<meta-data
android:name="io.sentry.screenshot.mask-all-images"
android:value="true" />
<meta-data
android:name="io.sentry.tombstone.enable"
android:value="true" />
<meta-data
android:name="io.sentry.anr.profiling.sample-rate"
android:value="1.0" />
<meta-data
android:name="io.sentry.anr.enable-fingerprinting"
android:value="true" />
</application>
</manifest>