51 lines
1.3 KiB
Kotlin
51 lines
1.3 KiB
Kotlin
|
|
plugins {
|
||
|
|
id("com.android.library")
|
||
|
|
kotlin("android")
|
||
|
|
}
|
||
|
|
|
||
|
|
android {
|
||
|
|
namespace = "no.zyon.shade"
|
||
|
|
compileSdk = 35
|
||
|
|
|
||
|
|
defaultConfig {
|
||
|
|
minSdk = 26
|
||
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||
|
|
}
|
||
|
|
|
||
|
|
buildFeatures {
|
||
|
|
buildConfig = true
|
||
|
|
}
|
||
|
|
|
||
|
|
compileOptions {
|
||
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
||
|
|
targetCompatibility = JavaVersion.VERSION_17
|
||
|
|
}
|
||
|
|
|
||
|
|
kotlinOptions {
|
||
|
|
jvmTarget = "17"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
dependencies {
|
||
|
|
// Google Tink for X25519, Ed25519, AES-GCM, HMAC, HKDF
|
||
|
|
implementation("com.google.crypto.tink:tink-android:1.15.0")
|
||
|
|
|
||
|
|
// Android Keystore + EncryptedSharedPreferences
|
||
|
|
implementation("androidx.security:security-crypto:1.1.0-alpha06")
|
||
|
|
|
||
|
|
// JSON serialization for session state
|
||
|
|
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3")
|
||
|
|
|
||
|
|
// Coroutines for async interop
|
||
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0")
|
||
|
|
|
||
|
|
// SQLite for session storage (optional; can also use EncryptedSharedPreferences only)
|
||
|
|
implementation("androidx.sqlite:sqlite:2.4.0")
|
||
|
|
|
||
|
|
// OkHttp for transport
|
||
|
|
implementation("com.squareup.okhttp3:okhttp:4.12.0")
|
||
|
|
|
||
|
|
testImplementation("junit:junit:4.13.2")
|
||
|
|
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0")
|
||
|
|
}
|