mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
refactor: Modularize the project (#97)
* refactor: Modularize the project * chore: Move okhttp stuff back to androidMain OkHttp decided to cancel multiplatform plan on 5.0 REF: https://square.github.io/okhttp/changelogs/changelog/#version-500-alpha13 * feat: Start using moko for i18n * fix: Solve some errors * chore: Remove manga from domain module We'll do this later * fix: Duplicate error * fix: Conflict function name error * fix: Target SManga * fix: Breaking changes after the split * fix: Not enough heap memory * chore: Update proguard rules Sorta similar to upstream * refactor: Fix namespace
This commit is contained in:
parent
7e7a37bc53
commit
24ce2683d4
109 changed files with 1146 additions and 308 deletions
|
@ -1,3 +1,7 @@
|
|||
import com.android.build.gradle.BaseExtension
|
||||
import com.android.build.gradle.BasePlugin
|
||||
import org.gradle.api.tasks.testing.logging.TestLogEvent
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
|
||||
import java.util.*
|
||||
|
||||
plugins {
|
||||
|
@ -15,6 +19,7 @@ buildscript {
|
|||
classpath(kotlinx.serialization.gradle)
|
||||
classpath(libs.firebase.crashlytics.gradle)
|
||||
classpath(libs.sqldelight.gradle)
|
||||
classpath(libs.moko.generator)
|
||||
}
|
||||
repositories {
|
||||
gradlePluginPortal()
|
||||
|
@ -23,6 +28,45 @@ buildscript {
|
|||
}
|
||||
}
|
||||
|
||||
subprojects {
|
||||
tasks.withType<KotlinJvmCompile> {
|
||||
kotlinOptions {
|
||||
jvmTarget = JavaVersion.VERSION_17.toString()
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType<Test> {
|
||||
useJUnitPlatform()
|
||||
testLogging {
|
||||
events(TestLogEvent.PASSED, TestLogEvent.SKIPPED, TestLogEvent.FAILED)
|
||||
}
|
||||
}
|
||||
|
||||
plugins.withType<BasePlugin> {
|
||||
configure<BaseExtension> {
|
||||
compileSdkVersion(AndroidConfig.compileSdk)
|
||||
|
||||
defaultConfig {
|
||||
minSdk = AndroidConfig.minSdk
|
||||
targetSdk = AndroidConfig.targetSdk
|
||||
ndk {
|
||||
version = AndroidConfig.ndk
|
||||
}
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
isCoreLibraryDesugaringEnabled = true
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("coreLibraryDesugaring", libs.desugar)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.named("dependencyUpdates", com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask::class.java).configure {
|
||||
rejectVersionIf {
|
||||
val stableKeyword = listOf("RELEASE", "FINAL", "GA").any { candidate.version.uppercase(Locale.ROOT).contains(it) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue