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

Commit 270160e6 authored by cketti's avatar cketti
Browse files

Support reading signing config values from Gradle properties

parent 87acbb7c
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
@@ -60,6 +60,16 @@ android {
        }
    }

    signingConfigs {
        release
    }

    buildTypes {
        release {
            signingConfig signingConfigs.release
        }
    }

    // Do not abort build if lint finds errors
    lintOptions {
        abortOnError false
@@ -86,3 +96,16 @@ task testsOnJVM(type: GradleBuild, dependsOn: assemble) {
    buildFile = 'tests-on-jvm/build.gradle'
    tasks = ['test']
}

if (project.hasProperty('keyAlias')) {
    android.signingConfigs.release.keyAlias = keyAlias
}
if (project.hasProperty('keyPassword')) {
    android.signingConfigs.release.keyPassword = keyPassword
}
if (project.hasProperty('storeFile')) {
    android.signingConfigs.release.storeFile = file(storeFile)
}
if (project.hasProperty('storePassword')) {
    android.signingConfigs.release.storePassword = storePassword
}