diff --git a/android/.gitignore b/android/.gitignore
index 63c86fe309..4230ebef04 100644
--- a/android/.gitignore
+++ b/android/.gitignore
@@ -94,3 +94,6 @@ capacitor-cordova-android-plugins
# Copied web assets
app/src/main/assets/public
+
+# Sentry Config File
+sentry.properties
diff --git a/android/app/build.gradle b/android/app/build.gradle
index fc5a8900b3..a9f152ed4b 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -1,3 +1,8 @@
+
+plugins {
+ id 'io.sentry.android.gradle' version '4.1.1'
+}
+
apply plugin: 'com.android.application'
android {
@@ -15,6 +20,7 @@ android {
// Default: https://android.googlesource.com/platform/frameworks/base/+/282e181b58cf72b6ca770dc7ca5f91f135444502/tools/aapt/AaptAssets.cpp#61
ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
}
+ manifestPlaceholders = [LOGSEQ_SENTRY_DSN: "$System.env.LOGSEQ_SENTRY_DSN"]
}
buildTypes {
release {
@@ -53,3 +59,13 @@ try {
} catch(Exception e) {
logger.warn("google-services.json not found, google-services plugin not applied. Push Notifications won't work")
}
+
+
+sentry {
+ org = "logseq"
+ projectName = "logseq"
+
+ // 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 = false
+}
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index dcd579035b..3b450542c8 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -60,5 +60,20 @@
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+