Skip to content

Commit

Permalink
Merge pull request #156 from shockbytes/prepare-4.2-release
Browse files Browse the repository at this point in the history
Prepare v4.2 release
  • Loading branch information
shockbytes authored Sep 22, 2023
2 parents 949271b + 3c8f341 commit 1118fd4
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 31 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ android {
minSdkVersion 21
targetSdkVersion 33
versionCode 48
versionName "4.1.3"
versionName "4.2.0"

multiDexEnabled true
vectorDrawables.useSupportLibrary = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ class SharedPrefsAnnouncementProvider(
) : AnnouncementProvider {

private val activeAnnouncement: Announcement = Announcement(
key = "suggestions_announcement",
key = "danteX",
titleRes = R.string.announcement_suggestion_title,
descriptionRes = R.string.announcement_suggestion_description,
illustration = Announcement.Illustration.ImageIllustration(R.drawable.ic_suggestions),
action = null
illustration = Announcement.Illustration.LottieIllustration(R.raw.in_development),
action = Announcement.Action.OpenUrl(
actionLabel = R.string.open_github,
url = "https://github.com/shockbytes/DanteX"
)
)

override fun getActiveAnnouncement(): Announcement? {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,6 @@ class SettingsFragment : PreferenceFragmentCompat(), Preference.OnPreferenceChan
}
}

findPreference<Preference>(getString(R.string.prefs_ad_free_medium_article_key))?.apply {
this.setOnPreferenceClickListener {
tracker.track(DanteTrackingEvent.OpenAdFreeMediumArticle)
UrlLauncher.openAdFreeMediumArticle(requireContext())
true
}
}

findPreference<Preference>(getString(R.string.prefs_feedback_key))?.apply {
this.setOnPreferenceClickListener {
MailLauncher.sendMail(
Expand Down Expand Up @@ -156,7 +148,7 @@ class SettingsFragment : PreferenceFragmentCompat(), Preference.OnPreferenceChan
featureFlagPreference?.isVisible = true
featureFlagPreference?.setOnPreferenceClickListener {
DanteUtils.addFragmentToActivity(
parentFragmentManager,
fragmentManager!!,
FeatureFlagConfigFragment.newInstance(),
android.R.id.content,
addToBackStack = true
Expand Down
5 changes: 0 additions & 5 deletions app/src/main/java/at/shockbytes/dante/util/UrlLauncher.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,9 @@ object UrlLauncher {

private const val DANTE_GITHUB_URL = "https://github.com/shockbytes/Dante"
private const val DISCORD_PAGE_URL = "https://discord.gg/EujYrCHjkm"
private const val AD_FREE_MEDIUM_URL = "https://mescht93.medium.com/why-my-apps-remain-ad-free-26d29217bdec"
private const val TOS_URL = "https://dantebooks.com/#/terms"
private const val PRIVACY_URL = "https://dantebooks.com/#/privacy"

fun openAdFreeMediumArticle(context: Context) {
launchUrl(context, AD_FREE_MEDIUM_URL)
}

fun openDanteGithubPage(context: Context) {
launchUrl(context, DANTE_GITHUB_URL)
}
Expand Down
6 changes: 0 additions & 6 deletions app/src/main/res/xml/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,6 @@

<androidx.preference.PreferenceCategory android:title="@string/prefs_category_about">

<androidx.preference.Preference
android:icon="@drawable/ic_settings_ad_free"
android:key="@string/prefs_ad_free_medium_article_key"
android:title="@string/prefs_ad_free_medium_article_title"
android:summary="@string/prefs_ad_free_medium_article_summary" />

<androidx.preference.Preference
android:icon="@drawable/ic_settings_feature_flag"
android:key="@string/prefs_feature_flag_key"
Expand Down
2 changes: 1 addition & 1 deletion core/src/debug/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<resources>

<string name="app_name" translatable="false">Dante BETA</string>
<string name="app_version" translatable="false">4.1.3</string>
<string name="app_version" translatable="false">4.2</string>

</resources>
5 changes: 3 additions & 2 deletions core/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,9 @@
<string name="ask_for_book_deletion_msg">Willst du wirklich das Buch %s von deiner Bibliothek entfernen?</string>
<string name="action_send_mail">Mail senden</string>

<string name="announcement_suggestion_title">Büchervorschläge</string>
<string name="announcement_suggestion_description">Mit dem letzten Update ist es nun möglich anderen Benutzern Bücher vorzuschlagen. Wenn du ein Buch hast, dass du unbedingt mit Lesern auf der ganzen Welt teilen willst, dann kannst du das ganz einfach über das Buchmenü in der Übersicht machen.</string>
<string name="open_github">Github öffnen</string>
<string name="announcement_suggestion_title">Weitere Entwicklung</string>
<string name="announcement_suggestion_description">Es gab nicht viele App-Updates in letzter Zeit. Als einziger Entwickler fehlen schlichtweg die Ressourcen. Der Fokus geht nun weg von einer reinen Android App in Richtung Cross-Plattform Support für iOS und Web: Codename DanteX. Das bedeutet auch, dass Bugs nicht sofort behoben werden. Das ist aber einiges an Arbeit und jede Hilfe ist hier willkommen. Werft gerne einen Blick auf das Github Repository. Eine neue Version von Dante wird voraussichtlich frühestens Mitte 2024 erscheinen. Bis dahin, viel Spaß beim Lesen.\n\nP.S.: Extra Dank für Lockie Richter, der schon bereits bei einigen Features von DanteX geholfen hat.</string>

<string name="mail_subject_translation">Ich will übersetzen helfen</string>
<string name="prefs_category_contribute">Mitwirken</string>
Expand Down
9 changes: 5 additions & 4 deletions core/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<resources>

<string name="app_name" translatable="false">Dante</string>
<string name="app_version" translatable="false">4.1.3</string>
<string name="app_version" translatable="false">4.2</string>

<string name="dante_github_link" translatable="false">https://github.com/shockbytes/Dante</string>

Expand Down Expand Up @@ -72,7 +72,7 @@
<string name="prefs_category_about">About</string>
<string name="prefs_app_version_title">App version</string>
<string name="prefs_developer_title">Developer</string>
<string name="prefs_developer_summary" translatable="false">Shockbytes Studio &#169; 2016-2021</string>
<string name="prefs_developer_summary" translatable="false">Shockbytes Studio &#169; 2016-2023</string>
<string name="prefs_icons_title" translatable="false">Icons</string>
<string name="prefs_icons_summary" translatable="false">www.icons8.com\nwww.flaticon.com</string>

Expand Down Expand Up @@ -379,8 +379,9 @@
<string name="ask_for_book_deletion">Delete book?</string>
<string name="ask_for_book_deletion_msg">Do you want to remove %s from your library?</string>

<string name="announcement_suggestion_title">Suggest books</string>
<string name="announcement_suggestion_description">With the latest update it is now possible to suggest books. If you have a book that you want to share with other readers then simply do that by clicking on the book menu in the overview screen.</string>
<string name="open_github">Open Github</string>
<string name="announcement_suggestion_title">Further Development</string>
<string name="announcement_suggestion_description">There have not been much updates recently. As a single developer, there is just not enough time. The focus shifts now from a pure Android application to a cross-platform approach to support iOS and Web too: Codename DanteX. This also means that some bugs will not be addressed immediately. However, this is quite some work, so I appreciate every help on this topic. Please checkout the Github Repository. A new version of Dante will presumably arrive earliest in the mid of 2024. Until then, happy reading.\n\nP.S.: Special thanks to Lockie Richter who already helped with some features on DanteX.</string>

<string name="mail_subject_translation">I want to help you translate</string>
<string name="action_send_mail">Drop mail</string>
Expand Down

0 comments on commit 1118fd4

Please sign in to comment.