1
0
Fork 0

added Ko-Fi

This commit is contained in:
sspanak 2025-04-12 11:26:07 +03:00 committed by Dimo Karaivanov
parent 777f2d11bc
commit 6430c8780e
2 changed files with 6 additions and 1 deletions

1
.github/FUNDING.yml vendored
View file

@ -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']

View file

@ -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() }