File tree 3 files changed +60
-0
lines changed
java/com/emergetools/hackernews 3 files changed +60
-0
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,8 @@ sentry {
126
126
projectName.set(" hackernews-android" )
127
127
128
128
ignoredVariants.set(listOf (" debug" , " fast" ))
129
+
130
+ autoInstallation.sentryVersion.set(" 8.12.0" )
129
131
}
130
132
131
133
dependencies {
Original file line number Diff line number Diff line change 31
31
android : name =" io.sentry.dsn"
32
32
android : value =" https://db2524adf3fee320562f372d15f98098@o497846.ingest.us.sentry.io/4506028523388928" />
33
33
34
+ <!-- add breadcrumbs for user interactions (clicks, swipes, scrolls) -->
35
+ <meta-data
36
+ android : name =" io.sentry.traces.user-interaction.enable"
37
+ android : value =" true"
38
+ />
39
+
40
+ <!-- attach screenshot on crash -->
41
+ <meta-data
42
+ android : name =" io.sentry.attach-screenshot"
43
+ android : value =" true"
44
+ />
45
+
46
+ <!-- attach view hierarchy on crash -->
47
+ <meta-data
48
+ android : name =" io.sentry.attach-view-hierarchy"
49
+ android : value =" true"
50
+ />
51
+
52
+ <!-- enable traces -->
53
+ <meta-data
54
+ android : name =" io.sentry.traces.sample-rate"
55
+ android : value =" 1.0"
56
+ />
57
+
58
+ <!-- Enable UI profiling -->
59
+ <meta-data
60
+ android : name =" io.sentry.traces.profiling.session-sample-rate"
61
+ android : value =" 1.0"
62
+ />
63
+ <meta-data
64
+ android : name =" io.sentry.traces.profiling.lifecycle"
65
+ android : value =" trace"
66
+ />
67
+ <!-- Enable profiling on app start. The app start profile will be stopped automatically when the app start root span finishes -->
68
+ <meta-data
69
+ android : name =" io.sentry.traces.profiling.start-on-app-start"
70
+ android : value =" true"
71
+ />
72
+
73
+ <!-- record session replays -->
74
+ <meta-data
75
+ android : name =" io.sentry.session-replay.on-error-sample-rate"
76
+ android : value =" 1.0"
77
+ />
78
+ <meta-data
79
+ android : name =" io.sentry.session-replay.session-sample-rate"
80
+ android : value =" 0.1"
81
+ />
82
+
83
+ <!-- enable logs -->
84
+ <meta-data
85
+ android : name =" io.sentry.logs.enabled"
86
+ android : value =" true"
87
+ />
88
+
34
89
<activity
35
90
android : name =" .MainActivity"
36
91
android : exported =" true"
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import com.emergetools.hackernews.data.remote.HackerNewsBaseClient
14
14
import com.emergetools.hackernews.data.remote.HackerNewsSearchClient
15
15
import com.emergetools.hackernews.data.remote.HackerNewsWebClient
16
16
import com.emergetools.reaper.Reaper
17
+ import io.sentry.Sentry
17
18
import kotlinx.serialization.json.Json
18
19
import okhttp3.OkHttpClient
19
20
import java.time.Duration
@@ -32,6 +33,8 @@ class HackerNewsApplication : Application() {
32
33
override fun onCreate () {
33
34
super .onCreate()
34
35
36
+ Sentry .logger().info(" HackerNewsApplication#onCreate" )
37
+
35
38
// This demonstrates manual initialization of Reaper.
36
39
// See https://docs.emergetools.com/docs/reaper-setup-android#manual-initialization
37
40
Reaper .init (applicationContext)
You can’t perform that action at this time.
0 commit comments