2023-08-16 21:58:25 +00:00
|
|
|
plugins {
|
|
|
|
id 'com.android.library'
|
|
|
|
id 'org.jetbrains.kotlin.android'
|
|
|
|
id 'org.jetbrains.kotlin.plugin.serialization'
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
namespace 'com.vitorpamplona.quartz'
|
2023-08-18 23:32:30 +00:00
|
|
|
compileSdk 34
|
2023-08-16 21:58:25 +00:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
minSdk 26
|
2023-08-18 23:32:30 +00:00
|
|
|
targetSdk 34
|
2023-08-16 21:58:25 +00:00
|
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
consumerProguardFiles "consumer-rules.pro"
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
2024-01-06 15:53:54 +00:00
|
|
|
minifyEnabled true
|
2023-08-16 21:58:25 +00:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
2024-01-06 15:53:54 +00:00
|
|
|
create("benchmark") {
|
|
|
|
initWith(getByName("release"))
|
|
|
|
signingConfig signingConfigs.debug
|
|
|
|
}
|
2023-08-16 21:58:25 +00:00
|
|
|
}
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
|
|
}
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = '17'
|
2024-01-06 16:13:57 +00:00
|
|
|
freeCompilerArgs += "-Xstring-concat=inline"
|
2023-08-16 21:58:25 +00:00
|
|
|
}
|
2024-02-14 22:48:57 +00:00
|
|
|
|
|
|
|
packagingOptions {
|
2024-02-25 16:39:48 +00:00
|
|
|
// delete native scrypt lib because we cannot use dylibs in android
|
2024-02-14 22:48:57 +00:00
|
|
|
exclude '**/libscrypt.dylib'
|
|
|
|
}
|
2023-08-16 21:58:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2023-08-22 15:05:17 +00:00
|
|
|
implementation "androidx.core:core-ktx:$core_ktx_version"
|
2023-08-16 21:58:25 +00:00
|
|
|
|
|
|
|
// @Immutable and @Stable
|
|
|
|
implementation "androidx.compose.runtime:runtime:$compose_ui_version"
|
|
|
|
|
|
|
|
// Bitcoin secp256k1 bindings to Android
|
2024-02-16 20:40:53 +00:00
|
|
|
api 'fr.acinq.secp256k1:secp256k1-kmp-jni-android:0.14.0'
|
2023-08-16 21:58:25 +00:00
|
|
|
|
2024-02-15 21:05:53 +00:00
|
|
|
// LibSodium for ChaCha encryption (NIP-44)
|
2023-08-16 21:58:25 +00:00
|
|
|
implementation "com.goterl:lazysodium-android:5.1.0@aar"
|
2023-12-10 23:32:47 +00:00
|
|
|
implementation 'net.java.dev.jna:jna:5.14.0@aar'
|
2023-08-16 21:58:25 +00:00
|
|
|
|
2024-02-15 21:05:53 +00:00
|
|
|
// Performant Parser of JSONs into Events
|
2023-12-26 19:43:01 +00:00
|
|
|
api 'com.fasterxml.jackson.module:jackson-module-kotlin:2.16.1'
|
2023-08-16 21:58:25 +00:00
|
|
|
|
|
|
|
// immutable collections to avoid recomposition
|
2023-12-22 15:25:28 +00:00
|
|
|
api('org.jetbrains.kotlinx:kotlinx-collections-immutable:0.3.7')
|
2023-08-16 21:58:25 +00:00
|
|
|
|
|
|
|
// Parses URLs from Text:
|
|
|
|
api "io.github.url-detector:url-detector:0.1.23"
|
|
|
|
|
|
|
|
testImplementation 'junit:junit:4.13.2'
|
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
|
|
|
}
|