-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implement graphql library * Fix Okhttp dependency * Initial GraphQL Conversion * Full GraphQL conversion * Fix github actions * Update Jvm Target * Manually set 1.8 target * Move some filters to GraphQL
- Loading branch information
Showing
23 changed files
with
3,884 additions
and
353 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,43 @@ | ||
apply plugin: 'com.android.application' | ||
apply plugin: 'kotlin-android' | ||
apply plugin: 'kotlinx-serialization' | ||
apply plugin: 'com.apollographql.apollo3' | ||
|
||
ext { | ||
extName = 'Suwayomi' | ||
pkgNameSuffix = 'all.tachidesk' | ||
extClass = '.Tachidesk' | ||
extVersionCode = 12 | ||
extVersionCode = 13 | ||
} | ||
|
||
apply from: "$rootDir/common.gradle" | ||
|
||
apollo { | ||
service("service") { | ||
packageName.set("eu.kanade.tachiyomi.extension.all.tachidesk.apollo") | ||
srcDir("graphql") | ||
mapScalar("LongString","kotlin.Long", "eu.kanade.tachiyomi.extension.all.tachidesk.LongStringScalar") | ||
|
||
introspection { | ||
endpointUrl.set("http://localhost:4567/api/graphql") | ||
schemaFile.set(file("graphql/schema.graphqls")) | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation(libs.apollo.runtime) { | ||
exclude group: 'com.squareup.okhttp3' | ||
exclude group: 'com.squareup.okio' | ||
exclude group: 'org.jetbrains.kotlin' | ||
exclude group: 'org.jetbrains.kotlinx' | ||
} | ||
} | ||
|
||
configurations.configureEach { | ||
resolutionStrategy.eachDependency { DependencyResolveDetails details -> | ||
if (details.requested.group == 'com.squareup.okhttp3' && details.requested.name == 'okhttp' && details.requested.version == '4.9.3') { | ||
details.useVersion libs.okhttp.get().version | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
fragment CategoryFragment on CategoryType { | ||
id | ||
name | ||
} | ||
|
||
query GetCategories { | ||
categories(orderBy: ORDER) { | ||
nodes { | ||
...CategoryFragment | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
fragment ChapterFragment on ChapterType { | ||
id | ||
url | ||
chapterNumber | ||
name | ||
uploadDate | ||
scanlator | ||
sourceOrder | ||
mangaId | ||
} | ||
|
||
mutation GetChapters($mangaId: Int!) { | ||
fetchChapters(input: {mangaId: $mangaId}) { | ||
chapters { | ||
...ChapterFragment | ||
} | ||
} | ||
} | ||
|
||
query GetChapterId($mangaId: Int!, $chapterSourceorder: Int!) { | ||
chapters(condition: {mangaId: $mangaId, sourceOrder: $chapterSourceorder}) { | ||
nodes { | ||
id | ||
} | ||
} | ||
} | ||
|
||
mutation GetPages($chapterId: Int!) { | ||
fetchChapterPages(input: {chapterId: $chapterId}) { | ||
pages | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
fragment MangaFragment on MangaType { | ||
artist | ||
author | ||
description | ||
id | ||
status | ||
thumbnailUrl | ||
title | ||
url | ||
genre | ||
inLibraryAt | ||
chapters { | ||
totalCount | ||
} | ||
} | ||
|
||
mutation GetManga($mangaId: Int!) { | ||
fetchManga(input: {id: $mangaId}) { | ||
manga { | ||
...MangaFragment | ||
} | ||
} | ||
} | ||
|
||
query SearchManga($categories: [Int!]!, $filter: [MangaFilterInput!]) { | ||
mangas( | ||
condition: {inLibrary: true}, | ||
filter: { | ||
categoryId: {in: $categories}, | ||
and: $filter | ||
} | ||
) { | ||
nodes { | ||
...MangaFragment | ||
} | ||
} | ||
} |
Oops, something went wrong.