From 2844d8e340866bbe05d403fccf5d39acd4fd0a9c Mon Sep 17 00:00:00 2001 From: Infi Date: Sun, 23 Apr 2023 20:08:20 +0200 Subject: [PATCH] feat: build config for sentry mapping upload Signed-off-by: Infi --- app/build.gradle | 4 ++++ revoltbuild.properties.example | 1 + 2 files changed, 5 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index cbd33524..29e1adf5 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -101,6 +101,10 @@ android { namespace 'chat.revolt' } +sentry { + autoUploadProguardMapping = property('revoltbuild.properties', 'sentry.upload_mappings', 'RVX_SENTRY_UPLOAD_MAPPINGS') == 'true' +} + dependencies { // Android/Kotlin Core implementation 'androidx.core:core-ktx:1.10.0' diff --git a/revoltbuild.properties.example b/revoltbuild.properties.example index 01e53abc..1d97a880 100644 --- a/revoltbuild.properties.example +++ b/revoltbuild.properties.example @@ -1,3 +1,4 @@ sentry.dsn= +sentry.upload_mappings=true analysis.enabled=false analysis.base_url= \ No newline at end of file