Skip to content

Commit

Permalink
about: add donation link
Browse files Browse the repository at this point in the history
Add donation link to the about page.
  • Loading branch information
OxygenCobalt committed Jan 7, 2024
1 parent 2af90c2 commit 82952a2
Show file tree
Hide file tree
Showing 35 changed files with 129 additions and 40 deletions.
13 changes: 7 additions & 6 deletions app/src/main/java/org/oxycblt/auxio/settings/AboutFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ class AboutFragment : ViewBindingFragment<FragmentAboutBinding>() {
binding.aboutCode.setOnClickListener { requireContext().openInBrowser(LINK_SOURCE) }
binding.aboutWiki.setOnClickListener { requireContext().openInBrowser(LINK_WIKI) }
binding.aboutLicenses.setOnClickListener { requireContext().openInBrowser(LINK_LICENSES) }
binding.aboutAuthor.setOnClickListener { requireContext().openInBrowser(LINK_AUTHOR) }
binding.aboutProfile.setOnClickListener { requireContext().openInBrowser(LINK_PROFILE) }
binding.aboutDonate.setOnClickListener { requireContext().openInBrowser(LINK_DONATE) }
binding.aboutSupportersPromo.setOnClickListener {
requireContext().openInBrowser(LINK_DONATE)
}

// VIEWMODEL SETUP
collectImmediately(musicModel.statistics, ::updateStatistics)
Expand All @@ -88,13 +92,10 @@ class AboutFragment : ViewBindingFragment<FragmentAboutBinding>() {
}

private companion object {
/** The URL to the source code. */
const val LINK_SOURCE = "https://github.com/OxygenCobalt/Auxio"
/** The URL to the app wiki. */
const val LINK_WIKI = "$LINK_SOURCE/wiki"
/** The URL to the licenses wiki page. */
const val LINK_LICENSES = "$LINK_WIKI/Licenses"
/** The URL to the app author. */
const val LINK_AUTHOR = "https://github.com/OxygenCobalt"
const val LINK_PROFILE = "https://github.com/OxygenCobalt"
const val LINK_DONATE = "https://github.com/sponsors/OxygenCobalt"
}
}
10 changes: 10 additions & 0 deletions app/src/main/res/drawable/ic_donate_24.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M480,840L422,788Q321,697 255,631Q189,565 150,512.5Q111,460 95.5,416Q80,372 80,326Q80,232 143,169Q206,106 300,106Q352,106 399,128Q446,150 480,190Q514,150 561,128Q608,106 660,106Q754,106 817,169Q880,232 880,326Q880,372 864.5,416Q849,460 810,512.5Q771,565 705,631Q639,697 538,788L480,840ZM480,732Q576,646 638,584.5Q700,523 736,477.5Q772,432 786,396.5Q800,361 800,326Q800,266 760,226Q720,186 660,186Q613,186 573,212.5Q533,239 518,280L518,280L442,280L442,280Q427,239 387,212.5Q347,186 300,186Q240,186 200,226Q160,266 160,326Q160,361 174,396.5Q188,432 224,477.5Q260,523 322,584.5Q384,646 480,732ZM480,459Q480,459 480,459Q480,459 480,459Q480,459 480,459Q480,459 480,459Q480,459 480,459Q480,459 480,459Q480,459 480,459Q480,459 480,459L480,459L480,459L480,459Q480,459 480,459Q480,459 480,459Q480,459 480,459Q480,459 480,459Q480,459 480,459Q480,459 480,459Q480,459 480,459Q480,459 480,459Z"/>
</vector>
77 changes: 75 additions & 2 deletions app/src/main/res/layout/fragment_about.xml
Original file line number Diff line number Diff line change
Expand Up @@ -152,19 +152,92 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/about_wiki" />


</androidx.constraintlayout.widget.ConstraintLayout>
</com.google.android.material.card.MaterialCardView>

<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_medium">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingBottom="@dimen/spacing_tiny">

<TextView
android:id="@+id/about_author"
style="@style/Widget.Auxio.TextView.Header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/lbl_author_name"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />

<TextView
android:id="@+id/about_profile"
style="@style/Widget.Auxio.TextView.Icon.Clickable"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/lng_author"
android:text="@string/lbl_author_name"
app:drawableStartCompat="@drawable/ic_author_24"
app:drawableTint="?attr/colorControlNormal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/about_licenses" />

