Skip to content

Commit 709885b

Browse files
committed
Merge remote-tracking branch 'origin/main' into fork/cuong-tran/update-backup-progress-bar
# Conflicts: # CHANGELOG.md
2 parents f78fa8f + 1c982c2 commit 709885b

File tree

95 files changed

+1961
-615
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+1961
-615
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ indent_style = space
77
insert_final_newline = true
88
trim_trailing_whitespace = true
99

10-
[*.xml]
10+
[*.{xml,sq,sqm}]
1111
indent_size = 4
1212

1313
# noinspection EditorConfigKeyCorrectness

.github/ISSUE_TEMPLATE/request_feature.yml renamed to .github/ISSUE_TEMPLATE/1_request_feature.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: ⭐ Feature request
22
description: Suggest a feature to improve Mihon
3-
labels: [Feature request]
3+
labels: [feature request]
44
body:
5-
65
- type: textarea
76
id: feature-description
87
attributes:

.github/ISSUE_TEMPLATE/report_issue.yml renamed to .github/ISSUE_TEMPLATE/2_report_issue.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: 🐞 Issue report
22
description: Report an issue in Mihon
3-
labels: [Bug]
3+
labels: [bug]
44
body:
5-
65
- type: textarea
76
id: reproduce-steps
87
attributes:

.github/workflows/build_pull_request.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ jobs:
2626
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2727

2828
- name: Dependency Review
29-
uses: actions/dependency-review-action@3b139cfc5fae8b618d3eae3675e383bb1769c019 # v4.5.0
29+
uses: actions/dependency-review-action@ce3cf9537a52e8119d91fd484ab5b8a807627bf8 # v4.6.0
3030

3131
- name: Set up JDK
32-
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
32+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
3333
with:
3434
java-version: 17
3535
distribution: temurin
3636

3737
- name: Set up gradle
38-
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4.3.0
38+
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4.3.1
3939

4040
- name: Check code format
4141
run: ./gradlew spotlessCheck

.github/workflows/build_push.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ jobs:
2020
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2121

2222
- name: Set up JDK
23-
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
23+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
2424
with:
2525
java-version: 17
2626
distribution: temurin
2727

2828
- name: Set up gradle
29-
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4.3.0
29+
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4.3.1
3030

