- BLTelemetryClient/BLAuditLogger/BLCrashReporter: @Synchronized isoNow() for SimpleDateFormat thread-safety
- BLCrashReporter: replace unsafe JSON string interpolation with buildJsonObject + JsonArray
- BLBlobClient: close OkHttp Response body with .use {} to prevent resource leak
- BLFeatureFlagClient/BLKillSwitchClient: URL-encode query parameter values
- build.gradle.kts: kotlinOptions {} -> compilerOptions {} (Kotlin 2.1 convention)
58 lines
1.7 KiB
Plaintext
58 lines
1.7 KiB
Plaintext
plugins {
|
|
id("com.android.library") version "8.7.3"
|
|
id("org.jetbrains.kotlin.android") version "2.1.0"
|
|
id("org.jetbrains.kotlin.plugin.serialization") version "2.1.0"
|
|
}
|
|
|
|
android {
|
|
namespace = "com.bytelyst.platform"
|
|
compileSdk = 35
|
|
|
|
defaultConfig {
|
|
minSdk = 26
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
consumerProguardFiles("consumer-rules.pro")
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
compilerOptions {
|
|
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)
|
|
}
|
|
}
|
|
|
|
group = "com.bytelyst.platform"
|
|
version = "0.1.0"
|
|
|
|
dependencies {
|
|
// HTTP
|
|
api("com.squareup.okhttp3:okhttp:4.12.0")
|
|
|
|
// Serialization
|
|
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3")
|
|
|
|
// Coroutines
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0")
|
|
|
|
// Android
|
|
implementation("androidx.security:security-crypto:1.0.0")
|
|
implementation("androidx.biometric:biometric:1.1.0")
|
|
implementation("androidx.core:core-ktx:1.15.0")
|
|
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.7")
|
|
|
|
// Testing
|
|
testImplementation("org.junit.jupiter:junit-jupiter-api:5.11.4")
|
|
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.11.4")
|
|
testImplementation("com.squareup.okhttp3:mockwebserver:4.12.0")
|
|
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0")
|
|
testImplementation("org.robolectric:robolectric:4.14.1")
|
|
}
|
|
|
|
tasks.withType<Test> {
|
|
useJUnitPlatform()
|
|
}
|