Skip to content

Ariverse: Add deeplink, move to lib 1.6, some improve code#17657

Open
FiorenMas wants to merge 2 commits into
keiyoushi:mainfrom
FiorenMas:ariverse-17-7-26
Open

Ariverse: Add deeplink, move to lib 1.6, some improve code#17657
FiorenMas wants to merge 2 commits into
keiyoushi:mainfrom
FiorenMas:ariverse-17-7-26

Conversation

@FiorenMas

Copy link
Copy Markdown
Contributor

Checklist:

  • Updated versionCode value in build.gradle.kts
  • Updated baseVersionCode in build.gradle.kts (if updated multisrc theme code)
  • Referenced all related issues in the PR body (e.g. "Closes #xyz")
  • Set the contentWarning configuration in build.gradle.kts appropriately
  • Have not changed source names
  • Have explicitly kept the id if a source's name or language were changed
  • Have tested the modifications by compiling and running the extension through Android Studio
  • Have removed web_hi_res_512.png when adding a new extension
  • This PR is AI-assisted, I have reviewed the changes manually and confirmed they are not slop

Comment thread src/vi/ariverse/src/eu/kanade/tachiyomi/extension/vi/ariverse/Ariverse.kt Outdated
Comment thread src/vi/ariverse/src/eu/kanade/tachiyomi/extension/vi/ariverse/Ariverse.kt Outdated
Comment thread src/vi/ariverse/src/eu/kanade/tachiyomi/extension/vi/ariverse/Ariverse.kt Outdated
Comment thread src/vi/ariverse/src/eu/kanade/tachiyomi/extension/vi/ariverse/Ariverse.kt Outdated
Comment thread src/vi/ariverse/src/eu/kanade/tachiyomi/extension/vi/ariverse/Ariverse.kt Outdated
Comment thread src/vi/ariverse/src/eu/kanade/tachiyomi/extension/vi/ariverse/Ariverse.kt Outdated
Comment thread src/vi/ariverse/src/eu/kanade/tachiyomi/extension/vi/ariverse/Ariverse.kt Outdated
Co-Authored-By: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com>
@FiorenMas
FiorenMas requested a review from AwkwardPeak7 July 17, 2026 09:40
original
}
private suspend fun loadAuthToken() {
if (cachedAuthToken != null) return

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep a time or bool as well, so we don't call webview again and againt when first time didn't return anything

Comment on lines +57 to +60
val token = runCatching {
getLocalStorage(baseUrl, "token")
?.takeIf { it.isNotBlank() }
}.getOrNull()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need for runCatching. also can it be blank?

override val supportsFilterFetching get() = true

override suspend fun fetchFilterData(): JsonElement = client.get("$apiUrl/genres").parseAs<JsonElement>()
override suspend fun fetchFilterData(): JsonElement = client.get("$apiUrl/genres".toHttpUrl()).parseAs<JsonElement>()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to make httpurl

manga
val story = client.get("$apiUrl/stories/$slug".toHttpUrl())
.parseAs<StoryDetailResponse>().data
storyCache[slug] = story

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont cache in memory. I meant whatever you need for related manga, put in manga.memo


val updatedChapters = if (fetchChapters) {
val chapterData = client.get("$apiUrl/stories/$slug/chapters")
val chapterData = client.get("$apiUrl/stories/$slug/chapters".toHttpUrl())

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants