feat: add Sentry error tracking and Expo Updates
This commit is contained in:
@@ -2,6 +2,7 @@ plugins {
|
||||
id("com.android.application")
|
||||
id("org.jetbrains.kotlin.android")
|
||||
id("org.jetbrains.kotlin.plugin.compose")
|
||||
id("io.sentry.android.gradle") version "6.17.0"
|
||||
}
|
||||
|
||||
android {
|
||||
@@ -14,6 +15,9 @@ android {
|
||||
targetSdk = 35
|
||||
versionCode = 1
|
||||
versionName = "1.0.0"
|
||||
|
||||
val sentryDsn = System.getenv("SENTRY_DSN") ?: ""
|
||||
manifestPlaceholders["sentryDsn"] = sentryDsn
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
@@ -68,4 +72,15 @@ dependencies {
|
||||
|
||||
// Gson for JSON
|
||||
implementation("com.google.code.gson:gson:2.11.0")
|
||||
|
||||
// Sentry
|
||||
implementation("io.sentry:sentry-android:8.52.0")
|
||||
}
|
||||
|
||||
sentry {
|
||||
uploadNativeSymbols = true
|
||||
includeNativeSources = true
|
||||
autoInstallation {
|
||||
enabled = false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,6 +18,22 @@
|
||||
android:supportsRtl="true"
|
||||
android:theme="@android:style/Theme.Material.Light.NoActionBar">
|
||||
|
||||
<meta-data
|
||||
android:name="io.sentry.dsn"
|
||||
android:value="${sentryDsn}" />
|
||||
|
||||
<meta-data
|
||||
android:name="io.sentry.traces.sample-rate"
|
||||
android:value="1.0" />
|
||||
|
||||
<meta-data
|
||||
android:name="io.sentry.logs.enabled"
|
||||
android:value="true" />
|
||||
|
||||
<meta-data
|
||||
android:name="io.sentry.attach-screenshot"
|
||||
android:value="true" />
|
||||
|
||||
<activity
|
||||
android:name=".SwimBuddyWearActivity"
|
||||
android:exported="true"
|
||||
|
||||
Reference in New Issue
Block a user