diff --git a/.gitignore b/.gitignore index 9bdd227c2..eee2dba42 100644 --- a/.gitignore +++ b/.gitignore @@ -29,4 +29,7 @@ /.kotlin/ /.idea/AndroidProjectSystem.xml /.vscode/ -/.sisyphus/ \ No newline at end of file +/.sisyphus/ +# Sentry Config File +sentry.properties +/opencode.json diff --git a/app/build.gradle b/app/build.gradle index 93eaaa151..773cd86c7 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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 { @@ -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 +} diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index a48b3c862..d2dcbbf30 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1688,6 +1688,12 @@ - + + + + + + + diff --git a/app/src/main/kotlin/io/github/landwarderer/futon/main/ui/MainActivity.kt b/app/src/main/kotlin/io/github/landwarderer/futon/main/ui/MainActivity.kt index 475b90923..5ceeab3fb 100644 --- a/app/src/main/kotlin/io/github/landwarderer/futon/main/ui/MainActivity.kt +++ b/app/src/main/kotlin/io/github/landwarderer/futon/main/ui/MainActivity.kt @@ -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(), AppBarOwner, BottomNavOwner,