Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@
/.kotlin/
/.idea/AndroidProjectSystem.xml
/.vscode/
/.sisyphus/
/.sisyphus/
# Sentry Config File
sentry.properties
/opencode.json
12 changes: 12 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ plugins {
id 'org.jetbrains.kotlin.plugin.serialization'
// enable if needed
// id 'dev.reformator.stacktracedecoroutinator'

id 'io.sentry.android.gradle' version '6.1.0'
}

android {
Expand Down Expand Up @@ -226,3 +228,13 @@ dependencies {
androidTestImplementation libs.hilt.android.testing
kspAndroidTest libs.hilt.android.compiler
}


sentry {
org = "appfuton"
projectName = "android"

// this will upload your source code to Sentry to show it as part of the stack traces
// disable if you don't want to expose your sources
includeSourceContext = true
}
8 changes: 7 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1688,6 +1688,12 @@

</activity-alias>

</application>

<meta-data android:name="io.sentry.dsn" android:value="https://81af4c86ec2520fb31d575917d431fe6@o4510583318183936.ingest.de.sentry.io/4510583326507088"/>
<meta-data android:name="io.sentry.send-default-pii" android:value="false" />
<meta-data android:name="io.sentry.attach-view-hierarchy" android:value="true" />
<meta-data android:name="io.sentry.traces.sample-rate" android:value="0.2" />

</application>

</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ import io.github.landwarderer.futon.search.ui.suggestion.SearchSuggestionViewMod
import io.github.landwarderer.futon.search.ui.suggestion.adapter.SearchSuggestionAdapter
import javax.inject.Inject
import com.google.android.material.R as materialR
import io.sentry.Sentry

@AndroidEntryPoint
class MainActivity : BaseActivity<ActivityMainBinding>(), AppBarOwner, BottomNavOwner,
Expand Down