2024-07-03 11:00:45 -04:00
|
|
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
|
2023-08-16 17:58:25 -04:00
|
|
|
plugins {
|
2024-03-01 10:38:03 -05:00
|
|
|
alias(libs.plugins.androidLibrary)
|
|
|
|
alias(libs.plugins.jetbrainsKotlinAndroid)
|
2023-08-16 17:58:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
namespace 'com.vitorpamplona.quartz'
|
2024-07-03 13:49:18 -04:00
|
|
|
compileSdk libs.versions.android.compileSdk.get().toInteger()
|
2023-08-16 17:58:25 -04:00
|
|
|
|
|
|
|
defaultConfig {
|
2024-07-03 13:49:18 -04:00
|
|
|
minSdk libs.versions.android.minSdk.get().toInteger()
|
|
|
|
targetSdk libs.versions.android.targetSdk.get().toInteger()
|
2023-08-16 17:58:25 -04:00
|
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
consumerProguardFiles "consumer-rules.pro"
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
2024-01-06 10:53:54 -05:00
|
|
|
minifyEnabled true
|
2023-08-16 17:58:25 -04:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
2024-01-06 10:53:54 -05:00
|
|
|
create("benchmark") {
|
|
|
|
initWith(getByName("release"))
|
|
|
|
signingConfig signingConfigs.debug
|
|
|
|
}
|
2023-08-16 17:58:25 -04:00
|
|
|
}
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
|
|
}
|
2024-02-14 17:48:57 -05:00
|
|
|
packagingOptions {
|
2024-03-01 08:03:58 -05:00
|
|
|
resources {
|
|
|
|
excludes += ['**/libscrypt.dylib']
|
|
|
|
}
|
2024-02-14 17:48:57 -05:00
|
|
|
}
|
2023-08-16 17:58:25 -04:00
|
|
|
}
|
|
|
|
|
2024-07-03 11:00:45 -04:00
|
|
|
kotlin {
|
|
|
|
compilerOptions {
|
|
|
|
jvmTarget = JvmTarget.JVM_17
|
|
|
|
freeCompilerArgs.add("-Xstring-concat=inline")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-08-16 17:58:25 -04:00
|
|
|
dependencies {
|
2024-03-01 10:38:03 -05:00
|
|
|
implementation libs.androidx.core.ktx
|
|
|
|
|
|
|
|
implementation platform(libs.androidx.compose.bom)
|
2023-08-16 17:58:25 -04:00
|
|
|
|
|
|
|
// @Immutable and @Stable
|
2024-03-01 10:38:03 -05:00
|
|
|
implementation libs.androidx.runtime.runtime
|
2023-08-16 17:58:25 -04:00
|
|
|
|
|
|
|
// Bitcoin secp256k1 bindings to Android
|
2024-03-01 10:38:03 -05:00
|
|
|
api libs.secp256k1.kmp.jni.android
|
2023-08-16 17:58:25 -04:00
|
|
|
|
2024-02-15 16:05:53 -05:00
|
|
|
// LibSodium for ChaCha encryption (NIP-44)
|
2024-03-01 10:38:03 -05:00
|
|
|
// Wait for @aar support in version catalogs
|
2023-08-16 17:58:25 -04:00
|
|
|
implementation "com.goterl:lazysodium-android:5.1.0@aar"
|
2025-01-04 17:41:47 -05:00
|
|
|
implementation 'net.java.dev.jna:jna:5.16.0@aar'
|
2023-08-16 17:58:25 -04:00
|
|
|
|
2024-10-30 17:56:28 -04:00
|
|
|
//implementation (libs.lazysodium.android) { artifact { type = "aar" } }
|
|
|
|
//implementation (libs.jna) { artifact { type = "aar" } }
|
|
|
|
|
2024-02-15 16:05:53 -05:00
|
|
|
// Performant Parser of JSONs into Events
|
2024-07-03 13:49:43 -04:00
|
|
|
api libs.jackson.module.kotlin
|
2023-08-16 17:58:25 -04:00
|
|
|
|
|
|
|
// immutable collections to avoid recomposition
|
2024-03-01 10:38:03 -05:00
|
|
|
api libs.kotlinx.collections.immutable
|
2023-08-16 17:58:25 -04:00
|
|
|
|
|
|
|
// Parses URLs from Text:
|
2024-03-01 10:38:03 -05:00
|
|
|
api libs.url.detector
|
2023-08-16 17:58:25 -04:00
|
|
|
|
2024-11-29 14:31:31 -05:00
|
|
|
// Normalizes URLs
|
2024-06-04 18:30:01 -04:00
|
|
|
api libs.rfc3986.normalizer
|
|
|
|
|
2024-03-01 10:38:03 -05:00
|
|
|
testImplementation libs.junit
|
2024-03-19 17:33:54 -04:00
|
|
|
androidTestImplementation platform(libs.androidx.compose.bom)
|
2024-03-01 10:38:03 -05:00
|
|
|
androidTestImplementation libs.androidx.junit
|
|
|
|
androidTestImplementation libs.androidx.espresso.core
|
2023-08-16 17:58:25 -04:00
|
|
|
}
|