mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-05 19:08:23 +00:00
126 lines
3.9 KiB
Groovy
126 lines
3.9 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'org.jetbrains.kotlin.android'
|
|
id 'org.jlleitschuh.gradle.ktlint' version "11.5.0"
|
|
}
|
|
|
|
android {
|
|
namespace 'com.greenart7c3.nostrsigner'
|
|
compileSdk 34
|
|
|
|
defaultConfig {
|
|
applicationId "com.greenart7c3.nostrsigner"
|
|
minSdk 26
|
|
targetSdk 34
|
|
versionCode 7
|
|
versionName "0.0.7"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
vectorDrawables {
|
|
useSupportLibrary true
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
// minifyEnabled false
|
|
// proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
resValue "string", "app_name", "@string/app_name_release"
|
|
}
|
|
debug {
|
|
applicationIdSuffix '.debug'
|
|
versionNameSuffix '-DEBUG'
|
|
resValue "string", "app_name", "@string/app_name_debug"
|
|
}
|
|
}
|
|
|
|
splits {
|
|
abi {
|
|
enable true
|
|
reset()
|
|
include "x86", "x86_64"
|
|
universalApk true
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = '17'
|
|
}
|
|
|
|
buildFeatures {
|
|
compose true
|
|
}
|
|
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion = "1.5.1"
|
|
}
|
|
|
|
packagingOptions {
|
|
resources {
|
|
excludes += '/META-INF/{AL2.0,LGPL2.1}'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(path: ':quartz')
|
|
implementation "androidx.core:core-splashscreen:1.0.1"
|
|
|
|
implementation 'androidx.core:core-ktx:1.10.1'
|
|
implementation 'androidx.activity:activity-compose:1.7.2'
|
|
implementation "androidx.compose.ui:ui:$compose_ui_version"
|
|
implementation "androidx.compose.ui:ui-tooling-preview:$compose_ui_version"
|
|
|
|
implementation "androidx.compose.runtime:runtime-livedata:$compose_ui_version"
|
|
|
|
// Navigation
|
|
implementation "androidx.navigation:navigation-compose:$nav_version"
|
|
|
|
// Observe Live data as State
|
|
implementation "androidx.compose.runtime:runtime-livedata:$compose_ui_version"
|
|
|
|
implementation "androidx.compose.material:material:$compose_ui_version"
|
|
implementation "androidx.compose.material:material-icons-extended:$compose_ui_version"
|
|
|
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
|
|
|
testImplementation 'junit:junit:4.13.2'
|
|
testImplementation 'io.mockk:mockk:1.13.7'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.2.0-alpha01'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
|
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_ui_version"
|
|
debugImplementation "androidx.compose.ui:ui-tooling:$compose_ui_version"
|
|
debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_ui_version"
|
|
|
|
// Bitcoin secp256k1 bindings to Android
|
|
implementation 'fr.acinq.secp256k1:secp256k1-kmp-jni-android:0.10.1'
|
|
|
|
implementation 'androidx.security:security-crypto-ktx:1.1.0-alpha06'
|
|
|
|
// Lifecycle
|
|
implementation "androidx.lifecycle:lifecycle-runtime-compose:$lifecycle_version"
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-compose:$lifecycle_version"
|
|
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version"
|
|
|
|
// For QR generation
|
|
implementation 'com.google.zxing:core:3.5.2'
|
|
implementation 'com.journeyapps:zxing-android-embedded:4.3.0'
|
|
|
|
// Json Serialization
|
|
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
|
|
|
|
// Markdown (With fix for full-image bleeds)
|
|
implementation('com.github.vitorpamplona.compose-richtext:richtext-ui:a0954aba63')
|
|
implementation('com.github.vitorpamplona.compose-richtext:richtext-ui-material:a0954aba63')
|
|
implementation('com.github.vitorpamplona.compose-richtext:richtext-commonmark:a0954aba63')
|
|
|
|
// Biometrics
|
|
implementation "androidx.biometric:biometric-ktx:1.2.0-alpha05"
|
|
|
|
|
|
} |