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

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

Revert "Issue 854: Integrate sentry"

This reverts commit 53ca2d02.
parent ba75dc7a
Loading
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
image: registry.gitlab.e.foundation/e/os/docker-android-apps-cicd:55-workshop-auto-release

variables:
  SENTRY_DSN: $SENTRY_DSN

stages:
  - debug
  - release
+0 −18
Original line number Diff line number Diff line
@@ -25,21 +25,6 @@ def getDate = { ->
    return new Date().format('yyyyMMddHHmmss')
}

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 {
    compileSdk 31

@@ -51,7 +36,6 @@ android {
        versionName "${versionMajor}.${versionMinor}.${versionPatch}"

        buildConfigField "String", "BUILD_ID", "\"${getGitHash() + "." + getDate()}\""
        buildConfigField("String", "SENTRY_DSN", "\"${getSentryDsn()}\"")

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
@@ -145,8 +129,6 @@ dependencies {
    // TODO: Add splitinstall-lib to a repo https://gitlab.e.foundation/e/os/backlog/-/issues/628
    api files('libs/splitinstall-lib.jar')

    implementation 'foundation.e.lib:telemetry:0.0.4-alpha'

    implementation 'foundation.e:gplayapi:3.0.1'
    implementation 'androidx.core:core-ktx:1.7.0'
    implementation 'androidx.appcompat:appcompat:1.4.1'
+0 −1
Original line number Diff line number Diff line
@@ -40,7 +40,6 @@
        android:supportsRtl="true"
        android:theme="@style/Theme.Apps"
        android:usesCleartextTraffic="true">

        <activity
            android:name=".MainActivity"
            android:exported="true">
+0 −10
Original line number Diff line number Diff line
@@ -27,7 +27,6 @@ import foundation.e.apps.manager.pkg.PkgManagerModule
import foundation.e.apps.manager.workmanager.InstallWorkManager
import foundation.e.apps.setup.tos.TOS_VERSION
import foundation.e.apps.utils.modules.DataStoreModule
import foundation.e.lib.telemetry.Telemetry
import kotlinx.coroutines.DelicateCoroutinesApi
import kotlinx.coroutines.MainScope
import kotlinx.coroutines.launch
@@ -63,17 +62,8 @@ class AppLoungeApplication : Application(), Configuration.Provider {
                dataStoreModule.saveTOCStatus(false, "")
            }
        }

        if (BuildConfig.DEBUG) {
            plant(Timber.DebugTree())
        } else {
            // Allow enabling telemetry only for release builds.
            Telemetry.init(BuildConfig.SENTRY_DSN, this)
            plant(object : Timber.Tree() {
                override fun log(priority: Int, tag: String?, message: String, t: Throwable?) {
                    Telemetry.reportMessage("$tag: $message")
                }
            })
        }
    }