2019-10-15 16:27:06 +00:00
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
2020-04-23 18:35:25 +00:00
apply plugin: 'kotlin-kapt'
2019-10-15 16:27:06 +00:00
2020-06-13 15:20:00 +00:00
repositories {
// for security issues fixed version of iText 2 from JasperReports
maven {
url "http://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts"
}
}
2019-10-15 16:27:06 +00:00
android {
2020-06-03 15:49:29 +00:00
compileSdkVersion androidCompileSdkVersion
buildToolsVersion androidBuildToolsVersion
2019-10-15 16:27:06 +00:00
defaultConfig {
2020-10-22 23:10:52 +00:00
applicationId "net.codinux.banking.android"
2020-06-03 15:49:29 +00:00
minSdkVersion androidMinSdkVersion
targetSdkVersion androidTargetSdkVersion
2021-01-18 13:44:59 +00:00
versionName version . replace ( "-" , " " )
2019-10-30 21:31:53 +00:00
versionCode appVersionCode
2019-10-15 16:27:06 +00:00
2020-04-22 15:40:12 +00:00
multiDexEnabled true
2020-09-08 17:07:35 +00:00
// enable using vector drawables on pre Lollipop devices
vectorDrawables . useSupportLibrary = true
2020-04-22 15:40:12 +00:00
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2019-10-15 16:27:06 +00:00
}
2020-10-10 00:30:44 +00:00
kotlinOptions {
jvmTarget = '1.8'
}
2020-06-03 15:49:29 +00:00
compileOptions {
sourceCompatibility JavaVersion . VERSION_1_8
targetCompatibility JavaVersion . VERSION_1_8
}
2019-10-15 16:27:06 +00:00
buildTypes {
2020-12-11 23:25:32 +00:00
debug {
applicationIdSuffix = ".develop"
}
2019-10-15 16:27:06 +00:00
release {
minifyEnabled false
proguardFiles getDefaultProguardFile ( 'proguard-android-optimize.txt' ) , 'proguard-rules.pro'
}
}
2019-10-30 21:26:43 +00:00
signingConfigs {
debug {
// so that all machines have the same signing key, no matter if app is installed from developer's machine or from Jenkins
storeFile file ( 'debug-keystore.jks' )
storePassword 'find_my_bugs_before_releasing_me'
keyAlias 'DebugKey'
keyPassword 'find_my_bugs_before_releasing_me'
}
}
2019-10-30 21:27:31 +00:00
packagingOptions {
2020-06-03 15:49:29 +00:00
pickFirst 'META-INF/kotlinx-coroutines-io.kotlin_module'
pickFirst 'META-INF/kotlinx-io.kotlin_module'
pickFirst 'META-INF/kotlinx-serialization-runtime.kotlin_module'
pickFirst 'META-INF/ktor-utils.kotlin_module'
pickFirst 'META-INF/ktor-client-core.kotlin_module'
pickFirst 'META-INF/ktor-http.kotlin_module'
pickFirst 'META-INF/ktor-io.kotlin_module'
pickFirst 'META-INF/ktor-http-cio.kotlin_module'
pickFirst 'META-INF/atomicfu.kotlin_module'
2020-11-17 00:36:43 +00:00
pickFirst 'META-INF/common.kotlin_module'
pickFirst 'META-INF/fints4k.kotlin_module'
pickFirst 'META-INF/BankFinder.kotlin_module'
pickFirst 'META-INF/BankFinder.kotlin_module'
2020-06-03 15:49:29 +00:00
pickFirst 'META-INF/DEPENDENCIES'
pickFirst 'META-INF/NOTICE'
pickFirst 'META-INF/LICENSE'
pickFirst 'META-INF/LICENSE.txt'
pickFirst 'META-INF/NOTICE.txt'
2020-11-17 00:36:43 +00:00
pickFirst 'BankList.json'
exclude 'DetailedBankList.json'
2019-10-30 21:27:31 +00:00
}
lintOptions {
abortOnError false
}
2019-10-15 16:27:06 +00:00
}
dependencies {
2020-07-12 17:31:18 +00:00
implementation project ( ":fints4k" )
2020-06-03 15:49:29 +00:00
2020-01-15 22:55:16 +00:00
implementation project ( ':BankingUiCommon' )
2020-01-02 21:39:02 +00:00
2020-05-11 16:21:36 +00:00
implementation project ( ':fints4kBankingClient' )
2019-10-20 21:50:49 +00:00
2020-07-09 11:34:45 +00:00
implementation project ( ':LuceneBankFinder' )
2020-06-03 15:49:29 +00:00
2020-01-15 22:55:16 +00:00
implementation project ( ':BankingPersistenceJson' )
2020-04-25 00:45:37 +00:00
implementation project ( ':LuceneBankingPersistence' )
2020-09-15 19:12:54 +00:00
implementation project ( ':RoomBankingPersistence' )
2020-01-15 22:55:16 +00:00
2020-10-26 22:56:11 +00:00
implementation project ( ':CsvAccountTransactionsImporterAndExporter' )
2020-06-13 14:04:12 +00:00
implementation "net.dankito.text.extraction:itext2-text-extractor:$textExtractorVersion"
2020-11-07 00:39:23 +00:00
implementation "net.dankito.text.extraction:pdfbox-android-text-extractor:$textExtractorVersion" + "a" // TODO: version 0.6.0a become only necessary due to a misconfigured Maven upload task. Remove 'a' again on next version
2020-06-13 14:04:12 +00:00
2020-01-03 16:57:05 +00:00
implementation "com.github.clans:fab:$clansFloatingActionButtonVersion"
2020-10-01 18:31:40 +00:00
implementation 'info.hoang8f:android-segmented:1.0.6'
2020-01-03 16:57:05 +00:00
2020-04-23 14:54:34 +00:00
implementation "com.otaliastudios:autocomplete:$autocompleteVersion"
2020-11-07 01:11:30 +00:00
implementation ( "com.journeyapps:zxing-android-embedded:4.1.0" ) { transitive = false } // transitive to use older ZXing version as ZXing 3.4.0 requires Android > 23
2020-10-21 16:16:24 +00:00
implementation "com.google.zxing:core:$zxingVersion"
2020-11-07 01:11:30 +00:00
implementation "com.yakivmospan:scytale:$scytaleVersion"
2020-01-15 22:55:16 +00:00
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
2020-04-23 14:54:34 +00:00
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlinCoroutinesVersion"
2019-10-15 16:27:06 +00:00
2020-06-13 14:04:12 +00:00
implementation "net.dankito.filechooserdialog:filechooserdialog-android:$fileChooserDialogVersion" , {
exclude group: 'org.jetbrains.kotlin' , module: 'kotlin-stdlib'
exclude group: 'com.android.support' , module: 'appcompat-v7'
exclude group: 'com.android.support' , module: 'design'
exclude group: 'com.android.support.constraint' , module: 'constraint-layout'
exclude module: 'recyclerview-v7'
}
2020-01-15 22:55:16 +00:00
implementation "net.dankito.utils:android-utils:$androidUtilsVersion" , {
2019-10-15 16:27:06 +00:00
exclude group: 'org.jetbrains.kotlin' , module: 'kotlin-stdlib-jdk7'
exclude group: 'com.android.support' , module: 'appcompat-v7'
exclude group: 'com.android.support' , module: 'design'
}
2020-10-09 23:28:02 +00:00
// Android 4 support has been dropped with version 3.13.0
implementation ( 'com.squareup.okhttp3:okhttp' ) {
version { strictly '3.12.12' }
}
2020-04-28 14:51:26 +00:00
implementation "org.slf4j:slf4j-android:$slf4jVersion"
2019-10-15 16:27:06 +00:00
2020-04-22 15:40:12 +00:00
implementation "androidx.multidex:multidex:$multiDexVersion"
implementation "androidx.appcompat:appcompat:$appCompatVersion"
implementation "androidx.recyclerview:recyclerview:$appCompatVersion"
implementation "androidx.annotation:annotation:$appCompatVersion"
implementation "com.google.android.material:material:$materialComponentsVersion"
implementation "androidx.constraintlayout:constraintlayout:$constraintLayoutVersion"
2020-10-06 14:55:30 +00:00
implementation "androidx.biometric:biometric:$androidXBiometricVersion"
2020-10-07 19:02:00 +00:00
implementation "at.favre.lib:bcrypt:$bcryptVersion"
2020-10-06 14:55:30 +00:00
2020-09-28 01:33:02 +00:00
implementation "com.mikepenz:fastadapter:$fastAdapterVersion"
implementation "com.mikepenz:fastadapter-extensions-binding:$fastAdapterVersion"
implementation "com.mikepenz:fastadapter-extensions-drag:$fastAdapterVersion"
implementation "com.mikepenz:fastadapter-extensions-swipe:$fastAdapterVersion"
implementation "com.mikepenz:fastadapter-extensions-utils:$fastAdapterVersion"
2020-04-22 18:33:14 +00:00
// for MaterialDrawer
implementation "com.mikepenz:materialdrawer:$materialDrawerVersion"
implementation "com.mikepenz:materialdrawer-nav:$materialDrawerVersion"
implementation "com.mikepenz:materialdrawer-iconics:$materialDrawerVersion"
2020-04-22 15:40:12 +00:00
2020-04-23 18:35:25 +00:00
kapt "com.google.dagger:dagger-compiler:$daggerVersion"
implementation "com.google.dagger:dagger:$daggerVersion"
2020-10-09 23:33:02 +00:00
implementation "androidx.navigation:navigation-fragment:$androidXNavigationVersion"
implementation "androidx.navigation:navigation-ui:$androidXNavigationVersion"
implementation "androidx.navigation:navigation-fragment-ktx:$androidXNavigationVersion"
implementation "androidx.navigation:navigation-ui-ktx:$androidXNavigationVersion"
2019-10-15 16:27:06 +00:00
}