Skip to content

Commit

Permalink
Delete donate button to comply with Google Play policies
Browse files Browse the repository at this point in the history
  • Loading branch information
hegocre committed Dec 29, 2023
1 parent e189fc6 commit 118f022
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import androidx.compose.material.icons.automirrored.filled.ArrowBack
import androidx.compose.material.icons.outlined.Campaign
import androidx.compose.material.icons.outlined.Code
import androidx.compose.material.icons.outlined.Description
import androidx.compose.material.icons.outlined.Handshake
import androidx.compose.material.icons.outlined.History
import androidx.compose.material.icons.outlined.Info
import androidx.compose.material.icons.outlined.MonetizationOn
import androidx.compose.material.icons.outlined.Person
import androidx.compose.material.icons.outlined.Policy
import androidx.compose.material.icons.outlined.Web
Expand Down Expand Up @@ -176,6 +176,17 @@ fun NCPAboutScreen(
onClick = { uriHandler.openUri("$repoUrl/issues") }
)

AboutTextField(
icon = {
Icon(
imageVector = Icons.Outlined.Handshake,
contentDescription = stringResource(id = R.string.contribute)
)
},
primaryText = { Text(text = stringResource(id = R.string.contribute)) },
onClick = { uriHandler.openUri(contributeUrl) }
)

AboutTextField(
icon = {
Icon(
Expand Down Expand Up @@ -241,17 +252,6 @@ fun NCPAboutScreen(
primaryText = { Text(text = stringResource(id = R.string.website)) },
onClick = { uriHandler.openUri(websiteUrl) }
)

AboutTextField(
icon = {
Icon(
imageVector = Icons.Outlined.MonetizationOn,
contentDescription = stringResource(id = R.string.make_a_donation)
)
},
primaryText = { Text(text = stringResource(id = R.string.make_a_donation)) },
onClick = { uriHandler.openUri(donateUrl) }
)
}
}
}
Expand Down Expand Up @@ -375,7 +375,7 @@ const val policyUrl = "https://hegocre.com/nextcloudpasswords/privacy.html"
const val repoUrl = "https://github.com/hegocre/NextcloudPasswords"
const val websiteUrl = "https://hegocre.com/"
const val changelogUrl = "https://github.com/hegocre/NextcloudPasswords/releases/latest"
const val donateUrl = "https://paypal.me/hegocre"
const val contributeUrl = "https://github.com/hegocre/NextcloudPasswords#contribute"
val authors = mapOf(
"Hector Godoy" to "https://github.com/hegocre",
)
Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/values-ca-rES/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@
<string name="use_nextcloud_color_msg">Utilitzar el color de la instància com a color d\'accent</string>
<string name="use_dynamic_color">Usar colors dinàmics</string>
<string name="use_dynamic_color_msg">Utilitzar els colors dinàmics del sistema</string>
<string name="make_a_donation">Fer una donació</string>
<string name="changelog">Registre de canvis</string>
<string name="no_content_here">No hi ha contingut</string>
<string name="no_results_found">Sense resultats</string>
Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/values-en-rUS/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@
<string name="use_nextcloud_color_msg">Use the instance color as the accent color</string>
<string name="use_dynamic_color">Use dynamic colors</string>
<string name="use_dynamic_color_msg">Use the dynamic colors from the system</string>
<string name="make_a_donation">Make a donation</string>
<string name="changelog">Changelog</string>
<string name="no_content_here">No content here</string>
<string name="no_results_found">No results found</string>
Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/values-es-rES/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@
<string name="use_nextcloud_color_msg">Usa el color de la instancia como color de acento</string>
<string name="use_dynamic_color">Usar colores dinámicos</string>
<string name="use_dynamic_color_msg">Usar los colores dinámicos del sistema</string>
<string name="make_a_donation">Hacer una donación</string>
<string name="changelog">Registro de cambios</string>
<string name="no_content_here">No hay contenido</string>
<string name="no_results_found">No hay resultados</string>
Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/values-fr-rFR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,5 @@
<string name="use_nextcloud_color_msg">Utiliser la couleur de l\'instance comme couleur d\'accentuation</string>
<string name="use_dynamic_color">Utiliser des couleurs dynamiques</string>
<string name="use_dynamic_color_msg">Utiliser les couleurs dynamiques du système</string>
<string name="make_a_donation">Faire un don</string>
<string name="changelog">Journal des changements</string>
</resources>
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@
<string name="use_nextcloud_color_msg">Use the instance color as the accent color</string>
<string name="use_dynamic_color">Use dynamic colors</string>
<string name="use_dynamic_color_msg">Use the dynamic colors from the system</string>
<string name="make_a_donation">Make a donation</string>
<string name="changelog">Changelog</string>
<string name="no_content_here">No content here</string>
<string name="no_results_found">No results found</string>
<string name="search_everywhere">Search everywhere</string>
<string name="contribute">Contribute</string>
</resources>

0 comments on commit 118f022

Please sign in to comment.