Skip to content

Commit 2156ddb

Browse files
committed
Delete donate button to comply with Google Play policies
1 parent e189fc6 commit 2156ddb

6 files changed

Lines changed: 14 additions & 18 deletions

File tree

app/src/main/java/com/hegocre/nextcloudpasswords/ui/components/NCPAboutScreen.kt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ import androidx.compose.material.icons.automirrored.filled.ArrowBack
2121
import androidx.compose.material.icons.outlined.Campaign
2222
import androidx.compose.material.icons.outlined.Code
2323
import androidx.compose.material.icons.outlined.Description
24+
import androidx.compose.material.icons.outlined.Handshake
2425
import androidx.compose.material.icons.outlined.History
2526
import androidx.compose.material.icons.outlined.Info
26-
import androidx.compose.material.icons.outlined.MonetizationOn
2727
import androidx.compose.material.icons.outlined.Person
2828
import androidx.compose.material.icons.outlined.Policy
2929
import androidx.compose.material.icons.outlined.Web
@@ -176,6 +176,17 @@ fun NCPAboutScreen(
176176
onClick = { uriHandler.openUri("$repoUrl/issues") }
177177
)
178178

179+
AboutTextField(
180+
icon = {
181+
Icon(
182+
imageVector = Icons.Outlined.Handshake,
183+
contentDescription = stringResource(id = R.string.contribute)
184+
)
185+
},
186+
primaryText = { Text(text = stringResource(id = R.string.contribute)) },
187+
onClick = { uriHandler.openUri(contributeUrl) }
188+
)
189+
179190
AboutTextField(
180191
icon = {
181192
Icon(
@@ -241,17 +252,6 @@ fun NCPAboutScreen(
241252
primaryText = { Text(text = stringResource(id = R.string.website)) },
242253
onClick = { uriHandler.openUri(websiteUrl) }
243254
)
244-
245-
AboutTextField(
246-
icon = {
247-
Icon(
248-
imageVector = Icons.Outlined.MonetizationOn,
249-
contentDescription = stringResource(id = R.string.make_a_donation)
250-
)
251-
},
252-
primaryText = { Text(text = stringResource(id = R.string.make_a_donation)) },
253-
onClick = { uriHandler.openUri(donateUrl) }
254-
)
255255
}
256256
}
257257
}
@@ -375,7 +375,7 @@ const val policyUrl = "https://hegocre.com/nextcloudpasswords/privacy.html"
375375
const val repoUrl = "https://github.com/hegocre/NextcloudPasswords"
376376
const val websiteUrl = "https://hegocre.com/"
377377
const val changelogUrl = "https://github.com/hegocre/NextcloudPasswords/releases/latest"
378-
const val donateUrl = "https://paypal.me/hegocre"
378+
const val contributeUrl = "https://github.com/hegocre/NextcloudPasswords#contribute"
379379
val authors = mapOf(
380380
"Hector Godoy" to "https://github.com/hegocre",
381381
)

app/src/main/res/values-ca-rES/strings.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@
107107
<string name="use_nextcloud_color_msg">Utilitzar el color de la instància com a color d\'accent</string>
108108
<string name="use_dynamic_color">Usar colors dinàmics</string>
109109
<string name="use_dynamic_color_msg">Utilitzar els colors dinàmics del sistema</string>
110-
<string name="make_a_donation">Fer una donació</string>
111110
<string name="changelog">Registre de canvis</string>
112111
<string name="no_content_here">No hi ha contingut</string>
113112
<string name="no_results_found">Sense resultats</string>

app/src/main/res/values-en-rUS/strings.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@
107107
<string name="use_nextcloud_color_msg">Use the instance color as the accent color</string>
108108
<string name="use_dynamic_color">Use dynamic colors</string>
109109
<string name="use_dynamic_color_msg">Use the dynamic colors from the system</string>
110-
<string name="make_a_donation">Make a donation</string>
111110
<string name="changelog">Changelog</string>
112111
<string name="no_content_here">No content here</string>
113112
<string name="no_results_found">No results found</string>

app/src/main/res/values-es-rES/strings.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@
107107
<string name="use_nextcloud_color_msg">Usa el color de la instancia como color de acento</string>
108108
<string name="use_dynamic_color">Usar colores dinámicos</string>
109109
<string name="use_dynamic_color_msg">Usar los colores dinámicos del sistema</string>
110-
<string name="make_a_donation">Hacer una donación</string>
111110
<string name="changelog">Registro de cambios</string>
112111
<string name="no_content_here">No hay contenido</string>
113112
<string name="no_results_found">No hay resultados</string>

app/src/main/res/values-fr-rFR/strings.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,5 @@
107107
<string name="use_nextcloud_color_msg">Utiliser la couleur de l\'instance comme couleur d\'accentuation</string>
108108
<string name="use_dynamic_color">Utiliser des couleurs dynamiques</string>
109109
<string name="use_dynamic_color_msg">Utiliser les couleurs dynamiques du système</string>
110-
<string name="make_a_donation">Faire un don</string>
111110
<string name="changelog">Journal des changements</string>
112111
</resources>

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@
106106
<string name="use_nextcloud_color_msg">Use the instance color as the accent color</string>
107107
<string name="use_dynamic_color">Use dynamic colors</string>
108108
<string name="use_dynamic_color_msg">Use the dynamic colors from the system</string>
109-
<string name="make_a_donation">Make a donation</string>
110109
<string name="changelog">Changelog</string>
111110
<string name="no_content_here">No content here</string>
112111
<string name="no_results_found">No results found</string>
113112
<string name="search_everywhere">Search everywhere</string>
113+
<string name="contribute">Contribute</string>
114114
</resources>

0 commit comments

Comments
 (0)