1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-14 12:50:33 +01:00

Merge pull request #4326 from Stypox/appid-numbers

Allow numbers and uppercase letters in app package id
This commit is contained in:
bopol 2020-09-27 12:00:55 +02:00 committed by GitHub
commit a9fafe91a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ android {
// suffix the app id and the app name with git branch name
def workingBranch = getGitWorkingBranch()
def normalizedWorkingBranch = workingBranch.replaceAll("[^A-Za-z]+", "").toLowerCase()
def normalizedWorkingBranch = workingBranch.replaceFirst("^[^A-Za-z]+", "").replaceAll("[^0-9A-Za-z]+", "")
if (normalizedWorkingBranch.isEmpty() || workingBranch == "master" || workingBranch == "dev") {
// default values when branch name could not be determined or is master or dev
applicationIdSuffix ".debug"