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

Unverified Commit cf251887 authored by Marten Gajda's avatar Marten Gajda Committed by GitHub
Browse files

Fix track selection, fixes #747 (#748)

The regular expression for the internal track didn't cover a revision descirption like `1.1.16-dirty` which is a release commit with changes.
The proposed fix makes the part between the version number and `-dirty` optional.
parent 5b18f803
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -98,7 +98,7 @@ if (project.hasProperty('PLAY_STORE_SERVICE_ACCOUNT_CREDENTIALS')) {
        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$/:
            case ~/^(\d+)(\.\d+)*(-\d+-[\w\d]+)?-dirty$/:
                // work in progress goes to the internal track
                track = "internal"
                break