mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-10 06:42:05 +01:00
Move generation to data module
This commit is contained in:
@@ -6,7 +6,7 @@ plugins {
|
||||
id(libs.plugins.ksp.get().pluginId)
|
||||
id(libs.plugins.buildkonfig.get().pluginId)
|
||||
id(libs.plugins.kotlinter.get().pluginId)
|
||||
id(libs.plugins.ktorfit.get().pluginId)
|
||||
id(libs.plugins.apollo.get().pluginId)
|
||||
}
|
||||
|
||||
kotlin {
|
||||
@@ -120,3 +120,9 @@ buildkonfig {
|
||||
android {
|
||||
namespace = "ca.gosyer.jui.data"
|
||||
}
|
||||
|
||||
apollo {
|
||||
service("service") {
|
||||
packageName.set("ca.gosyer.jui.data.graphql")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,98 +0,0 @@
|
||||
@Suppress("DSL_SCOPE_VIOLATION")
|
||||
plugins {
|
||||
id(libs.plugins.kotlin.multiplatform.get().pluginId)
|
||||
id(libs.plugins.kotlin.serialization.get().pluginId)
|
||||
id(libs.plugins.android.library.get().pluginId)
|
||||
id(libs.plugins.apollo.get().pluginId)
|
||||
}
|
||||
|
||||
kotlin {
|
||||
androidTarget {
|
||||
compilations {
|
||||
all {
|
||||
kotlinOptions.jvmTarget = Config.androidJvmTarget.toString()
|
||||
}
|
||||
}
|
||||
}
|
||||
jvm("desktop") {
|
||||
compilations {
|
||||
all {
|
||||
kotlinOptions.jvmTarget = Config.desktopJvmTarget.toString()
|
||||
}
|
||||
}
|
||||
}
|
||||
iosX64()
|
||||
iosArm64()
|
||||
iosSimulatorArm64()
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
applyHierarchyTemplate {
|
||||
common {
|
||||
group("jvm") {
|
||||
withAndroidTarget()
|
||||
withJvm()
|
||||
}
|
||||
group("ios") {
|
||||
withIosX64()
|
||||
withIosArm64()
|
||||
withIosSimulatorArm64()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
all {
|
||||
languageSettings {
|
||||
optIn("kotlin.RequiresOptIn")
|
||||
optIn("kotlinx.coroutines.ExperimentalCoroutinesApi")
|
||||
}
|
||||
}
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
api(libs.apollo)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
val jvmMain by getting {
|
||||
dependencies {
|
||||
api(kotlin("stdlib-jdk8"))
|
||||
}
|
||||
}
|
||||
val jvmTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
|
||||
val desktopMain by getting {
|
||||
}
|
||||
val desktopTest by getting {
|
||||
}
|
||||
|
||||
val androidMain by getting {
|
||||
}
|
||||
val androidUnitTest by getting {
|
||||
}
|
||||
|
||||
val iosMain by getting {
|
||||
}
|
||||
val iosTest by getting {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
android {
|
||||
namespace = "ca.gosyer.jui.data.graphql"
|
||||
}
|
||||
|
||||
apollo {
|
||||
service("service") {
|
||||
packageName.set("ca.gosyer.jui.data.graphql")
|
||||
}
|
||||
}
|
||||
46
data/src/commonMain/graphql/Settings.graphql
Normal file
46
data/src/commonMain/graphql/Settings.graphql
Normal file
@@ -0,0 +1,46 @@
|
||||
query AllSettings {
|
||||
settings {
|
||||
autoDownloadNewChapters
|
||||
autoDownloadNewChaptersLimit
|
||||
backupInterval
|
||||
backupPath
|
||||
backupTTL
|
||||
backupTime
|
||||
basicAuthEnabled
|
||||
basicAuthPassword
|
||||
basicAuthUsername
|
||||
debugLogsEnabled
|
||||
downloadAsCbz
|
||||
downloadsPath
|
||||
electronPath
|
||||
excludeCompleted
|
||||
excludeEntryWithUnreadChapters
|
||||
excludeNotStarted
|
||||
excludeUnreadChapters
|
||||
extensionRepos
|
||||
flareSolverrEnabled
|
||||
flareSolverrSessionName
|
||||
flareSolverrSessionTtl
|
||||
flareSolverrTimeout
|
||||
flareSolverrUrl
|
||||
globalUpdateInterval
|
||||
gqlDebugLogsEnabled
|
||||
initialOpenInBrowserEnabled
|
||||
ip
|
||||
localSourcePath
|
||||
maxSourcesInParallel
|
||||
port
|
||||
socksProxyEnabled
|
||||
socksProxyHost
|
||||
socksProxyPassword
|
||||
socksProxyPort
|
||||
socksProxyUsername
|
||||
socksProxyVersion
|
||||
systemTrayEnabled
|
||||
updateMangas
|
||||
webUIChannel
|
||||
webUIFlavor
|
||||
webUIInterface
|
||||
webUIUpdateCheckInterval
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user