From 356ae0f6530ffab12536cf7092f9ec7be6abee94 Mon Sep 17 00:00:00 2001 From: Sayantan Roychowdhury Date: Thu, 4 May 2023 21:24:44 +0530 Subject: [PATCH 1/3] use getSentryDsn function in gradle --- app/build.gradle | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 5f3009a7..e6d0c2a9 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -21,6 +21,21 @@ plugins { id 'kotlin-kapt' } +def getSentryDsn = { -> + + def sentryDsnEnv = System.getenv("SENTRY_DSN") + if (sentryDsnEnv != null) { + return sentryDsnEnv + } + + Properties properties = new Properties() + def propertiesFile = project.rootProject.file('local.properties') + if (propertiesFile.exists()) { + properties.load(propertiesFile.newDataInputStream()) + } + return properties.getProperty('SENTRY_DSN') +} + android { compileSdkVersion buildConfig.compileSdk @@ -39,7 +54,7 @@ android { ] resValue("string", "mapbox_key", MAPBOX_KEY) - buildConfigField("String", "SENTRY_DSN", "\"$SENTRY_DSN\"") + buildConfigField("String", "SENTRY_DSN", "\"${getSentryDsn()}\"") } signingConfigs { -- GitLab From 204aa0edaab0852133cdf4dcdc2eaf695c548a05 Mon Sep 17 00:00:00 2001 From: Sayantan Roychowdhury Date: Thu, 4 May 2023 21:25:10 +0530 Subject: [PATCH 2/3] update telemetry plugin version --- dependencies.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dependencies.gradle b/dependencies.gradle index 5fbbcf68..a0879b4d 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -115,4 +115,4 @@ libs.maplibre = 'org.maplibre.gl:android-sdk:10.0.2' libs.mpAndroidCharts = 'com.github.PhilJay:MPAndroidChart:v3.1.0' -libs.telemetry = 'foundation.e.lib:telemetry:0.0.7-alpha' +libs.telemetry = 'foundation.e.lib:telemetry:0.0.8-alpha' -- GitLab From 4f63d6b6b87d84aea71025caeea0bc73a4c42905 Mon Sep 17 00:00:00 2001 From: Sayantan Roychowdhury Date: Thu, 4 May 2023 21:26:11 +0530 Subject: [PATCH 3/3] update version to 1.12.1 --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 715772f8..6bc83b51 100644 --- a/build.gradle +++ b/build.gradle @@ -27,7 +27,7 @@ buildscript { 'version' : [ 'major': 1, 'minor': 12, - 'patch': 0, + 'patch': 1, ], ] -- GitLab