102 lines
3.4 KiB
Groovy
102 lines
3.4 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'org.jetbrains.kotlin.android'
|
|
id 'org.jlleitschuh.gradle.ktlint' version "11.3.1"
|
|
}
|
|
|
|
android {
|
|
namespace 'com.greenart7c3.nostrsigner'
|
|
compileSdk 33
|
|
|
|
defaultConfig {
|
|
applicationId "com.greenart7c3.nostrsigner"
|
|
minSdk 26
|
|
targetSdk 33
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
vectorDrawables {
|
|
useSupportLibrary true
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '1.8'
|
|
}
|
|
buildFeatures {
|
|
compose true
|
|
}
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion '1.3.2'
|
|
}
|
|
packagingOptions {
|
|
resources {
|
|
excludes += '/META-INF/{AL2.0,LGPL2.1}'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
|
|
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"
|
|
|
|
// Needs this to open gallery / image upload
|
|
implementation "androidx.fragment:fragment-ktx:$fragment_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.compose.material:material-icons-extended:1.4.3"
|
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
|
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
|
androidTestImplementation platform('androidx.compose:compose-bom:2022.10.00')
|
|
androidTestImplementation 'androidx.compose.ui:ui-test-junit4'
|
|
debugImplementation 'androidx.compose.ui:ui-tooling'
|
|
debugImplementation 'androidx.compose.ui:ui-test-manifest'
|
|
|
|
// 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"
|
|
implementation "androidx.lifecycle:lifecycle-livedata:$lifecycle_version"
|
|
|
|
// For QR generation
|
|
implementation 'com.google.zxing:core:3.5.1'
|
|
implementation 'com.journeyapps:zxing-android-embedded:4.3.0'
|
|
|
|
// Json Serialization TODO: We might need to converge between gson and Jackson (we are usin both)
|
|
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.15.2'
|
|
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
|
|
|
|
// Websockets API
|
|
implementation 'com.squareup.okhttp3:okhttp:5.0.0-alpha.11'
|
|
} |