diff --git a/app/build.gradle b/app/build.gradle index 5f3009a7747938d418bd560407aff9e204e75cea..e6d0c2a940721e37049d6b8fd2533eaf2cc00c2a 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 { diff --git a/build.gradle b/build.gradle index 715772f810a7833170125e6e0fdbac40924a5dce..6bc83b519b4ddcdfc1ebecb6b61e12dcb9216fc7 100644 --- a/build.gradle +++ b/build.gradle @@ -27,7 +27,7 @@ buildscript { 'version' : [ 'major': 1, 'minor': 12, - 'patch': 0, + 'patch': 1, ], ] diff --git a/dependencies.gradle b/dependencies.gradle index 5fbbcf68f1ca99d1381c2b54c9411a9d3fb668dc..a0879b4d2bf1a553b06f829228d03a5e3ac128bc 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'