You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
168 lines
4.6 KiB
Groovy
168 lines
4.6 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'kotlin-android'
|
|
id 'kotlin-kapt'
|
|
id 'com.google.devtools.ksp'
|
|
id 'kotlin-parcelize'
|
|
id 'dagger.hilt.android.plugin'
|
|
}
|
|
|
|
android {
|
|
compileSdk = 35
|
|
buildToolsVersion = '35.0.0'
|
|
namespace = 'org.koitharu.kotatsu'
|
|
|
|
defaultConfig {
|
|
applicationId 'org.koitharu.kotatsu'
|
|
minSdk = 21
|
|
targetSdk = 35
|
|
versionCode = 681
|
|
versionName = '7.7-a2'
|
|
generatedDensities = []
|
|
testInstrumentationRunner 'org.koitharu.kotatsu.HiltTestRunner'
|
|
ksp {
|
|
arg('room.generateKotlin', 'true')
|
|
arg('room.schemaLocation', "$projectDir/schemas")
|
|
}
|
|
androidResources {
|
|
generateLocaleConfig true
|
|
}
|
|
}
|
|
buildTypes {
|
|
debug {
|
|
applicationIdSuffix = '.debug'
|
|
}
|
|
release {
|
|
minifyEnabled true
|
|
shrinkResources true
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
buildFeatures {
|
|
viewBinding true
|
|
buildConfig true
|
|
}
|
|
sourceSets {
|
|
androidTest.assets.srcDirs += files("$projectDir/schemas".toString())
|
|
main.java.srcDirs += 'src/main/kotlin/'
|
|
}
|
|
compileOptions {
|
|
coreLibraryDesugaringEnabled true
|
|
sourceCompatibility JavaVersion.VERSION_11
|
|
targetCompatibility JavaVersion.VERSION_11
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = JavaVersion.VERSION_11.toString()
|
|
freeCompilerArgs += [
|
|
'-opt-in=kotlin.ExperimentalStdlibApi',
|
|
'-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi',
|
|
'-opt-in=kotlinx.coroutines.ExperimentalForInheritanceCoroutinesApi',
|
|
'-opt-in=kotlinx.coroutines.FlowPreview',
|
|
'-opt-in=kotlin.contracts.ExperimentalContracts',
|
|
'-opt-in=coil.annotation.ExperimentalCoilApi',
|
|
]
|
|
}
|
|
lint {
|
|
abortOnError true
|
|
disable 'MissingTranslation', 'PrivateResource', 'SetJavaScriptEnabled'
|
|
}
|
|
testOptions {
|
|
unitTests.includeAndroidResources true
|
|
unitTests.returnDefaultValues false
|
|
kotlinOptions {
|
|
freeCompilerArgs += ['-opt-in=org.koitharu.kotatsu.parsers.InternalParsersApi']
|
|
}
|
|
}
|
|
}
|
|
afterEvaluate {
|
|
compileDebugKotlin {
|
|
kotlinOptions {
|
|
freeCompilerArgs += ['-opt-in=org.koitharu.kotatsu.parsers.InternalParsersApi']
|
|
}
|
|
}
|
|
}
|
|
dependencies {
|
|
implementation(libs.kotatsu.parsers) {
|
|
exclude group: 'org.json', module: 'json'
|
|
}
|
|
|
|
coreLibraryDesugaring libs.desugar.jdk.libs
|
|
implementation libs.kotlin.stdlib
|
|
implementation libs.kotlinx.coroutines.android
|
|
|
|
implementation libs.appcompat
|
|
implementation libs.core.ktx
|
|
implementation libs.activity.ktx
|
|
implementation libs.fragment.ktx
|
|
implementation libs.transition.ktx
|
|
implementation libs.collection.ktx
|
|
implementation libs.lifecycle.viewmodel.ktx
|
|
implementation libs.lifecycle.service
|
|
implementation libs.lifecycle.process
|
|
implementation libs.androidx.constraintlayout
|
|
implementation libs.androidx.swiperefreshlayout
|
|
implementation libs.androidx.recyclerview
|
|
implementation libs.androidx.viewpager2
|
|
implementation libs.androidx.preference.ktx
|
|
implementation libs.androidx.biometric.ktx
|
|
implementation libs.material
|
|
implementation libs.androidx.lifecycle.common.java8
|
|
implementation libs.androidx.webkit
|
|
|
|
implementation libs.androidx.work.runtime
|
|
//noinspection GradleDependency
|
|
implementation(libs.guava) {
|
|
exclude group: 'com.google.guava', module: 'failureaccess'
|
|
exclude group: 'org.checkerframework', module: 'checker-qual'
|
|
exclude group: 'com.google.j2objc', module: 'j2objc-annotations'
|
|
}
|
|
|
|
implementation libs.androidx.room.runtime
|
|
implementation libs.androidx.room.ktx
|
|
ksp libs.androidx.room.compiler
|
|
|
|
implementation libs.okhttp
|
|
implementation libs.okhttp.tls
|
|
implementation libs.okhttp.dnsoverhttps
|
|
implementation libs.okio
|
|
|
|
implementation libs.adapterdelegates4.kotlin.dsl
|
|
implementation libs.adapterdelegates4.kotlin.dsl.viewbinding
|
|
|
|
implementation libs.hilt.android
|
|
kapt libs.hilt.compiler
|
|
implementation libs.androidx.hilt.work
|
|
kapt libs.androidx.hilt.compiler
|
|
|
|
implementation libs.coil.base
|
|
implementation libs.coil.svg
|
|
implementation libs.subsampling.scale.image.view
|
|
implementation libs.disk.lru.cache
|
|
implementation libs.core
|
|
|
|
implementation libs.acra.http
|
|
implementation libs.acra.dialog
|
|
|
|
implementation libs.conscrypt.android
|
|
|
|
debugImplementation libs.leakcanary.android
|
|
debugImplementation libs.workinspector
|
|
|
|
testImplementation libs.junit
|
|
testImplementation libs.json
|
|
testImplementation libs.kotlinx.coroutines.test
|
|
|
|
androidTestImplementation libs.androidx.runner
|
|
androidTestImplementation libs.androidx.rules
|
|
androidTestImplementation libs.androidx.core.ktx
|
|
androidTestImplementation libs.androidx.junit.ktx
|
|
|
|
androidTestImplementation libs.kotlinx.coroutines.test
|
|
|
|
androidTestImplementation libs.androidx.room.testing
|
|
androidTestImplementation libs.moshi.kotlin
|
|
|
|
androidTestImplementation libs.hilt.android.testing
|
|
kaptAndroidTest libs.hilt.android.compiler
|
|
}
|