Skip to content

Commit 4c08f61

Browse files
cuong-tranAntsyLich
andauthoredFeb 18, 2025··
Fix: ktlint config for SY code (#712)
* Add more editor configs and move ktlint config to it (mihonapp/mihon#1731) (cherry picked from commit 34d1e6fa278846dd8eb6ea82c936818d4610d3c2) * more ktlint config * fix compile * restore comment-wrapping * restore all of them * disable in gradle.kts * cleanup * remove filenamktlint_standard_filename * fix filename * remove unused EhAssets * ktlint_standard_multiline-expression-wrapping * property-naming & function-naming * ktlint_standard_argument-list-wrapping * fix argument-list-wrapping * Improve in case source is null related to commit 343cd37 * comment * comment * comment * comment * comment * comment * comment * comment * Revert "Improve in case source is null" This reverts commit 08e317b. * Revert "remove unused EhAssets" This reverts commit e2cfc3e. --------- Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
1 parent 56a15d1 commit 4c08f61

File tree

39 files changed

+124
-69
lines changed

39 files changed

+124
-69
lines changed
 

‎.editorconfig

+7
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,10 @@ ktlint_standard_class-signature = disabled
2626
ktlint_standard_discouraged-comment-location = disabled
2727
ktlint_standard_function-expression-body = disabled
2828
ktlint_standard_function-signature = disabled
29+
30+
# Avoid ktlint format messy code from SY
31+
ktlint_standard_max-line-length = disabled
32+
ktlint_standard_comment-wrapping = disabled
33+
ktlint_standard_type-argument-comment = disabled
34+
ktlint_standard_value-argument-comment = disabled
35+
ktlint_standard_value-parameter-comment = disabled

‎app/src/main/java/eu/kanade/domain/chapter/model/ChapterFilter.kt

+7-3
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ import tachiyomi.source.local.isLocal
1515
*/
1616
fun List<Chapter>.applyFilters(
1717
manga: Manga,
18-
downloadManager: DownloadManager, /* SY --> */
19-
mergedManga: Map<Long, Manga>, /* SY <-- */
18+
downloadManager: DownloadManager,
19+
// SY -->
20+
mergedManga: Map<Long, Manga>,
21+
// SY <--
2022
): List<Chapter> {
2123
val isLocalManga = manga.isLocal()
2224
val unreadFilter = manga.unreadFilter
@@ -34,7 +36,9 @@ fun List<Chapter>.applyFilters(
3436
val downloaded = downloadManager.isChapterDownloaded(
3537
chapter.name,
3638
chapter.scanlator,
37-
/* SY --> */ manga.ogTitle /* SY <-- */,
39+
// SY -->
40+
manga.ogTitle,
41+
// SY <--
3842
manga.source,
3943
)
4044
downloaded || isLocalManga

‎app/src/main/java/eu/kanade/presentation/library/components/SyncFavoritesProgressDialog.kt

+6-13
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ fun SyncFavoritesProgressDialog(
4242
text = context.stringResource(
4343
SYMR.strings.favorites_sync_bad_library_state,
4444
context.stringResource(
45-
SYMR.strings.favorites_sync_gallery_in_multiple_categories, status.mangaTitle,
45+
SYMR.strings.favorites_sync_gallery_in_multiple_categories,
46+
status.mangaTitle,
4647
status.categories.joinToString(),
4748
),
4849
),
@@ -62,14 +63,10 @@ fun SyncFavoritesProgressDialog(
6263
when (it) {
6364
is FavoritesSyncStatus.SyncError.GallerySyncError.GalleryAddFail ->
6465
context.stringResource(SYMR.strings.favorites_sync_failed_to_add_to_local) +
65-
context.stringResource(
66-
SYMR.strings.favorites_sync_failed_to_add_to_local_error, it.title, it.reason,
67-
)
66+
context.stringResource(SYMR.strings.favorites_sync_failed_to_add_to_local_error, it.title, it.reason)
6867
is FavoritesSyncStatus.SyncError.GallerySyncError.InvalidGalleryFail ->
6968
context.stringResource(SYMR.strings.favorites_sync_failed_to_add_to_local) +
70-
context.stringResource(
71-
SYMR.strings.favorites_sync_failed_to_add_to_local_unknown_type, it.title, it.url,
72-
)
69+
context.stringResource(SYMR.strings.favorites_sync_failed_to_add_to_local_unknown_type, it.title, it.url)
7370
is FavoritesSyncStatus.SyncError.GallerySyncError.UnableToAddGalleryToRemote ->
7471
context.stringResource(SYMR.strings.favorites_sync_unable_to_add_to_remote, it.title, it.gid)
7572
FavoritesSyncStatus.SyncError.GallerySyncError.UnableToDeleteFromRemote ->
@@ -100,14 +97,10 @@ fun SyncFavoritesProgressDialog(
10097
context.stringResource(SYMR.strings.favorites_sync_unknown_error, status.message)
10198
is FavoritesSyncStatus.SyncError.GallerySyncError.GalleryAddFail ->
10299
context.stringResource(SYMR.strings.favorites_sync_failed_to_add_to_local) +
103-
context.stringResource(
104-
SYMR.strings.favorites_sync_failed_to_add_to_local_error, status.title, status.reason,
105-
)
100+
context.stringResource(SYMR.strings.favorites_sync_failed_to_add_to_local_error, status.title, status.reason)
106101
is FavoritesSyncStatus.SyncError.GallerySyncError.InvalidGalleryFail ->
107102
context.stringResource(SYMR.strings.favorites_sync_failed_to_add_to_local) +
108-
context.stringResource(
109-
SYMR.strings.favorites_sync_failed_to_add_to_local_unknown_type, status.title, status.url,
110-
)
103+
context.stringResource(SYMR.strings.favorites_sync_failed_to_add_to_local_unknown_type, status.title, status.url)
111104
is FavoritesSyncStatus.SyncError.GallerySyncError.UnableToAddGalleryToRemote ->
112105
context.stringResource(SYMR.strings.favorites_sync_unable_to_add_to_remote, status.title, status.gid)
113106
FavoritesSyncStatus.SyncError.GallerySyncError.UnableToDeleteFromRemote ->

‎app/src/main/java/eu/kanade/presentation/manga/components/MangaCover.kt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@file:Suppress("PropertyName")
2+
13
package eu.kanade.presentation.manga.components
24

35
import androidx.annotation.ColorInt

‎app/src/main/java/eu/kanade/presentation/manga/components/PagePreviews.kt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@file:Suppress("FunctionName")
2+
13
package eu.kanade.presentation.manga.components
24

35
import androidx.compose.foundation.clickable

‎app/src/main/java/eu/kanade/presentation/more/settings/screen/about/WhatsNewDialog.kt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@file:Suppress("PropertyName")
2+
13
package eu.kanade.presentation.more.settings.screen.about
24

35
import androidx.compose.foundation.layout.Arrangement

‎app/src/main/java/eu/kanade/tachiyomi/data/backup/create/creators/MangaBackupCreator.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ class MangaBackupCreator(
4848
getCustomMangaInfo.get(manga.id)
4949
} else {
5050
null
51-
}, /* SY <-- */
51+
},
52+
// SY <--
5253
)
5354

5455
// SY -->

‎app/src/main/java/eu/kanade/tachiyomi/data/backup/restore/restorers/CategoriesRestorer.kt

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ class CategoriesRestorer(
2727
val order = nextOrder++
2828
handler.awaitOneExecutable {
2929
categoriesQueries.insert(
30-
it.name, order, it.flags,
30+
it.name,
31+
order,
32+
it.flags,
3133
// KMK -->
3234
hidden = if (it.hidden) 1L else 0L,
3335
// KMK <--

‎app/src/main/java/eu/kanade/tachiyomi/data/coil/PagePreviewFetcher.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ class PagePreviewFetcher(
124124

125125
private suspend fun executeNetworkRequest(): Response {
126126
val response = sourceLazy.value?.fetchPreviewImage(
127-
page.getPagePreviewInfo(), getCacheControl(),
127+
page.getPagePreviewInfo(),
128+
getCacheControl(),
128129
) ?: callFactoryLazy.value.newCall(newRequest()).await()
129130
if (!response.isSuccessful && response.code != HTTP_NOT_MODIFIED) {
130131
response.close()

‎app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadCache.kt

+6-2
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,9 @@ class DownloadCache(
247247
val sourceDir = rootDownloadsDir.sourceDirs[manga.source] ?: return
248248
val mangaDir = sourceDir.mangaDirs[
249249
provider.getMangaDirName(
250-
/* SY --> */ manga.ogTitle, /* SY <-- */
250+
// SY -->
251+
manga.ogTitle,
252+
// SY <--
251253
),
252254
] ?: return
253255
provider.getValidChapterDirNames(chapter.name, chapter.scanlator).forEach {
@@ -286,7 +288,9 @@ class DownloadCache(
286288
val sourceDir = rootDownloadsDir.sourceDirs[manga.source] ?: return
287289
val mangaDir = sourceDir.mangaDirs[
288290
provider.getMangaDirName(
289-
/* SY --> */ manga.ogTitle, /* SY <-- */
291+
// SY -->
292+
manga.ogTitle,
293+
// SY <--
290294
),
291295
] ?: return
292296
chapters.forEach { chapter ->

‎app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadManager.kt

+3-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ class DownloadManager(
167167
val chapterDir = provider.findChapterDir(
168168
chapter.name,
169169
chapter.scanlator,
170-
/* SY --> */ manga.ogTitle /* SY <-- */,
170+
// SY -->
171+
manga.ogTitle,
172+
// SY <--
171173
source,
172174
)
173175
val files = chapterDir?.listFiles().orEmpty()

‎app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateJob.kt

+3-1
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,9 @@ class LibraryUpdateJob(private val context: Context, workerParams: WorkerParamet
628628

629629
count++
630630
notifier.showProgressNotification(
631-
listOf(Manga.create().copy(ogTitle = networkManga.title)), count, size,
631+
listOf(Manga.create().copy(ogTitle = networkManga.title)),
632+
count,
633+
size,
632634
)
633635

634636
var dbManga = getManga.await(networkManga.url, mangaDex.id)

‎app/src/main/java/eu/kanade/tachiyomi/source/AndroidSourceManager.kt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@file:Suppress("PropertyName")
2+
13
package eu.kanade.tachiyomi.source
24

35
import android.content.Context

‎app/src/main/java/eu/kanade/tachiyomi/source/online/all/MangaDex.kt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@file:Suppress("PropertyName")
2+
13
package eu.kanade.tachiyomi.source.online.all
24

35
import android.content.Context

‎app/src/main/java/eu/kanade/tachiyomi/ui/browse/feed/FeedScreenModel.kt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@file:Suppress("PropertyName")
2+
13
package eu.kanade.tachiyomi.ui.browse.feed
24

35
import androidx.compose.runtime.Composable

‎app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt

+3-1
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,9 @@ class ReaderActivity : BaseActivity() {
12401240
// SY -->
12411241
val text = if (secondPage != null) {
12421242
stringResource(
1243-
SYMR.strings.share_pages_info, manga.title, chapter.name,
1243+
SYMR.strings.share_pages_info,
1244+
manga.title,
1245+
chapter.name,
12441246
if (resources.configuration.layoutDirection ==
12451247
View.LAYOUT_DIRECTION_LTR
12461248
) {

‎app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderViewModel.kt

+24-12
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ class ReaderViewModel @JvmOverloads constructor(
370370
mutableState.update {
371371
it.copy(
372372
manga = manga,
373-
/* SY --> */
373+
// SY -->
374374
meta = metadata,
375375
mergedManga = mergedManga,
376376
dateRelativeTime = relativeTime,
@@ -380,7 +380,7 @@ class ReaderViewModel @JvmOverloads constructor(
380380
autoScrollFreq.toString()
381381
},
382382
isAutoScrollEnabled = autoScrollFreq != -1f,
383-
/* SY <-- */
383+
// SY <--
384384
)
385385
}
386386
if (chapterId == -1L) chapterId = initialChapterId
@@ -392,17 +392,21 @@ class ReaderViewModel @JvmOverloads constructor(
392392
downloadManager = downloadManager,
393393
downloadProvider = downloadProvider,
394394
manga = manga,
395-
source = source, /* SY --> */
395+
source = source,
396+
// SY -->
396397
sourceManager = sourceManager,
397398
readerPrefs = readerPreferences,
398399
mergedReferences = mergedReferences,
399-
mergedManga = mergedManga, /* SY <-- */
400+
mergedManga = mergedManga,
401+
// SY <--
400402
)
401403

402404
loadChapter(
403405
loader!!,
404406
chapterList.first { chapterId == it.chapter.id },
405-
/* SY --> */page, /* SY <-- */
407+
// SY -->
408+
page,
409+
// SY <--
406410
)
407411
Result.success(true)
408412
} else {
@@ -538,7 +542,9 @@ class ReaderViewModel @JvmOverloads constructor(
538542
val isDownloaded = downloadManager.isChapterDownloaded(
539543
dbChapter.name,
540544
dbChapter.scanlator,
541-
/* SY --> */ manga.ogTitle /* SY <-- */,
545+
// SY -->
546+
manga.ogTitle,
547+
// SY <--
542548
manga.source,
543549
skipCache = true,
544550
)
@@ -677,8 +683,10 @@ class ReaderViewModel @JvmOverloads constructor(
677683
*/
678684
private suspend fun updateChapterProgress(
679685
readerChapter: ReaderChapter,
680-
page: Page/* SY --> */,
681-
hasExtraPage: Boolean, /* SY <-- */
686+
page: Page,
687+
// SY -->
688+
hasExtraPage: Boolean,
689+
// SY <--
682690
) {
683691
val pageIndex = page.index
684692
val syncTriggerOpt = syncPreferences.getSyncTriggerOptions()
@@ -1378,8 +1386,10 @@ class ReaderViewModel @JvmOverloads constructor(
13781386
// SY <--
13791387

13801388
data class PageActions(
1381-
val page: ReaderPage/* SY --> */,
1382-
val extraPage: ReaderPage? = null, /* SY <-- */
1389+
val page: ReaderPage,
1390+
// SY -->
1391+
val extraPage: ReaderPage? = null,
1392+
// SY <--
13831393
) : Dialog
13841394

13851395
// SY -->
@@ -1398,8 +1408,10 @@ class ReaderViewModel @JvmOverloads constructor(
13981408
data class SavedImage(val result: SaveImageResult) : Event
13991409
data class ShareImage(
14001410
val uri: Uri,
1401-
val page: ReaderPage/* SY --> */,
1402-
val secondPage: ReaderPage? = null, /* SY <-- */
1411+
val page: ReaderPage,
1412+
// SY -->
1413+
val secondPage: ReaderPage? = null,
1414+
// SY <--
14031415
) : Event
14041416
data class CopyImage(val uri: Uri) : Event
14051417
}

‎app/src/main/java/eu/kanade/tachiyomi/ui/reader/loader/ChapterLoader.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@ class ChapterLoader(
9494
val dbChapter = chapter.chapter
9595
val isDownloaded = downloadManager.isChapterDownloaded(
9696
chapterName = dbChapter.name,
97-
chapterScanlator = dbChapter.scanlator, /* SY --> */
98-
mangaTitle = manga.ogTitle /* SY <-- */,
97+
chapterScanlator = dbChapter.scanlator,
98+
// SY -->
99+
mangaTitle = manga.ogTitle,
100+
// SY <--
99101
sourceId = manga.source,
100102
skipCache = true,
101103
)

‎app/src/main/java/eu/kanade/tachiyomi/util/chapter/ChapterGetNextUnread.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ import tachiyomi.domain.manga.model.Manga
1212
*/
1313
fun List<Chapter>.getNextUnread(
1414
manga: Manga,
15-
downloadManager: DownloadManager /* SY --> */,
16-
mergedManga: Map<Long, Manga>, /* SY <-- */
15+
downloadManager: DownloadManager,
16+
// SY -->
17+
mergedManga: Map<Long, Manga>,
18+
// SY <--
1719
): Chapter? {
1820
return applyFilters(manga, downloadManager/* SY --> */, mergedManga/* SY <-- */).let { chapters ->
1921
// SY -->

‎app/src/main/java/eu/kanade/test/DummyTracker.kt

+3-4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import android.graphics.Color
44
import dev.icerock.moko.resources.StringResource
55
import eu.kanade.tachiyomi.R
66
import eu.kanade.tachiyomi.data.track.Tracker
7+
import eu.kanade.tachiyomi.data.track.model.TrackMangaMetadata
78
import eu.kanade.tachiyomi.data.track.model.TrackSearch
89
import kotlinx.collections.immutable.ImmutableList
910
import kotlinx.collections.immutable.toImmutableList
@@ -121,10 +122,8 @@ data class DummyTracker(
121122
) = Unit
122123

123124
override suspend fun getMangaMetadata(
124-
track: tachiyomi.domain.track.model.Track,
125-
): eu.kanade.tachiyomi.data.track.model.TrackMangaMetadata = eu.kanade.tachiyomi.data.track.model.TrackMangaMetadata(
126-
0, "test", "test", "test", "test", "test",
127-
)
125+
track: Track,
126+
): TrackMangaMetadata = TrackMangaMetadata(0, "test", "test", "test", "test", "test")
128127

129128
// KMK -->
130129
override fun hasNotStartedReading(status: Long): Boolean = status == 2L

‎app/src/main/java/exh/favorites/FavoritesSyncHelper.kt

+3-9
Original file line numberDiff line numberDiff line change
@@ -400,15 +400,9 @@ class FavoritesSyncHelper(val context: Context) {
400400
}
401401

402402
val error = when (result) {
403-
is GalleryAddEvent.Fail.Error -> FavoritesSyncStatus.SyncError.GallerySyncError.GalleryAddFail(
404-
it.title, result.logMessage,
405-
)
406-
is GalleryAddEvent.Fail.UnknownType -> FavoritesSyncStatus.SyncError.GallerySyncError.InvalidGalleryFail(
407-
it.title, result.galleryUrl,
408-
)
409-
is GalleryAddEvent.Fail.UnknownSource -> FavoritesSyncStatus.SyncError.GallerySyncError.InvalidGalleryFail(
410-
it.title, result.galleryUrl,
411-
)
403+
is GalleryAddEvent.Fail.Error -> FavoritesSyncStatus.SyncError.GallerySyncError.GalleryAddFail(it.title, result.logMessage)
404+
is GalleryAddEvent.Fail.UnknownType -> FavoritesSyncStatus.SyncError.GallerySyncError.InvalidGalleryFail(it.title, result.galleryUrl)
405+
is GalleryAddEvent.Fail.UnknownSource -> FavoritesSyncStatus.SyncError.GallerySyncError.InvalidGalleryFail(it.title, result.galleryUrl)
412406
}
413407

414408
if (prefs.exhLenientSync().get()) {

‎app/src/main/java/exh/md/handlers/SimilarHandler.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ class SimilarHandler(
3434
}
3535

3636
return MetadataMangasPage(
37-
mangaList, false,
37+
mangaList,
38+
false,
3839
List(mangaList.size) {
3940
MangaDexSearchMetadata().also { it.relation = MangaDexRelation.SIMILAR }
4041
},

‎app/src/main/java/exh/md/utils/MdApi.kt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@file:Suppress("PropertyName")
2+
13
package exh.md.utils
24

35
object MdApi {

‎app/src/main/java/exh/md/utils/MdConstants.kt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@file:Suppress("PropertyName")
2+
13
package exh.md.utils
24

35
import android.util.Base64

‎app/src/main/java/exh/md/utils/MdUtil.kt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@file:Suppress("PropertyName")
2+
13
package exh.md.utils
24

35
import android.app.Application

‎app/src/main/java/exh/recs/sources/AniListPagingSource.kt

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ import tachiyomi.domain.manga.model.Manga
2222
import tachiyomi.i18n.sy.SYMR
2323

2424
class AniListPagingSource(manga: Manga, source: CatalogueSource?) : TrackerRecommendationPagingSource(
25-
"https://graphql.anilist.co/", source, manga,
25+
"https://graphql.anilist.co/",
26+
source,
27+
manga,
2628
) {
2729
override val name: String
2830
get() = "AniList"

‎app/src/main/java/exh/recs/sources/MangaUpdatesPagingSource.kt

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ import tachiyomi.domain.manga.model.Manga
2424
import tachiyomi.i18n.sy.SYMR
2525

2626
abstract class MangaUpdatesPagingSource(manga: Manga, source: CatalogueSource?) : TrackerRecommendationPagingSource(
27-
"https://api.mangaupdates.com/v1/", source, manga,
27+
"https://api.mangaupdates.com/v1/",
28+
source,
29+
manga,
2830
) {
2931
override val name: String
3032
get() = "MangaUpdates"

‎app/src/main/java/exh/recs/sources/MyAnimeListPagingSource.kt

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ import tachiyomi.domain.manga.model.Manga
1818
import tachiyomi.i18n.sy.SYMR
1919

2020
class MyAnimeListPagingSource(manga: Manga, source: CatalogueSource?) : TrackerRecommendationPagingSource(
21-
"https://api.jikan.moe/v4/", source, manga,
21+
"https://api.jikan.moe/v4/",
22+
source,
23+
manga,
2224
) {
2325
override val name: String
2426
get() = "MyAnimeList"

‎app/src/main/java/exh/source/BlacklistedSources.kt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@file:Suppress("PropertyName")
2+
13
package exh.source
24

35
object BlacklistedSources {

‎core/archive/src/main/kotlin/mihon/core/archive/CbzCrypto.kt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@file:Suppress("PropertyName")
2+
13
package mihon.core.archive
24

35
import android.security.keystore.KeyGenParameterSpec

‎core/common/src/main/kotlin/eu/kanade/tachiyomi/network/NetworkHelper.kt

+3-6
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,17 @@ import java.util.concurrent.TimeUnit
2020
import kotlin.math.pow
2121
import kotlin.random.Random
2222

23-
/* SY --> */
24-
open /* SY <-- */ class NetworkHelper(
23+
/* SY --> */ open /* SY <-- */ class NetworkHelper(
2524
private val context: Context,
2625
private val preferences: NetworkPreferences,
2726
// SY -->
2827
val isDebugBuild: Boolean,
2928
// SY <--
3029
) {
3130

32-
/* SY --> */
33-
open /* SY <-- */val cookieJar = AndroidCookieJar()
31+
/* SY --> */ open /* SY <-- */val cookieJar = AndroidCookieJar()
3432

35-
/* SY --> */
36-
open /* SY <-- */val client: OkHttpClient =
33+
/* SY --> */ open /* SY <-- */val client: OkHttpClient =
3734
// KMK -->
3835
clientWithTimeOut()
3936

‎domain/src/main/java/exh/source/DomainSourceHelpers.kt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@file:Suppress("PropertyName")
2+
13
package exh.source
24

35
import eu.kanade.tachiyomi.source.Source

‎source-api/src/commonMain/kotlin/eu/kanade/tachiyomi/source/model/MangasPage.kt

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ package eu.kanade.tachiyomi.source.model
22

33
import exh.metadata.metadata.RaisedSearchMetadata
44

5-
/* SY --> */
6-
open /* SY <-- */ class MangasPage(open val mangas: List<SManga>, open val hasNextPage: Boolean) {
5+
/* SY --> */ open /* SY <-- */ class MangasPage(open val mangas: List<SManga>, open val hasNextPage: Boolean) {
76
// SY -->
87
override fun equals(other: Any?): Boolean {
98
if (this === other) return true

‎source-api/src/commonMain/kotlin/eu/kanade/tachiyomi/source/online/HttpSource.kt

+1-2
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ abstract class HttpSource : CatalogueSource {
9595
/**
9696
* Headers used for requests.
9797
*/
98-
/* SY --> */
99-
open /* SY <-- */ val headers: Headers by lazy { headersBuilder().build() }
98+
/* SY --> */ open /* SY <-- */ val headers: Headers by lazy { headersBuilder().build() }
10099

101100
/**
102101
* Default network client for doing requests.

‎source-local/src/androidMain/kotlin/tachiyomi/source/local/LocalSource.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,12 @@ actual class LocalSource(
9595
// Filter out files that are hidden and is not a folder
9696
.filter {
9797
it.isDirectory &&
98-
/* SY --> */ (
98+
// SY -->
99+
(
99100
!it.name.orEmpty().startsWith('.') ||
100101
allowLocalSourceHiddenFolders
101-
) /* SY <-- */
102+
)
103+
// SY <--
102104
}
103105
.distinctBy { it.name }
104106
.filter {

0 commit comments

Comments
 (0)
Please sign in to comment.