2018-10-29 21:49:42 +00:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
apply plugin: 'kotlin-android'
|
|
|
|
apply plugin: 'kotlin-android-extensions'
|
2018-10-31 16:02:33 +00:00
|
|
|
apply plugin: 'kotlin-kapt'
|
2019-02-05 21:14:10 +00:00
|
|
|
apply plugin: "androidx.navigation.safeargs.kotlin"
|
2018-12-14 21:23:12 +00:00
|
|
|
apply plugin: 'io.fabric'
|
|
|
|
apply plugin: 'com.google.gms.google-services'
|
2018-10-29 21:49:42 +00:00
|
|
|
|
2019-08-22 16:41:01 +00:00
|
|
|
// Needed for Kotlin's @Parcelize annotation
|
|
|
|
androidExtensions {
|
|
|
|
experimental = true
|
|
|
|
}
|
|
|
|
|
2018-10-29 21:49:42 +00:00
|
|
|
android {
|
|
|
|
compileSdkVersion 28
|
|
|
|
defaultConfig {
|
2018-10-30 02:30:53 +00:00
|
|
|
applicationId "cy.agorise.bitsybitshareswallet"
|
2018-10-29 21:49:42 +00:00
|
|
|
minSdkVersion 21
|
|
|
|
targetSdkVersion 28
|
2019-04-26 21:23:57 +00:00
|
|
|
versionCode 7
|
|
|
|
versionName "0.12.1-beta"
|
2018-10-31 14:55:55 +00:00
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2019-01-22 19:28:17 +00:00
|
|
|
|
|
|
|
javaCompileOptions {
|
|
|
|
annotationProcessorOptions {
|
|
|
|
arguments = ["room.schemaLocation":
|
|
|
|
"$projectDir/schemas".toString()]
|
|
|
|
}
|
|
|
|
}
|
2019-01-31 20:09:02 +00:00
|
|
|
sourceSets {
|
|
|
|
androidTest.assets.srcDirs += files("$projectDir/schemas".toString())
|
|
|
|
}
|
2018-10-29 21:49:42 +00:00
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
release {
|
2019-04-26 21:23:04 +00:00
|
|
|
minifyEnabled true
|
|
|
|
shrinkResources true
|
2018-10-29 21:49:42 +00:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
2019-01-31 03:38:01 +00:00
|
|
|
// enable crashlytics
|
2019-01-31 18:18:21 +00:00
|
|
|
ext.enableCrashlytics = true
|
2018-10-29 21:49:42 +00:00
|
|
|
}
|
2018-11-21 19:13:07 +00:00
|
|
|
debug {
|
|
|
|
resValue("string", "PORT_NUMBER", "8082")
|
2019-01-31 03:38:01 +00:00
|
|
|
// disable crashlytics
|
2019-01-31 18:18:21 +00:00
|
|
|
ext.enableCrashlytics = false
|
2018-11-21 19:13:07 +00:00
|
|
|
}
|
2018-10-29 21:49:42 +00:00
|
|
|
}
|
2018-11-23 02:13:10 +00:00
|
|
|
android.packagingOptions {
|
|
|
|
exclude 'lib/x86_64/darwin/libscrypt.dylib'
|
|
|
|
exclude 'lib/x86_64/freebsd/libscrypt.so'
|
|
|
|
exclude 'lib/x86_64/linux/libscrypt.so'
|
|
|
|
}
|
2019-01-02 15:59:30 +00:00
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
2019-01-28 23:34:07 +00:00
|
|
|
// Gradle automatically adds 'android.test.runner' as a dependency.
|
|
|
|
useLibrary 'android.test.runner'
|
|
|
|
useLibrary 'android.test.base'
|
|
|
|
useLibrary 'android.test.mock'
|
|
|
|
|
2018-10-29 21:49:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2018-10-31 16:02:33 +00:00
|
|
|
def lifecycle_version = "2.0.0"
|
2019-08-22 16:02:09 +00:00
|
|
|
def room_version = "2.1.0"
|
2018-12-24 16:55:54 +00:00
|
|
|
def rx_bindings_version = "3.0.0-alpha2"
|
2018-10-31 16:02:33 +00:00
|
|
|
|
2018-10-29 21:49:42 +00:00
|
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
2018-10-31 14:27:09 +00:00
|
|
|
implementation project(':graphenejlib:graphenej')
|
2018-10-30 15:11:19 +00:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
2018-12-14 20:20:16 +00:00
|
|
|
// AndroidX
|
2018-11-21 19:13:07 +00:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.0.2'
|
2019-08-22 16:02:09 +00:00
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta2'
|
2018-12-14 20:20:16 +00:00
|
|
|
// Google
|
2019-08-22 16:02:09 +00:00
|
|
|
implementation 'com.google.zxing:core:3.3.3'
|
2018-12-14 20:20:16 +00:00
|
|
|
implementation 'com.google.code.gson:gson:2.8.5'
|
2019-03-20 00:05:08 +00:00
|
|
|
implementation 'com.google.android.material:material:1.1.0-alpha04'
|
2019-08-22 16:02:09 +00:00
|
|
|
implementation 'com.google.android.gms:play-services-maps:17.0.0'
|
2019-02-05 18:36:04 +00:00
|
|
|
implementation 'com.google.maps.android:android-maps-utils:0.5'
|
2018-12-14 20:20:16 +00:00
|
|
|
// AAC Lifecycle
|
2018-10-31 16:02:33 +00:00
|
|
|
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_version"
|
2019-08-22 16:02:09 +00:00
|
|
|
implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version"
|
2018-12-14 20:20:16 +00:00
|
|
|
// AAC Room
|
2018-10-31 16:02:33 +00:00
|
|
|
implementation "androidx.room:room-runtime:$room_version"
|
2018-11-28 03:42:39 +00:00
|
|
|
implementation "androidx.room:room-rxjava2:$room_version" // RxJava support for Room
|
2019-08-23 17:48:58 +00:00
|
|
|
implementation "androidx.room:room-ktx:$room_version" // Coroutines support for Room
|
|
|
|
kapt "androidx.room:room-compiler:$room_version"
|
2018-12-14 20:20:16 +00:00
|
|
|
// AAC Navigation
|
2019-04-12 01:43:58 +00:00
|
|
|
implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
|
|
|
|
implementation "androidx.navigation:navigation-ui-ktx:$nav_version"
|
2019-04-26 17:23:26 +00:00
|
|
|
// Kotlin Coroutines
|
|
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$version_coroutine"
|
|
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$version_coroutine"
|
2019-08-22 16:02:09 +00:00
|
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0-alpha03"
|
2018-12-24 16:55:54 +00:00
|
|
|
// RxBindings
|
|
|
|
implementation "com.jakewharton.rxbinding3:rxbinding:$rx_bindings_version"
|
|
|
|
implementation "com.jakewharton.rxbinding3:rxbinding-material:$rx_bindings_version" // Material Components widgets
|
|
|
|
implementation "com.jakewharton.rxbinding3:rxbinding-appcompat:$rx_bindings_version" // AndroidX appcompat widgets
|
2019-01-08 22:35:14 +00:00
|
|
|
// Retrofit & OkHttp
|
2019-08-22 16:02:09 +00:00
|
|
|
implementation 'com.squareup.retrofit2:retrofit:2.6.0'
|
|
|
|
implementation 'com.squareup.retrofit2:converter-gson:2.6.0'
|
2019-01-08 22:35:14 +00:00
|
|
|
implementation 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0'
|
2019-08-22 16:02:09 +00:00
|
|
|
implementation 'com.squareup.okhttp3:okhttp:3.12.2'
|
|
|
|
implementation 'com.squareup.okhttp3:logging-interceptor:3.12.2'
|
2018-12-14 21:23:12 +00:00
|
|
|
//Firebase
|
2019-08-22 16:02:09 +00:00
|
|
|
implementation 'com.google.firebase:firebase-core:17.1.0'
|
|
|
|
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
|
2019-02-05 16:50:40 +00:00
|
|
|
// PDF and CSV generation
|
|
|
|
implementation 'com.itextpdf:itextpdf:5.5.13'
|
|
|
|
implementation 'com.opencsv:opencsv:3.7'
|
2018-12-14 20:20:16 +00:00
|
|
|
// Others
|
2019-03-20 00:05:08 +00:00
|
|
|
api 'com.google.guava:guava:27.0.1-android'
|
2018-11-23 02:13:10 +00:00
|
|
|
implementation 'org.bitcoinj:bitcoinj-core:0.14.3'
|
2018-11-24 15:11:57 +00:00
|
|
|
implementation 'com.moldedbits.r2d2:r2d2:1.0.1'
|
2018-11-23 02:13:10 +00:00
|
|
|
implementation 'me.dm7.barcodescanner:zxing:1.9.8'
|
2019-02-21 15:36:50 +00:00
|
|
|
implementation 'com.afollestad.material-dialogs:core:2.0.0'
|
2019-02-14 15:06:22 +00:00
|
|
|
implementation 'com.andrognito.patternlockview:patternlockview:1.0.0'
|
2018-11-21 19:13:07 +00:00
|
|
|
// Android Debug Database
|
2019-04-26 17:16:33 +00:00
|
|
|
debugImplementation 'com.amitshekhar.android:debug-db:1.0.6'
|
2018-11-21 19:13:07 +00:00
|
|
|
|
2019-02-21 15:30:05 +00:00
|
|
|
// Testing libs
|
2019-01-28 23:34:07 +00:00
|
|
|
testImplementation 'junit:junit:4.12'
|
2019-08-22 16:02:09 +00:00
|
|
|
androidTestImplementation 'androidx.test:core:1.2.0'
|
2019-01-28 23:34:07 +00:00
|
|
|
|
2019-02-01 01:11:35 +00:00
|
|
|
androidTestImplementation "androidx.arch.core:core-testing:$lifecycle_version"
|
2019-01-31 20:09:02 +00:00
|
|
|
androidTestImplementation "androidx.room:room-testing:$room_version"
|
2019-08-22 16:02:09 +00:00
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
|
2019-02-01 01:11:35 +00:00
|
|
|
androidTestImplementation 'com.jraska.livedata:testing-ktx:1.0.0'
|
2018-10-29 21:49:42 +00:00
|
|
|
}
|
2019-03-20 00:05:08 +00:00
|
|
|
|
|
|
|
// Added to avoid the compilation problem due to a duplicate ListenableFuture library
|
|
|
|
afterEvaluate {
|
|
|
|
configurations.all {
|
|
|
|
def group = 'com.google.guava', name = 'guava', version = '27.0.1-android'
|
|
|
|
resolutionStrategy.eachDependency { details ->
|
|
|
|
if (requested.group == group && requested.name == name) {
|
|
|
|
details.useTarget group: details.requested.group, name: name, version: version
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|