appupdater/build.gradle.kts
plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.kotlin.android)
}
ext.set("version", "3.0.3")
ext.set("versionCode", 489)
android {
compileSdk = 34
namespace = "com.itachi1706.appupdater"
defaultConfig {
minSdk = 19
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
}
buildTypes {
getByName("release") {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "17"
}
publishing {
singleVariant("release") {
withSourcesJar()
withJavadocJar()
}
}
}
dependencies {
testImplementation(libs.junit)
androidTestImplementation(libs.ext.junit)
androidTestImplementation(libs.espresso.core)
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
implementation(libs.appcompat)
implementation(libs.core.ktx)
implementation(libs.preference.ktx)
implementation(libs.gson)
implementation(libs.material)
implementation(libs.browser)
api(libs.helperlib)
}
apply(from = "./publish.gradle")