added Ko-Fi
This commit is contained in:
parent
777f2d11bc
commit
6430c8780e
2 changed files with 6 additions and 1 deletions
1
.github/FUNDING.yml
vendored
1
.github/FUNDING.yml
vendored
|
|
@ -1 +1,2 @@
|
||||||
|
ko_fi: sspanak
|
||||||
custom: ['https://www.paypal.com/donate/?hosted_button_id=LW97X3JM2CRZC']
|
custom: ['https://www.paypal.com/donate/?hosted_button_id=LW97X3JM2CRZC']
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,11 @@ clean {
|
||||||
}
|
}
|
||||||
|
|
||||||
// using the exported Closures directly causes weird values, hence the extra wrappers here
|
// using the exported Closures directly causes weird values, hence the extra wrappers here
|
||||||
def getDonationUrl = { -> return new File(FUNDING_FILE).text.replace("custom:", "").replaceAll("['\\s\\[\\]]+", "") }
|
def getDonationUrl = { -> new File(FUNDING_FILE)
|
||||||
|
.readLines().get(0).trim()
|
||||||
|
.replaceFirst("^([^:]+)\\s*:\\s*([^\\n]+)", "https://\$1.com/\$2")
|
||||||
|
.replace('_', '-')
|
||||||
|
}
|
||||||
def getVerCode = { -> return getVersionCode() }
|
def getVerCode = { -> return getVersionCode() }
|
||||||
def getVerName = { -> return getVersionName() }
|
def getVerName = { -> return getVersionName() }
|
||||||
def getVersionString = { flavor -> return flavor == 'debug' ? getDebugVersion() : getReleaseVersion() }
|
def getVersionString = { flavor -> return flavor == 'debug' ? getDebugVersion() : getReleaseVersion() }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue