Commit fc364b87 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃
Browse files

fixup! [android] Disable features and functionality

BB 45137: Define TELEMETRY and CRASH_REPORTING once on Android.
parent 61b48e25
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -333,8 +333,8 @@ androidComponents {
// -------------------------------------------------------------------------------------------------

android.defaultConfig.with {
    buildConfigField 'boolean', 'CRASH_REPORTING', 'true'
    buildConfigField 'boolean', 'TELEMETRY', 'true'
    buildConfigField 'boolean', 'CRASH_REPORTING', 'false'
    buildConfigField 'boolean', 'TELEMETRY', 'false'

    // Reading the sentry token from a local file (if it exists). In a release task on taskcluster it will be available.
    buildConfigField 'String', 'SENTRY_TOKEN', 'null'
@@ -342,8 +342,6 @@ android.defaultConfig.with {
        def token = new File("${rootDir}/.sentry_token").text.trim()
        buildConfigField 'String', 'SENTRY_TOKEN', '"' + token + '"'
    } catch (FileNotFoundException ignored) {}
    buildConfigField 'boolean', 'CRASH_REPORTING', 'false'
    buildConfigField 'boolean', 'TELEMETRY', 'false'

    // Setting buildDate with every build ID changes the generated BuildConfig and slows down the
    // build, so debug builds (overridden below) use a fixed string instead.