mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-06-30 09:24:34 -05:00
* Switch to JCEF This is a full implementation, but it does not yet include downloading CEF as KCEF did * Download CEF automatically * Handle and propagate CEF init errors * Lint * Simplify jcef version extract * CEF: Download async * Copy StartupAsync to support handling errors Startup failures are simply swallowed, since they are recorded in the future, but there is no way to get that exception * CEF: Search for release file recursively On Mac, the file is buried a bit deeper than first level, like on Win and Linux * KcefWebViewProvider: Suppress deprecation We need to send those events, even if they are deprecated * Update readme * Optimize imports * Suggestion Co-authored-by: Mitchell Syer <syer10@users.noreply.github.com> * Refactor: stick to `Path` instead of `File` Also extracts the downloading of CEF to a separate method * Lint * Support disabling CEF Co-authored-by: Kolby Moroz Liebl <31669092+kolbyml@users.noreply.github.com> * Move JBR version to build constants Allows embedding into Manifest so docker can later extract the proper version * Create test to verify JCEF dependency matches downloaded JBR * Update server/src/main/kotlin/suwayomi/tachidesk/server/util/CEFManager.kt Co-authored-by: Mitchell Syer <Syer10@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Mitchell Syer <Syer10@users.noreply.github.com> * Fix compile, apply Path suggestions * Download progress * Lint * Fix exception on non-posix * Delete recursively Others can be non-empty * Support disabling CEF at will Not really functional, but nice * Fix test * Exclude masstest unless explicitly requested * PR-CI: Run tests * Add Changelog entry --------- Co-authored-by: Mitchell Syer <syer10@users.noreply.github.com> Co-authored-by: Kolby Moroz Liebl <31669092+kolbyml@users.noreply.github.com>
62 lines
1.8 KiB
Kotlin
62 lines
1.8 KiB
Kotlin
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
|
|
import org.jlleitschuh.gradle.ktlint.KtlintExtension
|
|
import org.jlleitschuh.gradle.ktlint.KtlintPlugin
|
|
|
|
plugins {
|
|
alias(libs.plugins.kotlin.jvm) apply false
|
|
alias(libs.plugins.kotlin.serialization) apply false
|
|
alias(libs.plugins.ktlint) apply false
|
|
alias(libs.plugins.buildconfig) apply false
|
|
alias(libs.plugins.download)
|
|
alias(libs.plugins.kotlin.multiplatform) apply false
|
|
alias(libs.plugins.moko) apply false
|
|
alias(libs.plugins.jte) apply false
|
|
}
|
|
|
|
allprojects {
|
|
group = "suwayomi"
|
|
|
|
version = "1.0"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
google()
|
|
maven("https://github.com/Suwayomi/Suwayomi-Server/raw/android-jar/")
|
|
maven("https://jitpack.io")
|
|
maven("https://jogamp.org/deployment/maven")
|
|
maven("https://packages.jetbrains.team/maven/p/ij/intellij-dependencies")
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
plugins.withType<JavaPlugin> {
|
|
extensions.configure<JavaPluginExtension> {
|
|
val javaVersion = JavaVersion.toVersion(libs.versions.jvmTarget.get())
|
|
sourceCompatibility = javaVersion
|
|
targetCompatibility = javaVersion
|
|
}
|
|
}
|
|
|
|
plugins.withType<KtlintPlugin> {
|
|
extensions.configure<KtlintExtension>("ktlint") {
|
|
version.set(libs.versions.ktlint.get())
|
|
filter {
|
|
exclude("**/generated/**")
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks {
|
|
withType<KotlinJvmCompile> {
|
|
if (plugins.hasPlugin(KtlintPlugin::class)) {
|
|
dependsOn("ktlintFormat")
|
|
}
|
|
compilerOptions {
|
|
jvmTarget = JvmTarget.fromTarget(libs.versions.jvmTarget.get())
|
|
freeCompilerArgs.add("-Xcontext-parameters")
|
|
}
|
|
}
|
|
}
|
|
}
|