Move generation to data module

This commit is contained in:
Syer10
2024-03-28 22:26:02 -04:00
parent 6d3db3500f
commit 8cda328ff6
6 changed files with 54 additions and 101 deletions

View File

@@ -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")
}
}

View File

@@ -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")
}
}

View 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
}
}