1
0
Fork 0

switched the donation platform from buymeacoffee.com to paypal.com

This commit is contained in:
sspanak 2025-03-17 13:16:40 +02:00 committed by Dimo Karaivanov
parent 8420c6c961
commit c2260c1d4e
5 changed files with 8 additions and 3 deletions

View file

@ -76,6 +76,7 @@ clean {
}
// 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 getVerCode = { -> return getVersionCode() }
def getVerName = { -> return getVersionName() }
def getVersionString = { flavor -> return flavor == 'debug' ? getDebugVersion() : getReleaseVersion() }
@ -100,11 +101,13 @@ android {
buildTypes {
debug {
buildConfigField 'String', 'DONATION_URL', "\"${getDonationUrl()}\""
buildConfigField 'String', 'DICTIONARY_EXTENSION', "\"${DICTIONARY_OUTPUT_EXTENSION}\""
buildConfigField 'String', 'VERSION_FULL', "\"${getVersionString('debug')}\""
}
release {
buildConfigField 'String', 'DONATION_URL', "\"${getDonationUrl()}\""
buildConfigField 'String', 'DICTIONARY_EXTENSION', "\"${DICTIONARY_OUTPUT_EXTENSION}\""
buildConfigField 'String', 'VERSION_FULL', "\"${getVersionString('release')}\""