diff --git a/app/build.gradle b/app/build.gradle index 430ed64..7fcfb35 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -57,11 +57,13 @@ android { productFlavors { foss { dimension = "distribution" + buildConfigField "boolean", "SHOW_DONATE_LINK", "true" // Configuration for FOSS (GitHub, F-Droid) // No proprietary services, no ads } play { dimension = "distribution" + buildConfigField "boolean", "SHOW_DONATE_LINK", "false" // Configuration for Google Play // Google Services, Admob } diff --git a/app/src/main/java/org/nitri/opentopo/view/AboutDialog.kt b/app/src/main/java/org/nitri/opentopo/view/AboutDialog.kt index a92c280..e4a2588 100644 --- a/app/src/main/java/org/nitri/opentopo/view/AboutDialog.kt +++ b/app/src/main/java/org/nitri/opentopo/view/AboutDialog.kt @@ -30,6 +30,7 @@ import androidx.lifecycle.setViewTreeLifecycleOwner import androidx.lifecycle.setViewTreeViewModelStoreOwner import androidx.savedstate.SavedStateRegistryOwner import androidx.savedstate.setViewTreeSavedStateRegistryOwner +import org.nitri.opentopo.BuildConfig import org.nitri.opentopo.R import org.nitri.opentopo.ui.theme.OpenTopoTheme import org.nitri.opentopo.util.Utils @@ -127,6 +128,12 @@ fun AboutDialogContent() { html = stringResource(R.string.app_product_page), modifier = Modifier.padding(top = 16.dp) ) + if (BuildConfig.SHOW_DONATE_LINK) { + HtmlText( + html = stringResource(R.string.donate_kofi), + modifier = Modifier.padding(top = 8.dp) + ) + } HtmlText( html = stringResource(R.string.issue_tracker), modifier = Modifier.padding(top = 8.dp) diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 643d9ec..fdc2c6d 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -74,6 +74,7 @@ Über Version %1$s Von <a href="http://www.sergehelfrich.eu/">Serge Helfrich</a> + <a href="https://ko-fi.com/U7U372JJ">Über Ko-fi spenden</a> Fehlermeldungen und Funktionsanfragen: <a href="https://github.com/Pygmalion69/OpenTopoMapViewer/issues">GitHub Issues</a> Karte von <a href="https://opentopomap.org/">OpenTopoMap</a> (© OpenStreetMap-Mitwirkende, SRTM). Kartendaten von <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>-Mitwirkenden. diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 38fb273..d138540 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -74,6 +74,7 @@ Acerca de Versión %1$s Por <a href="http://www.sergehelfrich.eu/">Serge Helfrich</a> + <a href="https://ko-fi.com/U7U372JJ">Donar a través de Ko-fi</a> Informes de errores y solicitudes de funciones: <a href="https://github.com/Pygmalion69/OpenTopoMapViewer/issues">GitHub Issues</a> Mapa de <a href="https://opentopomap.org/">OpenTopoMap</a> (© colaboradores de OpenStreetMap, SRTM). Datos del mapa de los colaboradores de <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>. diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 18ff587..b1e8c9a 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -74,6 +74,7 @@ À propos Version %1$s Par <a href="http://www.sergehelfrich.eu/">Serge Helfrich</a> + <a href="https://ko-fi.com/U7U372JJ">Faire un don via Ko-fi</a> Rapports de bogues et demandes de fonctionnalités : <a href="https://github.com/Pygmalion69/OpenTopoMapViewer/issues">GitHub Issues</a> Carte par <a href="https://opentopomap.org/">OpenTopoMap</a> (© contributeurs d\'OpenStreetMap, SRTM). Données cartographiques par les contributeurs d\'<a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>. diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index 9ca484e..5e8b5c2 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -74,6 +74,7 @@ Info Versione %1$s Di <a href="http://www.sergehelfrich.eu/">Serge Helfrich</a> + <a href="https://ko-fi.com/U7U372JJ">Dona tramite Ko-fi</a> Segnalazione bug e richieste di funzionalità: <a href="https://github.com/Pygmalion69/OpenTopoMapViewer/issues">GitHub Issues</a> Mappa di <a href="https://opentopomap.org/">OpenTopoMap</a> (© contributori di OpenStreetMap, SRTM). Dati cartografici dei contributori di <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>. diff --git a/app/src/main/res/values-nl/strings.xml b/app/src/main/res/values-nl/strings.xml index 0b0b51a..b74145f 100644 --- a/app/src/main/res/values-nl/strings.xml +++ b/app/src/main/res/values-nl/strings.xml @@ -74,6 +74,7 @@ Over Versie %1$s Door <a href="http://www.sergehelfrich.eu/">Serge Helfrich</a> + <a href="https://ko-fi.com/U7U372JJ">Doneren via Ko-fi</a> Bugrapporten en functionaliteitsverzoeken: <a href="https://github.com/Pygmalion69/OpenTopoMapViewer/issues">GitHub Issues</a> Kaart door <a href="https://opentopomap.org/">OpenTopoMap</a> (© OpenStreetMap-bijdragers, SRTM). Kaartgegevens door <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>-bijdragers. diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 84d0881..d1e029b 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -86,6 +86,7 @@ Version %1$s By <a href="http://www.sergehelfrich.eu/">Serge Helfrich</a> <a href="https://opentopomap.sergehelfrich.eu/">opentopomap.sergehelfrich.eu</a> + <a href="https://ko-fi.com/U7U372JJ">Donate via Ko-fi</a> Bug reports and feature requests: <a href="https://github.com/Pygmalion69/OpenTopoMapViewer/issues">GitHub Issues</a> Map by <a href="https://opentopomap.org/">OpenTopoMap</a> (© OpenStreetMap contributors, SRTM). Map data by <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors.