From 6430c8780ee10c632406736764eab04e4a94025c Mon Sep 17 00:00:00 2001 From: sspanak Date: Sat, 12 Apr 2025 11:26:07 +0300 Subject: [PATCH] added Ko-Fi --- .github/FUNDING.yml | 1 + app/build.gradle | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 0a2ce4b3..88b8301b 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1 +1,2 @@ +ko_fi: sspanak custom: ['https://www.paypal.com/donate/?hosted_button_id=LW97X3JM2CRZC'] diff --git a/app/build.gradle b/app/build.gradle index 4f8da83c..c5debd5d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -76,7 +76,11 @@ 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 getDonationUrl = { -> new File(FUNDING_FILE) + .readLines().get(0).trim() + .replaceFirst("^([^:]+)\\s*:\\s*([^\\n]+)", "https://\$1.com/\$2") + .replace('_', '-') +} def getVerCode = { -> return getVersionCode() } def getVerName = { -> return getVersionName() } def getVersionString = { flavor -> return flavor == 'debug' ? getDebugVersion() : getReleaseVersion() }