3131
- name: Check code format
3232
run: ./gradlew spotlessCheck
@@ -96,7 +96,7 @@ jobs:
9696
9797
- name: Create Release
9898
if: startsWith(github.ref, 'refs/tags/') && github.repository == 'mihonapp/mihon'
99-
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1
99+
uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2.2.2
100100
with:
101101
tag_name: ${{ env.VERSION_TAG }}
102102
name: Mihon ${{ env.VERSION_TAG }}

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,43 @@ The format is a modified version of [Keep a Changelog](https://keepachangelog.co
1212

1313
## [Unreleased]
1414
### Added
15+
- Add more Kaomoji for empty/error screens ([@ianfhunter](https://github.com/ianfhunter/)) ([#1909](https://github.com/mihonapp/mihon/pull/1909))
16+
- Add user manga notes ([@imkunet](https://github.com/imkunet), [@AntsyLich](https://github.com/AntsyLich)) ([#428](https://github.com/mihonapp/mihon/pull/428))
17+
- Fix user notes not restoring when manga doesn't exist in DB ([@AntsyLich](https://github.com/AntsyLich)) ([#1945](https://github.com/mihonapp/mihon/pull/1945))
18+
- Add markdown support for manga descriptions ([@Secozzi](https://github.com/Secozzi)) ([#1948](https://github.com/mihonapp/mihon/pull/1948))
19+
- Use simpler markdown flavour ([@Secozzi](https://github.com/Secozzi)) ([#2000](https://github.com/mihonapp/mihon/pull/2000))
20+
- Use Github markdown flavour for Github releases & fix bullet list alignment ([@Secozzi](https://github.com/Secozzi)) ([#2024](https://github.com/mihonapp/mihon/pull/2024))
21+
- Add Nord Theme ([@Riztard](https://github.com/Riztard)) ([#1951](https://github.com/mihonapp/mihon/pull/1951))
22+
- Option to keep read manga when clearing database ([@AwkwardPeak7](https://github.com/AwkwardPeak7)) ([#1979](https://github.com/mihonapp/mihon/pull/1979))
1523
- Showing in-app progress bar for backup restoring & library updating ([@cuong-tran](https://github.com/cuong-tran)) ([#1835](https://github.com/mihonapp/mihon/pull/1835))
1624

25+
### Improved
26+
- Significantly improve browsing speed (near instantaneous) ([@AntsyLich](https://github.com/AntsyLich)) ([#1946](https://github.com/mihonapp/mihon/pull/1946))
27+
- Deduplicate entries when browsing ([@AntsyLich](https://github.com/AntsyLich)) ([#1957](https://github.com/mihonapp/mihon/pull/1957))
28+
- Update non-library manga data when browsing ([@AntsyLich](https://github.com/AntsyLich)) ([#1967](https://github.com/mihonapp/mihon/pull/1967))
29+
- Surface image loading error in Reader ([@AwkwardPeak7](https://github.com/AwkwardPeak7)) ([#1981](https://github.com/mihonapp/mihon/pull/1981))
30+
- Include source headers when opening failed images from reader ([@AwkwardPeak7](https://github.com/AwkwardPeak7)) ([#2004](https://github.com/mihonapp/mihon/pull/2004))
31+
32+
### Changed
33+
- Display all similarly named duplicates in duplicate manga dialogue ([@NarwhalHorns](https://github.com/NarwhalHorns), [@AntsyLich](https://github.com/AntsyLich)) ([#1861](https://github.com/mihonapp/mihon/pull/1861))
34+
- Display chapter count on items in duplicate manga dialogue ([@NarwhalHorns](https://github.com/NarwhalHorns)) ([#1963](https://github.com/mihonapp/mihon/pull/1963))
35+
- Update Facebook and Reddit icons ([@Joehuu](https://github.com/Joehuu)) ([#1994](https://github.com/mihonapp/mihon/pull/1994))
36+
1737
### Fixes
1838
- Fix Bangumi search results including novels ([@MajorTanya](https://github.com/MajorTanya)) ([#1885](https://github.com/mihonapp/mihon/pull/1885))
39+
- Fix next chapter button occasionally jumping to the last page of the current chapter ([@perokhe](https://github.com/perokhe)) ([#1920](https://github.com/mihonapp/mihon/pull/1920))
40+
- Fix page number not appearing when opening chapter ([@perokhe](https://github.com/perokhe)) ([#1936](https://github.com/mihonapp/mihon/pull/1936))
41+
- Fix backup sharing from notifications not working when app is in background ([@JaymanR](https://github.com/JaymanR))([#1929](https://github.com/mihonapp/mihon/pull/1929))
42+
- Fix mark existing duplicate read chapters as read option not working in some cases ([@AntsyLich](https://github.com/AntsyLich)) ([#1944](https://github.com/mihonapp/mihon/pull/1944))
43+
- Fix app bar action tooltips blocking clicks ([@Bartuzen](https://github.com/Bartuzen)) ([#1928](https://github.com/mihonapp/mihon/pull/1928))
44+
- Fix unintended app permissions due to Firebase misconfiguration ([@AntsyLich](https://github.com/AntsyLich)) ([#1960](https://github.com/mihonapp/mihon/pull/1960))
45+
- Fix navigation issue after migrating a duplicated entry from History tab ([@cuong-tran](https://github.com/cuong-tran)) ([#1980](https://github.com/mihonapp/mihon/pull/1980))
46+
- Fix duplicate requests in WebView due to empty reasonPhrase ([@AwkwardPeak7](https://github.com/AwkwardPeak7)) ([#2003](https://github.com/mihonapp/mihon/pull/2003))
47+
- Fix content under source browse screen top appbar is interactable ([@AntsyLich](https://github.com/AntsyLich)) ([#2026](https://github.com/mihonapp/mihon/pull/2026))
48+
- Fix crash when trying use source sort filter without a pre-selection ([@AntsyLich](https://github.com/AntsyLich)) ([#2036](https://github.com/mihonapp/mihon/pull/2036))
49+
50+
### Removed
51+
- Remove Okhttp networking from WebView Screen ([@AwkwardPeak7](https://github.com/AwkwardPeak7)) ([#2020](https://github.com/mihonapp/mihon/pull/2020))
1952

2053
## [v0.18.0] - 2025-03-20
2154
### Added

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
Discover and read manga, webtoons, comics, and more – easier than ever on your Android device.
1111

1212
[![Discord server](https://img.shields.io/discord/1195734228319617024.svg?label=&labelColor=6A7EC2&color=7389D8&logo=discord&logoColor=FFFFFF)](https://discord.gg/mihon)
13-
[![GitHub downloads](https://img.shields.io/github/downloads/mihonapp/mihon/total?label=downloads&labelColor=27303D&color=0D1117&logo=github&logoColor=FFFFFF&style=flat)](https://github.com/mihonapp/mihon/releases)
13+
[![GitHub downloads](https://img.shields.io/github/downloads/mihonapp/mihon/total?label=downloads&labelColor=27303D&color=0D1117&logo=github&logoColor=FFFFFF&style=flat)](https://mihon.app/download)
1414

1515
[![CI](https://img.shields.io/github/actions/workflow/status/mihonapp/mihon/build_push.yml?labelColor=27303D)](https://github.com/mihonapp/mihon/actions/workflows/build_push.yml)
1616
[![License: Apache-2.0](https://img.shields.io/github/license/mihonapp/mihon?labelColor=27303D&color=0877d2)](/LICENSE)
1717
[![Translation status](https://img.shields.io/weblate/progress/mihon?labelColor=27303D&color=946300)](https://hosted.weblate.org/engage/mihon/)
1818

1919
## Download
2020

21-
[![Mihon Stable](https://img.shields.io/github/release/mihonapp/mihon.svg?maxAge=3600&label=Stable&labelColor=06599d&color=043b69)](https://github.com/mihonapp/mihon/releases)
22-
[![Mihon Beta](https://img.shields.io/github/v/release/mihonapp/mihon-preview.svg?maxAge=3600&label=Beta&labelColor=2c2c47&color=1c1c39)](https://github.com/mihonapp/mihon-preview/releases)
21+
[![Mihon Stable](https://img.shields.io/github/release/mihonapp/mihon.svg?maxAge=3600&label=Stable&labelColor=06599d&color=043b69)](https://mihon.app/download)
22+
[![Mihon Beta](https://img.shields.io/github/v/release/mihonapp/mihon-preview.svg?maxAge=3600&label=Beta&labelColor=2c2c47&color=1c1c39)](https://mihon.app/download)
2323

2424
*Requires Android 8.0 or higher.*
2525

app/build.gradle.kts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -262,14 +262,15 @@ dependencies {
262262
exclude(group = "androidx.viewpager", module = "viewpager")
263263
}
264264
implementation(libs.insetter)
265-
implementation(libs.bundles.richtext)
265+
implementation(libs.richeditor.compose)
266266
implementation(libs.aboutLibraries.compose)
267267
implementation(libs.bundles.voyager)
268268
implementation(libs.compose.materialmotion)
269269
implementation(libs.swipe)
270270
implementation(libs.compose.webview)
271271
implementation(libs.compose.grid)
272272
implementation(libs.reorderable)
273+
implementation(libs.bundles.markdown)
273274

274275
// Logging
275276
implementation(libs.logcat)
@@ -288,14 +289,6 @@ dependencies {
288289
}
289290

290291
androidComponents {
291-
beforeVariants { variantBuilder ->
292-
// Disables standardBenchmark
293-
if (variantBuilder.buildType == "benchmark") {
294-
variantBuilder.enable = variantBuilder.productFlavors.containsAll(
295-
listOf("default" to "dev"),
296-
)
297-
}
298-
}
299292
onVariants(selector().withFlavor("default" to "standard")) {
300293
// Only excluding in standard flavor because this breaks
301294
// Layout Inspector's Compose tree

app/src/main/java/eu/kanade/domain/DomainModule.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ import tachiyomi.domain.manga.interactor.GetMangaWithChapters
7979
import tachiyomi.domain.manga.interactor.NetworkToLocalManga
8080
import tachiyomi.domain.manga.interactor.ResetViewerFlags
8181
import tachiyomi.domain.manga.interactor.SetMangaChapterFlags
82+
import tachiyomi.domain.manga.interactor.UpdateMangaNotes
8283
import tachiyomi.domain.manga.repository.MangaRepository
8384
import tachiyomi.domain.release.interactor.GetApplicationRelease
8485
import tachiyomi.domain.release.service.ReleaseService
@@ -129,6 +130,7 @@ class DomainModule : InjektModule {
129130
addFactory { SetMangaViewerFlags(get()) }
130131
addFactory { NetworkToLocalManga(get()) }
131132
addFactory { UpdateManga(get(), get()) }
133+
addFactory { UpdateMangaNotes(get()) }
132134
addFactory { SetMangaCategories(get()) }
133135
addFactory { GetExcludedScanlators(get()) }
134136
addFactory { SetExcludedScanlators(get()) }

app/src/main/java/eu/kanade/domain/manga/model/Manga.kt

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -69,22 +69,6 @@ fun Manga.copyFrom(other: SManga): Manga {
6969
)
7070
}
7171

72-
fun SManga.toDomainManga(sourceId: Long): Manga {
73-
return Manga.create().copy(
74-
url = url,
75-
title = title,
76-
artist = artist,
77-
author = author,
78-
description = description,
79-
genre = getGenres(),
80-
status = status.toLong(),
81-
thumbnailUrl = thumbnail_url,
82-
updateStrategy = update_strategy,
83-
initialized = initialized,
84-
source = sourceId,
85-
)
86-
}
87-
8872
fun Manga.hasCustomCover(coverCache: CoverCache = Injekt.get()): Boolean {
8973
return coverCache.getCustomCoverFile(id).exists()
9074
}

app/src/main/java/eu/kanade/domain/ui/model/AppTheme.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package eu.kanade.domain.ui.model
22

33
import dev.icerock.moko.resources.StringResource
4-
import eu.kanade.tachiyomi.util.system.isReleaseBuildType
54
import tachiyomi.i18n.MR
65

76
enum class AppTheme(val titleRes: StringResource?) {
@@ -10,9 +9,7 @@ enum class AppTheme(val titleRes: StringResource?) {
109
GREEN_APPLE(MR.strings.theme_greenapple),
1110
LAVENDER(MR.strings.theme_lavender),
1211
MIDNIGHT_DUSK(MR.strings.theme_midnightdusk),
13-
14-
// TODO: re-enable for preview
15-
NORD(MR.strings.theme_nord.takeUnless { isReleaseBuildType }),
12+
NORD(MR.strings.theme_nord),
1613
STRAWBERRY_DAIQUIRI(MR.strings.theme_strawberrydaiquiri),
1714
TAKO(MR.strings.theme_tako),
1815
TEALTURQUOISE(MR.strings.theme_tealturquoise),

app/src/main/java/eu/kanade/presentation/components/AppBar.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ fun AppBarActions(
201201
}
202202
},
203203
state = rememberTooltipState(),
204+
focusable = false,
204205
) {
205206
IconButton(
206207
onClick = it.onClick,
@@ -225,6 +226,7 @@ fun AppBarActions(
225226
}
226227
},
227228
state = rememberTooltipState(),
229+
focusable = false,
228230
) {
229231
IconButton(
230232
onClick = { showMenu = !showMenu },
@@ -352,6 +354,7 @@ fun SearchToolbar(
352354
}
353355
},
354356
state = rememberTooltipState(),
357+
focusable = false,
355358
) {
356359
IconButton(
357360
onClick = onClick,
@@ -371,6 +374,7 @@ fun SearchToolbar(
371374
}
372375
},
373376
state = rememberTooltipState(),
377+
focusable = false,
374378
) {
375379
IconButton(
376380
onClick = {

0 commit comments

Comments
 (0)