Files

64 lines
1.8 KiB
Groovy

plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.plugin.serialization' version '2.3.20'
}
def agpMajor = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')[0] as int
def isBuiltInKotlinFalse = project.hasProperty('builtInKotlin') && (project.property('builtInKotlin') == false || project.property('builtInKotlin') == 'false')
if (agpMajor < 9 || isBuiltInKotlinFalse) {
apply plugin: ['kotlin', 'android'].join('-')
}
group = 'com.bbflight.background_downloader'
version = '1.0-SNAPSHOT'
allprojects {
repositories {
google()
mavenCentral()
}
}
android {
compileSdk = 36
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
defaultConfig {
minSdk = 23
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
if (project.android.hasProperty("namespace")) { namespace = 'com.bbflight.background_downloader' }
}
dependencies {
implementation "androidx.work:work-runtime-ktx:2.11.0"
implementation "androidx.concurrent:concurrent-futures-ktx:1.3.0"
implementation "androidx.preference:preference-ktx:1.2.1"
implementation "androidx.core:core-ktx:1.17.0"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.9.0"
testImplementation "junit:junit:4.13.2"
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.10.2"
androidTestImplementation "androidx.test.ext:junit:1.3.0"
androidTestImplementation "androidx.test.espresso:espresso-core:3.7.0"
}
repositories {
mavenCentral()
}
kotlin {
compilerOptions {
jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17
}
}