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

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

Merge branch '0.0.7-alpha' into 'main'

0.0.7 alpha

See merge request !6
parents bc02b526 e2526012
Loading
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -15,6 +15,12 @@ cache:

lib:
  stage: lib
  rules:
    - if: '$CI_COMMIT_TAG !~ "/^$/"'
      when: always
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
      when: always
    - when: manual
  script:
    - ./gradlew :lib:assembleRelease
  artifacts:
@@ -23,5 +29,10 @@ lib:

publish:
  stage: publish
  needs:
    - lib
  rules:
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
      when: manual
  script:
    - ./gradlew :lib:publish
+1 −1
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ plugins {

def versionMajor = 0
def versionMinor = 0
def versionPatch = 6
def versionPatch = 7
def releasePatch = "alpha"

android {
+6 −3
Original line number Diff line number Diff line
@@ -25,15 +25,18 @@ object Telemetry {
     * @param application: the application context
     */
    @JvmStatic
    fun init(identifier: String, application: Application, enableOsTag: Boolean) {
    fun init(identifier: String, application: Application, enableOsTag: Boolean = true) {
        this.identifier = identifier
        this.application = application
        this.enableOsTag = enableOsTag
        this.isTelemetryEnabled = checkTelemetryDeveloperOption()

        val sentryDsn =
            if (isTelemetryEnabled) identifier
            else String()
            if (isTelemetryEnabled) {
                identifier
            } else {
                String()
            }

        SentryAndroid.init(application) { options ->
            options.dsn = sentryDsn