diff options
author | Guillaume Jacquart <guillaume.jacquart@hoodbrains.com> | 2023-01-12 07:45:54 +0000 |
---|---|---|
committer | Guillaume Jacquart <guillaume.jacquart@hoodbrains.com> | 2023-01-12 07:45:54 +0000 |
commit | 147782f1677ca71e5da486afb90beff0e122183f (patch) | |
tree | 02261d62fe73fa07ba2ae9a413a075242c3379a6 /app | |
parent | 7cad75f498d1afbb69069b582bb75ebf7a8833aa (diff) | |
parent | 8fc2b39e12c247b16231f7421b8b9dcf863e24de (diff) |
Merge branch '855-sentry' into 'main'
855: setup Sentry telemetry.
See merge request e/os/advanced-privacy!112
Diffstat (limited to 'app')
-rw-r--r-- | app/build.gradle | 5 | ||||
-rw-r--r-- | app/src/main/AndroidManifest.xml | 2 | ||||
-rw-r--r-- | app/src/main/java/foundation/e/privacycentralapp/PrivacyCentralApplication.kt | 4 |
3 files changed, 8 insertions, 3 deletions
diff --git a/app/build.gradle b/app/build.gradle index 12d1159..7f048d2 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -39,6 +39,7 @@ android { ] resValue("string", "mapbox_key", MAPBOX_KEY) + buildConfigField("String", "SENTRY_DSN", "\"$SENTRY_DSN\"") } signingConfigs { @@ -150,7 +151,9 @@ dependencies { Libs.Retrofit.scalars, Libs.MapBox.sdk, - Libs.mpAndroidCharts + Libs.mpAndroidCharts, + + Libs.telemetry ) debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.9.1' diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 3bcd764..c155aa5 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- - Copyright (C) 2022 ECORP + Copyright (C) 2022 ECORP, 2022 MURENA SAS This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/app/src/main/java/foundation/e/privacycentralapp/PrivacyCentralApplication.kt b/app/src/main/java/foundation/e/privacycentralapp/PrivacyCentralApplication.kt index 28e96e0..639fec2 100644 --- a/app/src/main/java/foundation/e/privacycentralapp/PrivacyCentralApplication.kt +++ b/app/src/main/java/foundation/e/privacycentralapp/PrivacyCentralApplication.kt @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 E FOUNDATION + * Copyright (C) 2021 E FOUNDATION, 2022 - 2023 MURENA SAS * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -19,6 +19,7 @@ package foundation.e.privacycentralapp import android.app.Application import com.mapbox.mapboxsdk.Mapbox +import foundation.e.lib.telemetry.Telemetry class PrivacyCentralApplication : Application() { @@ -27,6 +28,7 @@ class PrivacyCentralApplication : Application() { override fun onCreate() { super.onCreate() + Telemetry.init(BuildConfig.SENTRY_DSN, this) Mapbox.getTelemetry()?.setUserTelemetryRequestState(false) dependencyContainer.initBackgroundSingletons() |