From bb4ce986e0ea44696d9bd23470b095d975f3fb5a Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Mon, 15 Aug 2022 21:45:57 +0200 Subject: [PATCH] DonateFragment: craft bitcoin URI by hand This lets us get rid of the `integration-android` artifact. --- oeffi/build.gradle | 1 - oeffi/res/values/strings.xml | 1 + oeffi/res/xml/preference_donate.xml | 6 +++++- oeffi/src/de/schildbach/oeffi/Constants.java | 2 -- .../de/schildbach/oeffi/preference/DonateFragment.java | 9 --------- 5 files changed, 6 insertions(+), 13 deletions(-) diff --git a/oeffi/build.gradle b/oeffi/build.gradle index 500ab2b..a515e7f 100644 --- a/oeffi/build.gradle +++ b/oeffi/build.gradle @@ -12,7 +12,6 @@ configurations { dependencies { implementation project(':public-transport-enabler') - implementation 'de.schildbach.wallet:integration-android:2.0' implementation 'androidx.annotation:annotation:1.3.0' implementation 'androidx.recyclerview:recyclerview:1.2.1' implementation 'androidx.coordinatorlayout:coordinatorlayout:1.2.0' diff --git a/oeffi/res/values/strings.xml b/oeffi/res/values/strings.xml index 96d47c0..de9c494 100644 --- a/oeffi/res/values/strings.xml +++ b/oeffi/res/values/strings.xml @@ -60,6 +60,7 @@ Donations Donate Bitcoins Bitcoin is an Internet currency. + bitcoin:bc1q8ruc8hanp7hrzfs48dvtuzz4ukmpe7cgsvvzrt Donate Euros https://oeffi.schildbach.de/donate.html diff --git a/oeffi/res/xml/preference_donate.xml b/oeffi/res/xml/preference_donate.xml index 78f34fb..dc906d1 100644 --- a/oeffi/res/xml/preference_donate.xml +++ b/oeffi/res/xml/preference_donate.xml @@ -5,7 +5,11 @@ + android:title="@string/about_donate_bitcoin_title"> + + { - BitcoinIntegration.request(getActivity(), Constants.BITCOIN_ADDRESS); - return true; - }); } }