From b9e98c8d75648fdb7ec20cf6d631ad4a85e21970 Mon Sep 17 00:00:00 2001
From: kalarina
-
@@ -52,7 +55,7 @@
- **[F-Droid](https://f-droid.org/packages/cc.skysparkle.fogwave/)** — install and update through the F-Droid client.
- **[Obtainium](https://apps.obtainium.imranr.dev/redirect?r=obtainium://add/https://github.com/kalarina-bit/Fogwave)** — installs the APK straight from GitHub releases and keeps it up to date.
-- **Manually** — download the latest APK from [GitHub](https://github.com/kalarina-bit/Fogwave/releases/latest) or [Gitea](https://git.skysparkle.cc/kalarina/Fogwave/releases), allow installs from unknown sources for the app you open it with (Settings → Apps → Special access → Install unknown apps), then open the `.apk` and confirm.
+- **Manually** — download the latest APK from [GitHub Releases](https://github.com/kalarina-bit/Fogwave/releases/latest), allow installs from unknown sources for the app you open it with (Settings → Apps → Special access → Install unknown apps), then open the `.apk` and confirm.
## db^>V5dMPa=jIV;d!4dwGymdj0XB7&25m1LAJ1!tM3r#&ah?2Mg;e?
zPn@E^iDw}TNi &;r}VHhkcgtL7anZ{M)8DP{VUAP3TYhUcM>
zcLNXCnt2R8m#66pHmBD5Z4WhsC==BSpDM{xaa2xq2cLncLY@3)A<3z=e`hP~(J+4^
z9>iS4(c_7GQ49MG;&+S2gDved)&Kc!FDGv>`XUK|swrCT^RA#JP2WB;bR$DLLS;9N
zH|C=~>`#K|FYVbseaSWV 8x6r!4f10_fDot67%sVXBm88E(}+zb?C}B~O8sWsE`r}#fMG0DS7f|iveYB;
z-$7jpc<;?PU0BQiT6Y2^c9O4h3#*~RXn}}GP>He;oK60dE3e!SJfTRjq!EExj5c5-
zwQJtztsMp>M@}bStT>PT;;}Yq6=z<7sIaZ!bT2p(QE*rQNYFfJeiCBTI<~Mseex-Y
zMmz#v3KqVXveq4DAsnobyG*2S;}2BFz+d2BRz(n7M7g4cF9APJg@9WBXp8BM&7MKY
zANrm-l(Xx1dM{(E=|q$5g4bdL3%|YBi2ODwFO%u*1KPINMRi6m=v6_WGVT#0Q>BM5
z4SNtqdU4h#)N&GW8btu%4kJi{Mm?jT*=ANunOReH^PBM_0TJGdrs?ihRbqm-wuF!w
z$02qtIveg}sY(Nhq6H&;HdI6;J3nWZNFM9yHyhs*U^kQbVVqUoj>fkUr@r7nSVeYe
zrii^@r&-=Sy~0L5IA0qWURxTf#lGynu@Ovrosr>tf8_>TatUJl?&-z5eRsL)%x>wy
zV2c_OfM=XU90nwzB47F^=L_fg1UPozW9xzz2meewveHeN>K0t=!es53pv8wskWdw#
zU3z#Rbj5ZP-66+%Q9l!hzQB}B^|{_IjzVgk9p8Qd&N}5+rRNf3D_}LRWY((?FBHvm
z4Z*$JVr)Y%n3}wpr|+`IZfOGmDl6`kj*Y2R#)IbSuvKwfDb%A-0>)L4?~caRCa0}6
zk_=b=boS>99tGX6x;ZPbiI2Xq5Pd1wcA7a^E;}y|8SsX-jF(g>jqI004{HOmclP&2
zj2Ks>p>oUzy|rri5&48N+^w*0p9qi;eu+MKrGiL{)i2HPKgC3EX`|`ocWw@vaRBeB
zN2g4h;~{80E?C`4I52yFyKhZC8_kX0;Xuw`ID8)Av%e;ih`jjno??;lMk3#E4;@cz
zS#()Dpk~t1pxU<8TUlvSnhX?bnFx|Bo2Uqz$z8r6OGN=W1RWWBn=o8jWa7-6kI?-I
zkeH;+E|d4mXa5dZY)i|KkV%8-cm?`e-z$N6P7S;r*RY}|{udK5MVjbv;SY{W;OUxK
zM*(adzG$9#A8^K208OT4{VZ%CYORnk_u6aZkgP?7GC{s=+*L?JdG@Nh+%3NU2&J_(jH
zJL}KRqGzZG_zFK*eF25Uj9*~D!5S;0iXt1!kn+ p4C`hPcOG
zsuZFt48I{PRw~5DEVC#C0{Yt`rG49 |YJOMb5m89b$v$B
Verifying a download
@@ -88,7 +91,13 @@ Release builds are signed only when a keystore is supplied through the `KEYSTORE
## 🤝 Contributing
-Bug reports, station suggestions, translation fixes and pull requests are welcome in the [issue tracker](https://git.skysparkle.cc/kalarina/Fogwave/issues). Please read [CONTRIBUTING.md](CONTRIBUTING.md) first — it explains what fits the project and how to send changes. To open an issue or a pull request, [create an account](https://git.skysparkle.cc/user/sign_up) on this Gitea.
+Bug reports, station suggestions, translation fixes and pull requests are welcome in the [issue tracker](https://github.com/kalarina-bit/Fogwave/issues). Please read [CONTRIBUTING.md](CONTRIBUTING.md) first — it explains what fits the project and how to send changes.
+
+## ☕ Support
+
+Fogwave is free, open source and has no ads. If it is useful to you, you can support the project on [Ko-fi](https://ko-fi.com/skysparkle) — donations pay for the Skysparkle server and the time spent on the apps.
+
+
## 📄 License
diff --git a/app/src/main/java/cc/skysparkle/fogwave/ui/components/AboutPanel.kt b/app/src/main/java/cc/skysparkle/fogwave/ui/components/AboutPanel.kt
index 5f6be60..acf2ddc 100644
--- a/app/src/main/java/cc/skysparkle/fogwave/ui/components/AboutPanel.kt
+++ b/app/src/main/java/cc/skysparkle/fogwave/ui/components/AboutPanel.kt
@@ -49,7 +49,8 @@ import cc.skysparkle.fogwave.ui.theme.AppThemeState
import cc.skysparkle.fogwave.ui.theme.GeoColors
import cc.skysparkle.fogwave.ui.theme.LocalGeoColors
-private const val REPOSITORY_URL = "https://git.skysparkle.cc/kalarina/Fogwave"
+private const val REPOSITORY_URL = "https://github.com/kalarina-bit/Fogwave"
+private const val DONATE_URL = "https://ko-fi.com/skysparkle"
private const val PRIVACY_POLICY_URL = "https://skysparkle.cc/privacy?lang=en"
@Composable
@@ -64,6 +65,7 @@ fun AboutPanel(modifier: Modifier = Modifier) {
verticalArrangement = Arrangement.spacedBy(10.dp)
) {
AppHeader()
+ SupportCard(onDonate = { context.openUrl(DONATE_URL) })
SectionLabel(stringResource(R.string.about_appearance))
GroupCard {
@@ -168,6 +170,57 @@ private fun AppHeader() {
}
}
+/** Asks for a donation: the app icon, a short note and one button. */
+@Composable
+private fun SupportCard(onDonate: () -> Unit) {
+ val colors = LocalGeoColors.current
+ GroupCard(contentPadding = 16.dp) {
+ Row(
+ verticalAlignment = Alignment.CenterVertically,
+ horizontalArrangement = Arrangement.spacedBy(14.dp)
+ ) {
+ Box(
+ modifier = Modifier
+ .size(44.dp)
+ .clip(RoundedCornerShape(14.dp))
+ .background(colors.primaryContainer),
+ contentAlignment = Alignment.Center
+ ) {
+ AppIcon(resId = R.drawable.ic_fogwave_logo, size = 32.dp)
+ }
+ Column(modifier = Modifier.weight(1f)) {
+ RowTitle(stringResource(R.string.support_title))
+ RowSubtitle(stringResource(R.string.support_text), maxLines = 4)
+ }
+ }
+ Row(
+ modifier = Modifier
+ .padding(top = 14.dp)
+ .fillMaxWidth()
+ .height(46.dp)
+ .clip(CircleShape)
+ .background(colors.accentLavender)
+ .clickable(
+ onClickLabel = stringResource(R.string.about_open_in_browser),
+ role = Role.Button,
+ onClick = onDonate
+ )
+ .testTag("donate_button"),
+ verticalAlignment = Alignment.CenterVertically,
+ horizontalArrangement = Arrangement.spacedBy(8.dp, Alignment.CenterHorizontally)
+ ) {
+ AppIcon(resId = R.drawable.ic_heart_fill, tint = colors.onAccentLavender, size = 18.dp)
+ Text(
+ text = stringResource(R.string.support_button),
+ style = MaterialTheme.typography.labelLarge.copy(
+ fontWeight = FontWeight.Bold,
+ color = colors.onAccentLavender
+ )
+ )
+ }
+ }
+}
+
@Composable
private fun StylePicker() {
val context = LocalContext.current
diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml
index 31c0d55..487fcdf 100644
--- a/app/src/main/res/values-de/strings.xml
+++ b/app/src/main/res/values-de/strings.xml
@@ -129,4 +129,7 @@
s`q#BP{3+Vs(#>`yC%9IGi2WGwKYAnEe}E2L4+Kf!
ze-kX8P~3e_Fj;*u_2Z!)PCNtICm9S>k9c(fjR<5#5*3PfX6y%EliI1?1Y_H
Oj>YD%P#B!sih0hjFZdY
zAoiM8?i{X{JRK~`u*f@I(p0Z+7mJlT`PzPWF(3AK#Wmr2`O+Jnme|poz26s*GZBw9
z1MdeYW72@Pm3lL9&6cbrgJv1E_6DSM6kbfCNu}AuLlJ`nW!kpptA(pX;(>@|X(
)&F~Yp!BEm4hmZb5%IG}7=nhRTv
zEG5L#Zap-zdrU7{mAp2mSvX$nfZ&wgC;Emko`e6JfY(7gkq1g(5TOV=Rxc2dxDU$V
zSi;z>j>4XDic}+2R{q(;DK