</androidx.constraintlayout.widget.ConstraintLayout>
<TextView
android:id="@+id/about_donate"
style="@style/Widget.Auxio.TextView.Icon.Clickable"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/lbl_donate"
app:drawableStartCompat="@drawable/ic_donate_24"
app:drawableTint="?attr/colorControlNormal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/about_licenses" />

</LinearLayout>

</com.google.android.material.card.MaterialCardView>

<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_medium">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingBottom="@dimen/spacing_tiny">

<TextView
android:id="@+id/about_supporters"
style="@style/Widget.Auxio.TextView.Header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/lbl_supporters"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />

<TextView
android:id="@+id/about_supporters_promo"
style="@style/Widget.Auxio.TextView.Icon.Clickable"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/lng_supporters_promo"
android:textStyle="italic"
android:textAppearance="@style/TextAppearance.Auxio.BodyMedium"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/about_licenses" />

</LinearLayout>

</com.google.android.material.card.MaterialCardView>

<com.google.android.material.card.MaterialCardView
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-ar-rIQ/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<string name="lbl_version">الإصدار</string>
<string name="lbl_code">عرض على الكود في Github</string>
<string name="lbl_licenses">التراخيص</string>
<string name="lng_author">تمت برمجة التطبيق من قبل الكساندر كابيهارت</string>
<string name="lbl_author_name">تمت برمجة التطبيق من قبل الكساندر كابيهارت</string>
<!-- Settings namespace | Settings-related labels -->
<string name="set_root_title">الإعدادات</string>
<string name="set_ui">المظهر</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-be/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<string name="set_personalize">Персаналізаваць</string>
<string name="lng_observing">Адсочванне змяненняў у вашай музычнай бібліятэцы…</string>
<string name="lng_queue_added">Дададзены ў чаргу</string>
<string name="lng_author">Распрацавана Аляксандрам Кейпхартам</string>
<string name="lbl_author_name">Распрацавана Аляксандрам Кейпхартам</string>
<string name="set_bar_action">Карыстальніцкае дзеянне панэлі прайгравання</string>
<string name="set_play_song_from_album">Прайграць з альбома</string>
<string name="set_separators_comma">Коска (,)</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-cs/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<string name="lbl_version">Verze</string>
<string name="lbl_code">Zdrojový kód</string>
<string name="lbl_licenses">Licence</string>
<string name="lng_author">Vytvořil Alexander Capehart</string>
<string name="lbl_author_name">Vytvořil Alexander Capehart</string>
<string name="lbl_library_counts">Statistiky knihovny</string>
<!-- Settings namespace | Settings-related labels -->
<string name="set_root_title">Nastavení</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<string name="lbl_version">Version</string>
<string name="lbl_code">Quellcode</string>
<string name="lbl_licenses">Lizenzen</string>
<string name="lng_author">Entwickelt von Alexander Capehart</string>
<string name="lbl_author_name">Entwickelt von Alexander Capehart</string>
<!-- Settings namespace | Settings-related labels -->
<string name="set_root_title">Einstellungen</string>
<string name="set_ui">Erscheinungsbild</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<string name="lbl_version">Versión</string>
<string name="lbl_code">Código fuente</string>
<string name="lbl_licenses">Licencias</string>
<string name="lng_author">Desarrollado por Alexander Capehart</string>
<string name="lbl_author_name">Desarrollado por Alexander Capehart</string>
<!-- Settings namespace | Settings-related labels -->
<string name="set_root_title">Ajustes</string>
<string name="set_ui">Aspecto y Comportamiento</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-fi/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
</plurals>
<string name="lbl_observing">Tarkkaillaan musiikkikirjastoa</string>
<string name="lbl_code">Lähdekoodi</string>
<string name="lng_author">Kehittänyt Alexander Capehart</string>
<string name="lbl_author_name">Kehittänyt Alexander Capehart</string>
<string name="fmt_lib_total_duration">Kesto yhteensä: %s</string>
<string name="lbl_album_live">Live-albumi</string>
<string name="lbl_album_remix">Remix-albumi</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-fil/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<string name="lbl_version">Ulat</string>
<string name="lbl_code">Tignan sa GitHub</string>
<string name="lbl_licenses">Mga Lisensya</string>
<string name="lng_author">Binuo ni OxygenCobalt</string>
<string name="lbl_author_name">Binuo ni OxygenCobalt</string>
<string name="lbl_library_counts">Istatistika ng library</string>
<string name="set_root_title">Mga Setting</string>
<string name="set_ui">Hitsura</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<string name="lbl_version">Version</string>
<string name="lbl_code">Code source</string>
<string name="lbl_licenses">Licences</string>
<string name="lng_author">Développé par Alexandre Capehart</string>
<string name="lbl_author_name">Développé par Alexandre Capehart</string>
<!-- Settings namespace | Settings-related labels -->
<string name="set_root_title">Paramètres</string>
<string name="set_ui">Apparence</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-gl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
<string name="lbl_sample_rate">Frecuencia de mostraxe</string>
<string name="lbl_about">Acerca de</string>
<string name="lng_observing">Monitorizando cambios na túa biblioteca…</string>
<string name="lng_author">Desenvolvido por Alexander Capehart</string>
<string name="lbl_author_name">Desenvolvido por Alexander Capehart</string>
<string name="set_ui">Aspecto e sensación</string>
<string name="set_round_mode">Modo redondo</string>
<string name="set_round_mode_desc">Habilita as esquinas redondeadas en elementos adicionais da interface de usuario (require que as portadas dos álbums estean redondeadas)</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-hi/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
<string name="lbl_shuffle_shortcut_short">शफल करें</string>
<string name="lbl_state_restored">स्थिति बहाल</string>
<string name="lng_playlist_renamed">प्लेलिस्ट का नाम बदला गया</string>
<string name="lng_author">अलेक्जेंडर कैपहार्ट द्वारा विकसित</string>
<string name="lbl_author_name">अलेक्जेंडर कैपहार्ट द्वारा विकसित</string>
<string name="set_separators_desc">एकाधिक टैग मानों को निरूपित करने वाले वर्ण कॉन्फ़िगर करें</string>
<string name="set_separators_comma">अल्पविराम (,)</string>
<string name="set_separators_slash">स्लैश (/)</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-hr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<string name="lbl_version">Inačica</string>
<string name="lbl_code">Izvorni kod</string>
<string name="lbl_licenses">Licencije</string>
<string name="lng_author">Programer: Alexander Capehart</string>
<string name="lbl_author_name">Programer: Alexander Capehart</string>
<string name="lbl_library_counts">Statistika zbirke</string>
<string name="set_ui">Izgled</string>
<string name="set_theme_day">Svjetla</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-hu/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
<string name="lbl_save">Ment</string>
<string name="lbl_reset">Alaphelyzet</string>
<string name="lbl_state_wiped">Állapot törölve</string>
<string name="lng_author">Fejlesztő Alexander Capehart</string>
<string name="lbl_author_name">Fejlesztő Alexander Capehart</string>
<string name="set_play_song_from_all">Lejátszás az összes dalból</string>
<string name="set_play_song_from_genre">Lejátszás műfajból</string>
<string name="set_content">Tartalom</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-in/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<string name="lbl_disc">Disk</string>
<string name="lbl_song_detail">Lihat properti</string>
<string name="lbl_format">Format</string>
<string name="lng_author">Dikembangkan oleh Alexander Capehart</string>
<string name="lbl_author_name">Dikembangkan oleh Alexander Capehart</string>
<string name="lbl_library_counts">Statistik pustaka</string>
<string name="set_notif_action">Tindakan notifikasi khusus</string>
<string name="lbl_shuffle_shortcut_short">Acak</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-it/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<string name="lbl_version">Versione</string>
<string name="lbl_code">Codice sorgente</string>
<string name="lbl_licenses">Licenze</string>
<string name="lng_author">Sviluppato da Alexander Capehart</string>
<string name="lbl_author_name">Sviluppato da Alexander Capehart</string>
<string name="lbl_library_counts">Statistiche libreria</string>
<!-- Settings namespace | Settings-related labels -->
<string name="set_root_title">Opzioni</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-iw/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<string name="lng_indexing">ספריית המוזיקה שלך נטענת…</string>
<string name="lng_observing">ספריית המוזיקה שלך נסרקת לאיתור שינויים…</string>
<string name="lng_queue_added">התווסף לתור</string>
<string name="lng_author">מפותח על ידי אלכסנדר קייפהארט</string>
<string name="lbl_author_name">מפותח על ידי אלכסנדר קייפהארט</string>
<string name="lng_search_library">חיפוש בספרייה שלך…</string>
<string name="set_ui">מראה ותחושה</string>
<string name="set_ui_desc">שינוי ערכת הנושא והצבעים של היישום</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-ja/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
<string name="lbl_album_details">アルバムに移動</string>
<string name="lbl_props">曲のプロパティ</string>
<string name="lng_queue_added">再生待ちに追加</string>
<string name="lng_author">開発者 アレクサンダー・ケイプハート (Alexander Capehart)</string>
<string name="lbl_author_name">開発者 アレクサンダー・ケイプハート (Alexander Capehart)</string>
<string name="desc_artist_image">%s のアーティスト画像</string>
<string name="lbl_compilations">オムニバス</string>
<string name="lbl_compilation">オムニバス</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-ko/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<string name="lbl_version">버전</string>
<string name="lbl_code">소스 코드</string>
<string name="lbl_licenses">라이선스</string>
<string name="lng_author">Alexander Capehart가 개발</string>
<string name="lbl_author_name">Alexander Capehart가 개발</string>
<string name="lbl_library_counts">라이브러리 통계</string>
<!-- Settings namespace | Settings-related labels -->
<string name="set_root_title">설정</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-lt/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
<string name="lbl_live_group">Gyvai</string>
<string name="set_headset_autoplay_desc">Visada pradėti groti, kai ausinės yra prijungtos (gali neveikti visuose įrenginiuose)</string>
<string name="cdc_ogg">Ogg garsas</string>
<string name="lng_author">Sukūrė Alexanderis Capehartas (angl. Alexander Capehart)</string>
<string name="lbl_author_name">Sukūrė Alexanderis Capehartas (angl. Alexander Capehart)</string>
<string name="set_replay_gain_mode_track">Pageidauti takelį</string>
<string name="err_no_dirs">Jokių aplankų</string>
<string name="err_bad_dir">Šis aplankas nepalaikomas</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-nb-rNO/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
<string name="lbl_track">Spor</string>
<string name="lbl_date_added">Dato tillagt</string>
<string name="lbl_sort">Sorter</string>
<string name="lng_author">Utviklet av Alexander Capehart</string>
<string name="lbl_author_name">Utviklet av Alexander Capehart</string>
<string name="lng_search_library">Søk i biblioteket ditt …</string>
<string name="set_root_title">Innstillinger</string>
<string name="lng_playlist_created">Spilleliste opprettet</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-nl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<string name="lbl_version">Versie</string>
<string name="lbl_code">Broncode</string>
<string name="lbl_licenses">Licenties</string>
<string name="lng_author">Ontwikkeld door Alexander Capehart</string>
<string name="lbl_author_name">Ontwikkeld door Alexander Capehart</string>
<!-- Settings namespace | Settings-related labels -->
<string name="set_root_title">Instellingen</string>
<string name="set_ui">Uiterlijk en gevoel</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-pa/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<string name="lng_widget">ਸੰਗੀਤ ਪਲੇਬੈਕ ਵੇਖੋ ਅਤੇ ਕੰਟਰੋਲ ਕਰੋ</string>
<string name="lng_indexing">ਤੁਹਾਡੀ ਸੰਗੀਤ ਲਾਇਬ੍ਰੇਰੀ ਨੂੰ ਲੋਡ ਕੀਤਾ ਜਾ ਰਿਹਾ ਹੈ…</string>
<string name="lng_queue_added">ਕਤਾਰ ਵਿੱਚ ਸ਼ਾਮਿਲ ਕੀਤਾ</string>
<string name="lng_author">ਅਲੈਗਜ਼ੈਂਡਰ ਕੇਪਹਾਰਟ ਦੁਆਰਾ ਵਿਕਸਿਤ</string>
<string name="lbl_author_name">ਅਲੈਗਜ਼ੈਂਡਰ ਕੇਪਹਾਰਟ ਦੁਆਰਾ ਵਿਕਸਿਤ</string>
<string name="lng_search_library">ਆਪਣੀ ਲਾਇਬ੍ਰੇਰੀ ਖੋਜੋ…</string>
<string name="set_root_title">ਸੈਟਿੰਗਾਂ</string>
<string name="set_ui">ਦਿੱਖ ਅਤੇ ਛੋਹ</string>
Expand Down
Loading

0 comments on commit 82952a2

Please sign in to comment.