amethyst/app/build.gradle

135 wiersze
4.6 KiB
Groovy
Czysty Zwykły widok Historia

2023-01-11 18:31:20 +00:00
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
}
android {
namespace 'com.vitorpamplona.amethyst'
compileSdk 33
defaultConfig {
applicationId "com.vitorpamplona.amethyst"
minSdk 26
targetSdk 33
2023-02-06 01:26:47 +00:00
versionCode 37
versionName "0.13.1"
2023-01-11 18:31:20 +00:00
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary true
}
}
buildTypes {
release {
2023-01-26 03:11:05 +00:00
//minifyEnabled false
//proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
2023-01-11 18:31:20 +00:00
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = '11'
}
buildFeatures {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion '1.4.0'
2023-01-11 18:31:20 +00:00
}
packagingOptions {
resources {
excludes += '/META-INF/{AL2.0,LGPL2.1}'
}
}
}
dependencies {
implementation 'androidx.core:core-ktx:1.9.0'
implementation 'androidx.activity:activity-compose:1.6.1'
implementation "androidx.compose.ui:ui:$compose_ui_version"
implementation "androidx.compose.ui:ui-tooling-preview:$compose_ui_version"
// Navigation
implementation("androidx.navigation:navigation-compose:$nav_version")
// Observe Live data as State
2023-01-15 16:25:45 +00:00
implementation 'androidx.compose.runtime:runtime-livedata:1.4.0-alpha04'
2023-01-11 18:31:20 +00:00
implementation 'androidx.compose.material:material:1.4.0-alpha05'
implementation "androidx.compose.material:material-icons-extended:1.4.0-alpha05"
// Lifecycle
implementation 'androidx.lifecycle:lifecycle-runtime-compose:2.6.0-alpha05'
2023-01-25 22:27:09 +00:00
implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.6.0-alpha05'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.0-alpha05'
implementation 'androidx.lifecycle:lifecycle-livedata:2.6.0-alpha05'
2023-01-11 18:31:20 +00:00
// Swipe Refresh
2023-01-23 23:30:40 +00:00
implementation 'com.google.accompanist:accompanist-swiperefresh:0.29.0-alpha'
2023-01-11 18:31:20 +00:00
// Bitcoin secp256k1 bindings to Android
2023-01-23 23:30:40 +00:00
implementation 'fr.acinq.secp256k1:secp256k1-kmp-jni-android:0.7.1'
2023-01-11 18:31:20 +00:00
// Nostr Base Protocol
implementation('com.github.vitorpamplona.NostrPostr:nostrpostrlib:master-SNAPSHOT') {
exclude group:'fr.acinq.secp256k1'
exclude module: 'guava'
exclude module: 'guava-testlib'
}
2023-01-23 23:30:40 +00:00
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
2023-01-11 18:31:20 +00:00
// Websockets API
2023-01-18 14:18:34 +00:00
implementation 'com.squareup.okhttp3:okhttp:5.0.0-alpha.11'
2023-01-11 18:31:20 +00:00
// Json Serialization
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.14.2'
2023-01-11 18:31:20 +00:00
// link preview
implementation 'tw.com.oneup.www:Baha-UrlPreview:1.0.1'
implementation 'androidx.security:security-crypto-ktx:1.1.0-alpha04'
2023-01-13 03:40:39 +00:00
// view videos
implementation 'com.google.android.exoplayer:exoplayer:2.18.2'
// Load images from the web.
implementation "io.coil-kt:coil-compose:2.2.2"
2023-01-16 17:57:23 +00:00
// view gifs
implementation "io.coil-kt:coil-gif:2.2.2"
// view svgs
implementation("io.coil-kt:coil-svg:2.2.2")
// Rendering clickable text
implementation "com.google.accompanist:accompanist-flowlayout:$accompanist_version"
// Permission to upload pictures:
implementation "com.google.accompanist:accompanist-permissions:$accompanist_version"
2023-01-16 02:52:59 +00:00
// tabs for user profiles
implementation "com.google.accompanist:accompanist-pager:$accompanist_version" // Pager
2023-01-16 17:57:23 +00:00
implementation "com.google.accompanist:accompanist-pager-indicators:$accompanist_version"
2023-01-16 02:52:59 +00:00
// For QR generation
implementation 'com.google.zxing:core:3.5.1'
implementation "androidx.camera:camera-camera2:1.2.1"
implementation 'androidx.camera:camera-lifecycle:1.2.1'
implementation 'androidx.camera:camera-view:1.2.1'
// For QR Scanning
implementation 'com.google.mlkit:vision-common:17.3.0'
2023-02-05 17:59:35 +00:00
// Local Barcode Scanning model
implementation 'com.google.android.gms:play-services-mlkit-barcode-scanning:18.1.0'
// Use this dependency to use the translate text
implementation 'com.google.mlkit:translate:17.0.1'
implementation 'com.google.android.gms:play-services-mlkit-language-id:17.0.0'
2023-01-11 18:31:20 +00:00
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
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"
}