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

Commit 10d35b44 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

Remove Play Store publishing configuration

parent 5e37b9b0
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -7,7 +7,6 @@ buildscript {
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:4.1.2'
        classpath("com.github.triplet.gradle:play-publisher:2.8.1")
    }
}

+0 −26
Original line number Diff line number Diff line
apply plugin: 'com.android.application'
if (project.hasProperty('PLAY_STORE_SERVICE_ACCOUNT_CREDENTIALS')) {
    apply plugin: 'com.github.triplet.play'
}

android {
    compileSdkVersion COMPILE_SDK_VERSION.toInteger()
@@ -77,26 +74,3 @@ dependencies {
    implementation 'androidx.preference:preference:1.1.1'
    implementation 'com.maltaisn:recurpicker:2.1.4'
}

if (project.hasProperty('PLAY_STORE_SERVICE_ACCOUNT_CREDENTIALS')) {
    play {
        serviceAccountCredentials = file(PLAY_STORE_SERVICE_ACCOUNT_CREDENTIALS)
        // the track is determined automatically by the version number format
        switch (version) {
            case ~/^(\d+)(\.\d+)*(-\d+-[\w\d]+)?-dirty$/:
                // work in progress goes to the internal track
                track = "internal"
                break
            case ~/^(\d+)(\.\d+)*-\d+-[\w\d]+$/:
                // untagged commits go to alpha
                track = "alpha"
                break
            case ~/^(\d+)(\.\d+)*$/:
                // tagged commits to go beta, from where they get promoted to releases
                track = "beta"
                break
            default:
                throw new IllegalArgumentException("Unrecognized version format")
        }
    }
}