mirror of
https://github.com/openflocon/Flocon.git
synced 2026-05-19 10:25:16 +00:00
90 lines
No EOL
2.5 KiB
Kotlin
90 lines
No EOL
2.5 KiB
Kotlin
plugins {
|
|
alias(libs.plugins.android.library)
|
|
alias(libs.plugins.kotlin.android)
|
|
id("com.vanniktech.maven.publish") version "0.34.0"
|
|
}
|
|
|
|
android {
|
|
namespace = "io.github.openflocon.flocon.okhttp"
|
|
compileSdk = 36
|
|
|
|
defaultConfig {
|
|
minSdk = 23
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
consumerProguardFiles("consumer-rules.pro")
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = "11"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
|
|
implementation(project(":flocon-base"))
|
|
|
|
implementation(platform(libs.kotlinx.coroutines.bom))
|
|
implementation(libs.jetbrains.kotlinx.coroutines.core)
|
|
implementation(libs.jetbrains.kotlinx.coroutines.android)
|
|
|
|
implementation(platform(libs.okhttp.bom))
|
|
implementation(libs.okhttp3.okhttp)
|
|
}
|
|
|
|
|
|
mavenPublishing {
|
|
publishToMavenCentral(automaticRelease = true)
|
|
|
|
if (project.hasProperty("signing.required") && project.property("signing.required") == "false") {
|
|
// Skip signing
|
|
} else {
|
|
signAllPublications()
|
|
}
|
|
|
|
coordinates(
|
|
groupId = project.property("floconGroupId") as String,
|
|
artifactId = "flocon-okhttp-interceptor",
|
|
version = System.getenv("PROJECT_VERSION_NAME") ?: project.property("floconVersion") as String
|
|
)
|
|
|
|
pom {
|
|
name = "Flocon OkHttp Interceptor"
|
|
description = project.property("floconDescription") as String
|
|
inceptionYear = "2025"
|
|
url = "https://github.com/openflocon/Flocon"
|
|
licenses {
|
|
license {
|
|
name = "The Apache License, Version 2.0"
|
|
url = "https://www.apache.org/licenses/LICENSE-2.0.txt"
|
|
distribution = "https://www.apache.org/licenses/LICENSE-2.0.txt"
|
|
}
|
|
}
|
|
developers {
|
|
developer {
|
|
id = "openflocon"
|
|
name = "Open Flocon"
|
|
url = "https://github.com/openflocon"
|
|
}
|
|
}
|
|
scm {
|
|
url = "https://github.com/openflocon/Flocon"
|
|
connection = "scm:git:git://github.com/openflocon/Flocon.git"
|
|
developerConnection = "scm:git:ssh://git@github.com/openflocon/Flocon.git"
|
|
}
|
|
}
|
|
} |