2015-08-05 19:48:41 +02:00
|
|
|
apply plugin: 'com.android.application'
|
2017-07-28 07:39:57 +02:00
|
|
|
apply plugin: 'kotlin-android'
|
2017-08-03 00:00:23 +02:00
|
|
|
apply plugin: 'kotlin-android-extensions'
|
2017-07-10 06:21:29 +02:00
|
|
|
apply plugin: 'idea'
|
2015-08-05 19:48:41 +02:00
|
|
|
|
2016-08-12 23:54:01 +02:00
|
|
|
ext {
|
|
|
|
appName = "Abit"
|
|
|
|
}
|
|
|
|
if (project.hasProperty("project.configs")
|
2016-10-16 23:16:38 +02:00
|
|
|
&& new File(project.property("project.configs") + appName + ".gradle").exists()) {
|
2017-10-31 07:50:57 +01:00
|
|
|
apply from: project.property("project.configs") + appName + ".gradle"
|
2016-08-12 23:54:01 +02:00
|
|
|
}
|
|
|
|
|
2016-10-16 23:16:38 +02:00
|
|
|
//noinspection GroovyMissingReturnStatement
|
2015-08-05 19:48:41 +02:00
|
|
|
android {
|
2018-09-27 07:19:03 +02:00
|
|
|
compileSdkVersion 28
|
|
|
|
buildToolsVersion "28.0.3"
|
2015-08-05 19:48:41 +02:00
|
|
|
|
2018-04-03 22:11:37 +02:00
|
|
|
signingConfigs {
|
|
|
|
release
|
|
|
|
}
|
2015-08-05 19:48:41 +02:00
|
|
|
defaultConfig {
|
2018-01-13 21:59:20 +01:00
|
|
|
applicationId "ch.dissem.apps.${appName.toLowerCase()}"
|
2018-06-13 22:03:06 +02:00
|
|
|
minSdkVersion 21
|
2018-09-27 07:19:03 +02:00
|
|
|
targetSdkVersion 28
|
2018-02-25 23:35:03 +01:00
|
|
|
versionCode 23
|
2018-02-24 08:49:05 +01:00
|
|
|
versionName "1.0-rc1"
|
2017-04-16 22:36:23 +02:00
|
|
|
multiDexEnabled true
|
2016-10-16 23:16:38 +02:00
|
|
|
}
|
|
|
|
compileOptions {
|
2016-11-03 23:04:41 +01:00
|
|
|
sourceCompatibility JavaVersion.VERSION_1_7
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_7
|
2015-08-05 19:48:41 +02:00
|
|
|
}
|
2017-10-31 07:50:57 +01:00
|
|
|
lintOptions {
|
|
|
|
abortOnError false
|
|
|
|
}
|
2015-08-05 19:48:41 +02:00
|
|
|
buildTypes {
|
|
|
|
release {
|
2016-11-04 22:03:04 +01:00
|
|
|
minifyEnabled false
|
|
|
|
shrinkResources false
|
2015-08-05 19:48:41 +02:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
2016-01-01 15:35:16 +01:00
|
|
|
signingConfig signingConfigs.release
|
2015-08-05 19:48:41 +02:00
|
|
|
}
|
|
|
|
}
|
2017-11-21 20:12:31 +01:00
|
|
|
packagingOptions {
|
|
|
|
exclude 'META-INF/core.kotlin_module'
|
|
|
|
}
|
2017-10-31 07:50:57 +01:00
|
|
|
testOptions {
|
|
|
|
unitTests {
|
|
|
|
includeAndroidResources = true
|
|
|
|
}
|
|
|
|
}
|
2015-08-05 19:48:41 +02:00
|
|
|
}
|
|
|
|
|
2016-12-05 12:37:32 +01:00
|
|
|
//ext.jabitVersion = '2.0.4'
|
2017-11-23 20:33:00 +01:00
|
|
|
ext.jabitVersion = 'feature-refactoring-SNAPSHOT'
|
2018-05-23 19:04:27 +02:00
|
|
|
ext.supportVersion = '27.1.1'
|
2015-08-05 19:48:41 +02:00
|
|
|
dependencies {
|
2017-10-31 07:50:57 +01:00
|
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
2017-12-30 19:21:25 +01:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
2018-05-23 19:04:27 +02:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
2017-10-31 07:50:57 +01:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
|
|
|
implementation "org.jetbrains.anko:anko:$anko_version"
|
2017-04-04 06:29:44 +02:00
|
|
|
|
2018-09-27 07:19:03 +02:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.0.0'
|
|
|
|
implementation 'androidx.preference:preference:1.0.0'
|
|
|
|
implementation 'androidx.cardview:cardview:1.0.0'
|
|
|
|
implementation 'androidx.legacy:legacy-support-v13:1.0.0'
|
|
|
|
implementation 'androidx.legacy:legacy-preference-v14:1.0.0'
|
|
|
|
implementation 'com.google.android.material:material:1.0.0'
|
|
|
|
implementation 'androidx.multidex:multidex:2.0.0'
|
|
|
|
implementation 'androidx.core:core-ktx:1.0.0'
|
|
|
|
implementation 'androidx.sqlite:sqlite-ktx:2.0.0-rc01'
|
|
|
|
implementation 'androidx.fragment:fragment-ktx:1.0.0'
|
2015-08-05 19:48:41 +02:00
|
|
|
|
2017-10-31 07:50:57 +01:00
|
|
|
implementation "ch.dissem.jabit:jabit-core:$jabitVersion"
|
|
|
|
implementation "ch.dissem.jabit:jabit-networking:$jabitVersion"
|
|
|
|
implementation "ch.dissem.jabit:jabit-extensions:$jabitVersion"
|
|
|
|
implementation "ch.dissem.jabit:jabit-wif:$jabitVersion"
|
|
|
|
implementation "ch.dissem.jabit:jabit-exports:$jabitVersion"
|
2018-04-03 22:11:37 +02:00
|
|
|
implementation "ch.dissem.jabit:jabit-cryptography-spongy:$jabitVersion"
|
|
|
|
testImplementation "ch.dissem.jabit:jabit-cryptography-bouncy:$jabitVersion"
|
2015-08-05 19:48:41 +02:00
|
|
|
|
2017-10-31 07:50:57 +01:00
|
|
|
implementation 'org.slf4j:slf4j-android:1.7.25'
|
2015-08-05 19:48:41 +02:00
|
|
|
|
2018-09-27 07:19:03 +02:00
|
|
|
implementation 'com.mikepenz:materialize:1.2.0-rc01@aar'
|
|
|
|
implementation('com.mikepenz:materialdrawer:6.1.0-rc01.2@aar') {
|
2015-08-05 19:48:41 +02:00
|
|
|
transitive = true
|
|
|
|
}
|
2018-09-27 07:19:03 +02:00
|
|
|
implementation('com.mikepenz:aboutlibraries:6.2.0-rc01@aar') {
|
2015-12-27 22:07:44 +01:00
|
|
|
transitive = true
|
|
|
|
}
|
2018-09-27 07:19:03 +02:00
|
|
|
implementation "com.mikepenz:iconics-core:3.1.0-rc01@aar"
|
|
|
|
implementation "com.mikepenz:iconics-views:3.1.0-rc01@aar"
|
2017-12-30 19:21:25 +01:00
|
|
|
implementation 'com.mikepenz:google-material-typeface:3.0.1.2.original@aar'
|
|
|
|
implementation 'com.mikepenz:community-material-typeface:2.0.46.1@aar'
|
2016-01-29 18:05:43 +01:00
|
|
|
|
2018-03-05 09:43:40 +01:00
|
|
|
implementation 'com.journeyapps:zxing-android-embedded:3.6.0@aar'
|
2018-07-05 18:40:48 +02:00
|
|
|
implementation 'com.google.zxing:core:3.3.3'
|
2017-04-04 06:29:44 +02:00
|
|
|
|
2018-03-05 09:43:40 +01:00
|
|
|
implementation 'com.github.kobakei:MaterialFabSpeedDial:1.2.0'
|
2018-05-23 19:04:27 +02:00
|
|
|
implementation 'com.github.deano2390:MaterialShowcaseView:1.2.0@aar'
|
2017-10-31 07:50:57 +01:00
|
|
|
implementation 'com.github.angads25:filepicker:1.1.1'
|
2018-09-27 07:19:03 +02:00
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha2'
|
|
|
|
|
|
|
|
implementation "io.reactivex.rxjava2:rxjava:2.2.2"
|
|
|
|
implementation "io.reactivex.rxjava2:rxkotlin:2.3.0"
|
|
|
|
implementation "io.reactivex.rxjava2:rxandroid:2.1.0"
|
2017-10-31 07:50:57 +01:00
|
|
|
|
|
|
|
testImplementation 'junit:junit:4.12'
|
2018-07-05 18:40:48 +02:00
|
|
|
testImplementation 'org.mockito:mockito-core:2.19.0'
|
2017-10-31 07:50:57 +01:00
|
|
|
testImplementation 'org.hamcrest:hamcrest-library:1.3'
|
2018-07-05 18:40:48 +02:00
|
|
|
testImplementation 'com.nhaarman:mockito-kotlin-kt1.1:1.6.0'
|
2017-10-31 07:50:57 +01:00
|
|
|
testImplementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
2018-03-05 09:43:40 +01:00
|
|
|
testImplementation 'org.robolectric:robolectric:3.7.1'
|
|
|
|
testImplementation "org.robolectric:shadows-multidex:3.7.1"
|
2016-04-25 09:27:36 +02:00
|
|
|
|
2018-09-27 07:19:03 +02:00
|
|
|
androidTestImplementation "androidx.multidex:multidex:2.0.0"
|
2015-08-05 19:48:41 +02:00
|
|
|
}
|
2016-01-01 15:35:16 +01:00
|
|
|
|
2015-08-05 19:48:41 +02:00
|
|
|
idea.module {
|
|
|
|
downloadJavadoc = true
|
|
|
|
downloadSources = true
|
|
|
|
}
|