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

Commit 2f31f9ab authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Build with stable keys

parent 56666f45
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -35,10 +35,12 @@ test:
build:
  stage: build
  script:
    - ./gradlew assembleRelease
  needs: [ "spotless", "lint" ]
    - ./gradlew build --stacktrace
  artifacts:
    paths:
      - app/build/outputs/apk
  before_script:
    - sed -i 's/DEFAULT_OWM_KEY/'${DEFAULT_OWM_KEY}'/g' app/src/main/res/values/strings.xml
    - export GRADLE_USER_HOME=$(pwd)/.gradle
    - chmod +x ./gradlew
    - echo "${KEYSTORE}" | base64 -d > keystore/proprietary.keystore
+21 −7
Original line number Diff line number Diff line
@@ -46,6 +46,23 @@ android {
        setProperty("archivesBaseName", "BlissLauncher-$versionName")
    }

    signingConfigs {
        getByName("debug") {
            storeFile = file(rootDir.path + keyStorePath)
            storePassword = keyStorePassword
            keyAlias = signingKeyAlias
            keyPassword = signingKeyPassword
        }

        val keystore_password = System.getenv("KEYSTORE_PASSWORD")
        create("stable") {
            storeFile = file("../keystore/proprietary.keystore")
            storePassword = keystore_password
            keyAlias = "platform.stable"
            keyPassword = keystore_password
        }
    }

    buildTypes {
        release {
            isMinifyEnabled = false
@@ -69,14 +86,11 @@ android {
        configureEach {
            buildConfigField("String", "SENTRY_DSN", "\"${System.getenv("SENTRY_DSN")}\"")
        }
    }

    signingConfigs {
        getByName("debug") {
            storeFile = file(rootDir.path + keyStorePath)
            storePassword = keyStorePassword
            keyAlias = signingKeyAlias
            keyPassword = signingKeyPassword
        create("stable") {
            isMinifyEnabled = false
            proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro")
            signingConfig = signingConfigs.getByName("stable")
        }
    }