mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-17 13:21:50 +01:00
- This also reduces the Singleton coupling between Client and RelayPool. To migrate, create a NostrClient instance on your Application class and update your code to access that `client` instance.
65 lines
1.6 KiB
Groovy
65 lines
1.6 KiB
Groovy
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
plugins {
|
|
alias(libs.plugins.androidLibrary)
|
|
alias(libs.plugins.jetbrainsKotlinAndroid)
|
|
}
|
|
|
|
android {
|
|
namespace 'com.vitorpamplona.ammolite'
|
|
compileSdk libs.versions.android.compileSdk.get().toInteger()
|
|
|
|
defaultConfig {
|
|
minSdk libs.versions.android.minSdk.get().toInteger()
|
|
targetSdk libs.versions.android.targetSdk.get().toInteger()
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
consumerProguardFiles "consumer-rules.pro"
|
|
}
|
|
|
|
buildFeatures {
|
|
buildConfig = true
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled true
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
create("benchmark") {
|
|
initWith(getByName("release"))
|
|
signingConfig signingConfigs.debug
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
}
|
|
packagingOptions {
|
|
resources {
|
|
excludes += ['**/libscrypt.dylib']
|
|
}
|
|
}
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
jvmTarget = JvmTarget.JVM_17
|
|
freeCompilerArgs.add("-Xstring-concat=inline")
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// Lru Cache used in Relay stats
|
|
implementation libs.androidx.core.ktx
|
|
|
|
// Compose's @Immutable and @Stable classes
|
|
implementation libs.androidx.runtime.runtime
|
|
|
|
implementation project(path: ':quartz')
|
|
|
|
testImplementation libs.junit
|
|
|
|
androidTestImplementation libs.androidx.junit
|
|
androidTestImplementation libs.androidx.espresso.core
|
|
} |