2017-05-30 00:05:26 +02:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
apply plugin: 'kotlin-android'
|
2017-06-29 19:12:18 +02:00
|
|
|
apply plugin: 'kotlin-kapt'
|
2017-12-31 23:14:26 +01:00
|
|
|
apply plugin: 'com.getkeepsafe.dexcount'
|
2018-04-07 20:41:28 +02:00
|
|
|
apply plugin: 'com.gladed.androidgitversion'
|
2017-07-03 04:55:52 +02:00
|
|
|
|
2017-05-30 00:05:26 +02:00
|
|
|
android {
|
2018-01-25 06:23:44 +01:00
|
|
|
compileSdkVersion kau.targetSdk
|
|
|
|
buildToolsVersion kau.buildTools
|
2017-05-30 00:05:26 +02:00
|
|
|
|
2017-07-02 20:57:57 +02:00
|
|
|
androidGitVersion {
|
2017-08-15 05:48:39 +02:00
|
|
|
codeFormat = 'MMNNPPXX'
|
2017-07-03 22:57:00 +02:00
|
|
|
format = '%tag%%.count%%-commit%'
|
2017-07-02 20:57:57 +02:00
|
|
|
prefix 'v'
|
|
|
|
}
|
|
|
|
|
2017-05-30 00:05:26 +02:00
|
|
|
defaultConfig {
|
2017-08-15 05:48:39 +02:00
|
|
|
applicationId "${project.APP_GROUP}." + project.APP_ID.toLowerCase(Locale.CANADA)
|
2018-01-25 06:23:44 +01:00
|
|
|
minSdkVersion kau.minSdk
|
|
|
|
targetSdkVersion kau.targetSdk
|
2017-07-02 19:36:38 +02:00
|
|
|
versionCode androidGitVersion.code()
|
|
|
|
versionName androidGitVersion.name()
|
2017-05-30 04:47:52 +02:00
|
|
|
multiDexEnabled true
|
2017-05-30 00:05:26 +02:00
|
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
|
|
|
}
|
|
|
|
|
|
|
|
applicationVariants.all { variant ->
|
2017-08-04 07:21:51 +02:00
|
|
|
variant.outputs.all {
|
|
|
|
outputFileName = "${project.APP_ID}-${variant.buildType.name}.apk"
|
2017-05-30 00:05:26 +02:00
|
|
|
}
|
|
|
|
}
|
2017-06-02 03:09:43 +02:00
|
|
|
|
2017-07-19 09:28:56 +02:00
|
|
|
lintOptions {
|
|
|
|
warningsAsErrors true
|
2017-08-15 05:48:39 +02:00
|
|
|
disable 'TrustAllX509TrustManager',
|
2017-07-19 09:28:56 +02:00
|
|
|
'UnusedResources',
|
|
|
|
'ContentDescription',
|
2017-11-13 11:09:24 +01:00
|
|
|
'RtlSymmetry',
|
|
|
|
'MissingTranslation'
|
2017-11-09 07:54:12 +01:00
|
|
|
|
|
|
|
xmlReport false
|
|
|
|
textReport true
|
|
|
|
textOutput 'stdout'
|
2017-07-19 09:28:56 +02:00
|
|
|
}
|
|
|
|
|
2017-06-02 03:09:43 +02:00
|
|
|
signingConfigs {
|
2017-07-03 02:24:17 +02:00
|
|
|
|
2018-02-17 03:51:02 +01:00
|
|
|
debug {
|
|
|
|
storeFile file("../files/debug.keystore")
|
|
|
|
storePassword "debugKey"
|
|
|
|
keyAlias "debugKey"
|
|
|
|
keyPassword "debugKey"
|
|
|
|
}
|
|
|
|
|
2017-06-02 03:09:43 +02:00
|
|
|
test {
|
|
|
|
storeFile file("../files/test.keystore")
|
|
|
|
storePassword "testkey"
|
|
|
|
keyAlias "testKey"
|
|
|
|
keyPassword "testkey"
|
|
|
|
}
|
2018-04-07 20:41:28 +02:00
|
|
|
|
2017-06-02 03:09:43 +02:00
|
|
|
}
|
|
|
|
|
2017-05-30 00:05:26 +02:00
|
|
|
buildTypes {
|
2017-06-02 03:09:43 +02:00
|
|
|
debug {
|
2017-06-04 07:24:19 +02:00
|
|
|
minifyEnabled false
|
|
|
|
shrinkResources false
|
2017-06-02 03:09:43 +02:00
|
|
|
applicationIdSuffix ".debug"
|
|
|
|
versionNameSuffix "-debug"
|
2018-02-17 03:51:02 +01:00
|
|
|
signingConfig signingConfigs.debug
|
2017-08-04 07:21:51 +02:00
|
|
|
resValue "string", "frost_name", "Frost Debug"
|
2017-06-21 00:50:08 +02:00
|
|
|
resValue "string", "frost_web", "Frost Web Debug"
|
2018-03-21 06:28:31 +01:00
|
|
|
ext.enableBugsnag = false
|
2017-06-02 03:09:43 +02:00
|
|
|
}
|
|
|
|
releaseTest {
|
2017-06-04 08:03:23 +02:00
|
|
|
minifyEnabled true
|
|
|
|
shrinkResources true
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
2017-06-02 03:09:43 +02:00
|
|
|
applicationIdSuffix ".test"
|
|
|
|
versionNameSuffix "-test"
|
2018-02-17 03:51:02 +01:00
|
|
|
signingConfig signingConfigs.test
|
2017-08-04 07:21:51 +02:00
|
|
|
resValue "string", "frost_name", "Frost Test"
|
2017-06-21 00:50:08 +02:00
|
|
|
resValue "string", "frost_web", "Frost Web Test"
|
2017-06-02 03:09:43 +02:00
|
|
|
}
|
2017-05-30 00:05:26 +02:00
|
|
|
release {
|
2017-07-01 07:50:58 +02:00
|
|
|
minifyEnabled true
|
|
|
|
shrinkResources true
|
2017-05-30 00:05:26 +02:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
2017-08-04 07:21:51 +02:00
|
|
|
resValue "string", "frost_name", "Frost"
|
2017-06-21 00:50:08 +02:00
|
|
|
resValue "string", "frost_web", "Frost Web"
|
2017-05-30 00:05:26 +02:00
|
|
|
}
|
|
|
|
}
|
2017-06-02 03:09:43 +02:00
|
|
|
|
2017-05-30 00:05:26 +02:00
|
|
|
sourceSets {
|
|
|
|
main.java.srcDirs += 'src/main/kotlin'
|
2017-06-01 02:11:46 +02:00
|
|
|
test.java.srcDirs += 'src/test/kotlin'
|
2017-08-18 23:40:08 +02:00
|
|
|
androidTest.java.srcDirs += 'src/androidTest/kotlin'
|
2017-05-30 00:05:26 +02:00
|
|
|
}
|
2017-06-13 01:51:27 +02:00
|
|
|
|
|
|
|
packagingOptions {
|
|
|
|
pickFirst 'META-INF/library_release.kotlin_module'
|
|
|
|
}
|
2017-05-30 00:05:26 +02:00
|
|
|
}
|
|
|
|
|
2017-06-26 06:11:15 +02:00
|
|
|
repositories {
|
2017-08-04 07:21:51 +02:00
|
|
|
google()
|
2017-06-26 06:11:15 +02:00
|
|
|
jcenter()
|
|
|
|
maven { url "https://jitpack.io" }
|
|
|
|
}
|
|
|
|
|
2017-05-30 00:05:26 +02:00
|
|
|
dependencies {
|
2018-01-25 06:23:44 +01:00
|
|
|
androidTestImplementation("com.android.support.test:runner:${kau.testRunner}") {
|
2017-05-30 00:05:26 +02:00
|
|
|
exclude group: 'com.android.support', module: 'support-annotations'
|
2017-08-18 23:40:08 +02:00
|
|
|
}
|
2017-12-22 02:55:51 +01:00
|
|
|
|
2018-01-25 06:23:44 +01:00
|
|
|
implementation "com.android.support:exifinterface:${kau.supportLibs}"
|
2017-12-22 02:55:51 +01:00
|
|
|
|
2018-01-25 06:23:44 +01:00
|
|
|
androidTestImplementation kauDependency.kotlinTest
|
2017-08-18 23:40:08 +02:00
|
|
|
androidTestImplementation "com.android.support.test:rules:${TEST_RULE}"
|
2018-01-25 06:23:44 +01:00
|
|
|
testImplementation kauDependency.kotlinTest
|
2017-12-26 09:37:32 +01:00
|
|
|
testImplementation "org.jetbrains.kotlin:kotlin-reflect:${KOTLIN}"
|
2018-01-25 06:23:44 +01:00
|
|
|
testImplementation kauDependency.junit
|
2017-08-18 23:40:08 +02:00
|
|
|
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:${KOTLIN}"
|
2017-08-04 07:21:51 +02:00
|
|
|
|
|
|
|
//noinspection GradleDependency
|
|
|
|
implementation "ca.allanwang.kau:adapter:$KAU"
|
|
|
|
//noinspection GradleDependency
|
|
|
|
implementation "ca.allanwang.kau:about:$KAU"
|
|
|
|
//noinspection GradleDependency
|
|
|
|
implementation "ca.allanwang.kau:colorpicker:$KAU"
|
|
|
|
//noinspection GradleDependency
|
|
|
|
implementation "ca.allanwang.kau:mediapicker:$KAU"
|
|
|
|
//noinspection GradleDependency
|
|
|
|
implementation "ca.allanwang.kau:kpref-activity:$KAU"
|
|
|
|
//noinspection GradleDependency
|
|
|
|
implementation "ca.allanwang.kau:searchview:$KAU"
|
|
|
|
//noinspection GradleDependency
|
2017-08-15 05:48:39 +02:00
|
|
|
implementation "ca.allanwang.kau:core:$KAU"
|
|
|
|
//noinspection GradleDependency
|
2017-08-04 07:21:51 +02:00
|
|
|
implementation "ca.allanwang.kau:core-ui:$KAU"
|
|
|
|
|
2017-08-19 05:25:26 +02:00
|
|
|
implementation "org.apache.commons:commons-text:${COMMONS_TEXT}"
|
|
|
|
|
2017-10-25 05:29:55 +02:00
|
|
|
implementation "com.devbrackets.android:exomedia:${EXOMEDIA}"
|
|
|
|
|
2018-01-25 06:23:44 +01:00
|
|
|
implementation"com.mikepenz:fastadapter-extensions:${kau.fastAdapter}@aar"
|
2017-12-11 23:52:24 +01:00
|
|
|
|
2018-04-07 20:41:28 +02:00
|
|
|
//noinspection GradleDependency
|
2018-01-25 06:23:44 +01:00
|
|
|
implementation "com.github.bumptech.glide:okhttp3-integration:${kau.glide}"
|
2018-04-07 20:41:28 +02:00
|
|
|
//noinspection GradleDependency
|
2018-01-25 06:23:44 +01:00
|
|
|
kapt "com.github.bumptech.glide:compiler:${kau.glide}"
|
2017-12-30 05:37:10 +01:00
|
|
|
|
2017-12-31 06:42:49 +01:00
|
|
|
implementation "com.fasterxml.jackson.core:jackson-databind:2.9.3"
|
|
|
|
|
2017-08-30 20:11:16 +02:00
|
|
|
//noinspection GradleDependency
|
2017-08-04 07:21:51 +02:00
|
|
|
releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:${LEAK_CANARY}"
|
2017-08-30 20:11:16 +02:00
|
|
|
//noinspection GradleDependency
|
|
|
|
releaseTestImplementation "com.squareup.leakcanary:leakcanary-android-no-op:${LEAK_CANARY}"
|
|
|
|
//noinspection GradleDependency
|
|
|
|
debugImplementation "com.squareup.leakcanary:leakcanary-android:${LEAK_CANARY}"
|
2017-08-20 19:59:34 +02:00
|
|
|
// testImplementation "com.squareup.leakcanary:leakcanary-android-no-op:${LEAK_CANARY}"
|
2017-08-04 07:21:51 +02:00
|
|
|
|
|
|
|
implementation "com.github.Raizlabs.DBFlow:dbflow:${DBFLOW}"
|
|
|
|
implementation "com.github.Raizlabs.DBFlow:dbflow-core:${DBFLOW}"
|
2017-05-31 02:26:14 +02:00
|
|
|
kapt "com.github.Raizlabs.DBFlow:dbflow-processor:${DBFLOW}"
|
2017-08-04 07:21:51 +02:00
|
|
|
implementation "com.github.Raizlabs.DBFlow:dbflow-kotlinextensions:${DBFLOW}"
|
2017-06-26 23:54:07 +02:00
|
|
|
|
2017-05-30 00:05:26 +02:00
|
|
|
//Icons
|
2018-01-25 06:23:44 +01:00
|
|
|
implementation "com.mikepenz:material-design-iconic-typeface:${kau.iconicsMaterial}@aar"
|
|
|
|
implementation "com.mikepenz:community-material-typeface:${kau.iconicsCommunity}@aar"
|
2017-05-30 00:05:26 +02:00
|
|
|
|
2017-08-04 07:21:51 +02:00
|
|
|
implementation "org.jsoup:jsoup:${JSOUP}"
|
2017-05-30 10:03:01 +02:00
|
|
|
|
2017-08-04 07:21:51 +02:00
|
|
|
implementation "com.squareup.okhttp3:okhttp:${OKHTTP}"
|
2017-12-22 02:55:51 +01:00
|
|
|
implementation "com.squareup.okhttp3:logging-interceptor:${OKHTTP}"
|
2017-07-17 02:26:58 +02:00
|
|
|
|
2017-08-04 07:21:51 +02:00
|
|
|
implementation "co.zsmb:materialdrawer-kt:${MATERIAL_DRAWER_KT}"
|
2017-06-03 09:22:10 +02:00
|
|
|
|
2017-08-04 07:21:51 +02:00
|
|
|
implementation "nz.bradcampbell:paperparcel:${PAPER_PARCEL}"
|
|
|
|
implementation "nz.bradcampbell:paperparcel-kotlin:${PAPER_PARCEL}"
|
2017-06-29 19:12:18 +02:00
|
|
|
kapt "nz.bradcampbell:paperparcel-compiler:${PAPER_PARCEL}"
|
2017-06-02 02:45:42 +02:00
|
|
|
|
2018-03-21 06:28:31 +01:00
|
|
|
implementation "com.bugsnag:bugsnag-android:${BUGSNAG}"
|
2017-07-17 02:26:58 +02:00
|
|
|
|
2017-08-04 07:21:51 +02:00
|
|
|
implementation "com.davemorrissey.labs:subsampling-scale-image-view:${SCALE_IMAGE_VIEW}"
|
2017-07-17 02:26:58 +02:00
|
|
|
|
2017-08-04 07:21:51 +02:00
|
|
|
implementation "com.sothree.slidinguppanel:library:${SLIDING_PANEL}"
|
2017-07-31 00:57:27 +02:00
|
|
|
|
2017-08-15 05:48:39 +02:00
|
|
|
//Reactive Libs
|
2018-03-11 20:47:35 +01:00
|
|
|
implementation "io.reactivex.rxjava2:rxjava:${RX_JAVA}"
|
2017-08-15 05:48:39 +02:00
|
|
|
implementation "io.reactivex.rxjava2:rxkotlin:${RX_KOTLIN}"
|
|
|
|
implementation "io.reactivex.rxjava2:rxandroid:${RX_ANDROID}"
|
|
|
|
implementation "com.github.pwittchen:reactivenetwork-rx2:${RX_NETWORK}"
|
|
|
|
|
2018-03-21 06:28:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'com.bugsnag.android.gradle'
|