2021-05-03 19:49:09 +02:00
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
2021-01-02 02:27:20 +01:00
|
|
|
|
|
|
|
plugins {
|
2022-04-02 16:03:58 +02:00
|
|
|
kotlin("jvm") version "1.6.10"
|
|
|
|
kotlin("plugin.serialization") version "1.6.10" apply false
|
|
|
|
id("org.jmailen.kotlinter") version "3.9.0" apply false
|
|
|
|
id("com.github.gmazzo.buildconfig") version "3.0.3" apply false
|
|
|
|
id("com.github.johnrengelman.shadow") version "7.1.2" apply false
|
|
|
|
id("com.github.ben-manes.versions") version "0.39.0"
|
2021-01-02 02:27:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
2021-05-26 23:37:32 +02:00
|
|
|
group = "suwayomi"
|
2021-01-02 02:27:20 +01:00
|
|
|
|
|
|
|
version = "1.0"
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2021-03-30 14:51:41 +02:00
|
|
|
maven("https://maven.google.com/")
|
2021-01-02 02:27:20 +01:00
|
|
|
maven("https://jitpack.io")
|
|
|
|
maven("https://dl.google.com/dl/android/maven2/")
|
2021-10-09 21:03:01 +02:00
|
|
|
maven("https://repo1.maven.org/maven2/")
|
|
|
|
maven("https://oss.sonatype.org/content/repositories/snapshots/")
|
2021-01-02 02:27:20 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-02 00:44:40 +02:00
|
|
|
val projects = listOf(
|
2021-01-02 02:27:20 +01:00
|
|
|
project(":AndroidCompat"),
|
|
|
|
project(":AndroidCompat:Config"),
|
|
|
|
project(":server")
|
|
|
|
)
|
|
|
|
|
2021-04-02 00:44:40 +02:00
|
|
|
configure(projects) {
|
2021-01-02 02:27:20 +01:00
|
|
|
apply(plugin = "org.jetbrains.kotlin.jvm")
|
|
|
|
|
|
|
|
java {
|
2021-11-28 20:04:07 +01:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
|
|
targetCompatibility = JavaVersion.VERSION_11
|
2021-01-02 02:27:20 +01:00
|
|
|
}
|
|
|
|
|
2021-05-03 19:49:09 +02:00
|
|
|
tasks.withType<KotlinCompile> {
|
2021-01-02 02:27:20 +01:00
|
|
|
kotlinOptions {
|
2021-11-28 20:04:07 +01:00
|
|
|
jvmTarget = JavaVersion.VERSION_11.toString()
|
2021-01-02 02:27:20 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
// Kotlin
|
2021-05-06 11:44:04 +02:00
|
|
|
implementation(kotlin("stdlib-jdk8"))
|
2021-05-03 19:49:09 +02:00
|
|
|
implementation(kotlin("reflect"))
|
|
|
|
testImplementation(kotlin("test"))
|
2021-01-02 02:27:20 +01:00
|
|
|
|
2021-04-02 00:44:40 +02:00
|
|
|
// coroutines
|
2022-04-02 16:03:58 +02:00
|
|
|
val coroutinesVersion = "1.6.0"
|
2021-04-02 00:44:40 +02:00
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion")
|
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:$coroutinesVersion")
|
2021-04-03 22:42:13 +02:00
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutinesVersion")
|
2021-04-02 00:44:40 +02:00
|
|
|
|
2022-04-02 16:03:58 +02:00
|
|
|
val kotlinSerializationVersion = "1.3.2"
|
2021-05-30 01:35:56 +02:00
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlinSerializationVersion")
|
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-serialization-protobuf:$kotlinSerializationVersion")
|
|
|
|
|
2021-01-02 02:27:20 +01:00
|
|
|
|
|
|
|
// Dependency Injection
|
2022-04-02 16:03:58 +02:00
|
|
|
implementation("org.kodein.di:kodein-di-conf-jvm:7.11.0")
|
2021-01-02 02:27:20 +01:00
|
|
|
|
|
|
|
// Logging
|
2022-04-02 16:03:58 +02:00
|
|
|
implementation("org.slf4j:slf4j-api:1.7.36")
|
|
|
|
implementation("ch.qos.logback:logback-classic:1.2.11")
|
|
|
|
implementation("io.github.microutils:kotlin-logging:2.1.21")
|
2021-01-02 02:27:20 +01:00
|
|
|
|
2021-05-20 13:52:54 +02:00
|
|
|
// ReactiveX
|
2021-01-02 02:27:20 +01:00
|
|
|
implementation("io.reactivex:rxjava:1.3.8")
|
|
|
|
implementation("io.reactivex:rxkotlin:1.0.0")
|
2021-05-20 13:52:54 +02:00
|
|
|
implementation("com.jakewharton.rxrelay:rxrelay:1.2.0")
|
2021-01-02 02:27:20 +01:00
|
|
|
|
|
|
|
// JSoup
|
2022-04-02 16:03:58 +02:00
|
|
|
implementation("org.jsoup:jsoup:1.14.3")
|
2021-01-02 02:27:20 +01:00
|
|
|
|
|
|
|
// dependency of :AndroidCompat:Config
|
2022-04-02 16:03:58 +02:00
|
|
|
implementation("com.typesafe:config:1.4.2")
|
2021-03-27 15:00:36 +01:00
|
|
|
implementation("io.github.config4k:config4k:0.4.2")
|
|
|
|
|
2022-04-02 16:03:58 +02:00
|
|
|
// dex2jar
|
|
|
|
val dex2jarVersion = "v35"
|
|
|
|
implementation("com.github.ThexXTURBOXx.dex2jar:dex-translator:$dex2jarVersion")
|
|
|
|
implementation("com.github.ThexXTURBOXx.dex2jar:dex-tools:$dex2jarVersion")
|
2021-04-03 17:17:31 +02:00
|
|
|
|
|
|
|
// APK parser
|
|
|
|
implementation("net.dongliu:apk-parser:2.6.10")
|
2021-01-02 02:27:20 +01:00
|
|
|
}
|
2021-10-09 21:03:01 +02:00
|
|
|
}
|