Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a348c819 authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

Merge branch '1234-fix-sentry-crash' into 'main'

1234 fix sentry crash

See merge request !130
parents 77914b27 c69292e1
Loading
Loading
Loading
Loading
Loading
+16 −1
Original line number Diff line number Diff line
@@ -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 {
+1 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ buildscript {
        'version'   : [
            'major': 1,
            'minor': 12,
            'patch': 0,
            'patch': 1,
        ],
    ]

+1 −1
Original line number Diff line number Diff line
@@ -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'