wulkanowy-mod/app/build.gradle

125 lines
4.3 KiB
Groovy
Raw Normal View History

2018-07-14 13:09:58 -05:00
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
2018-08-25 17:18:31 -05:00
apply plugin: 'kotlin-kapt'// sync warning probably caused by bug https://issuetracker.google.com/issues/74537216, fix in AS 3.2
2018-08-22 15:31:17 -05:00
apply plugin: 'kotlin-android-extensions'
2018-07-14 13:09:58 -05:00
apply plugin: 'io.fabric'
apply from: 'jacoco.gradle'
2018-08-25 17:18:31 -05:00
apply from: 'sonarqube.gradle'
2018-07-14 13:09:58 -05:00
apply plugin: 'com.github.triplet.play'
2017-03-09 14:29:23 -06:00
android {
2018-07-14 13:09:58 -05:00
compileSdkVersion 27
2018-04-03 09:10:56 -05:00
buildToolsVersion '27.0.3'
2018-05-07 12:11:28 -05:00
playAccountConfigs {
defaultAccountConfig {
serviceAccountEmail = System.getenv("PLAY_SERVICE_ACCOUNT_EMAIL")
pk12File = file('key.p12')
}
}
2017-03-09 14:29:23 -06:00
defaultConfig {
2017-04-19 13:36:27 -05:00
applicationId "io.github.wulkanowy"
testApplicationId "io.github.tests.wulkanowy"
minSdkVersion 15
2018-07-14 13:09:58 -05:00
targetSdkVersion 27
2018-07-15 12:09:31 -05:00
versionCode 16
versionName "0.5.2"
2018-08-22 15:31:17 -05:00
multiDexEnabled true
2017-03-09 14:29:23 -06:00
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
2018-05-07 12:11:28 -05:00
playAccountConfig = playAccountConfigs.defaultAccountConfig
2018-01-11 14:57:41 -06:00
manifestPlaceholders = [
fabricApiKey: System.getenv("FABRIC_API_KEY") ?: "null"
]
2017-03-09 14:29:23 -06:00
}
2017-12-27 14:49:09 -06:00
2018-05-07 12:11:28 -05:00
signingConfigs {
release {
storeFile file("upload-key.jks")
storePassword System.getenv("PLAY_STORE_PASSWORD")
keyAlias System.getenv("PLAY_KEY_ALIAS")
keyPassword System.getenv("PLAY_KEY_PASSWORD")
}
}
2017-03-09 14:29:23 -06:00
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2018-05-07 12:11:28 -05:00
signingConfig signingConfigs.release
2017-03-09 14:29:23 -06:00
}
debug {
applicationIdSuffix ".dev"
versionNameSuffix "-dev"
testCoverageEnabled = true
ext.enableCrashlytics = false
2018-08-22 15:31:17 -05:00
multiDexKeepProguard file('proguard-multidex-rules.pro')
}
2017-03-09 14:29:23 -06:00
}
}
2018-08-22 15:31:17 -05:00
androidExtensions {
experimental = true
}
2018-05-07 12:11:28 -05:00
play {
track = 'alpha'
uploadImages = true
}
2018-08-25 17:18:31 -05:00
ext.supportVersion = "27.1.1"
2018-05-03 05:29:10 -05:00
2017-03-09 14:29:23 -06:00
dependencies {
2018-08-25 17:18:31 -05:00
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation 'com.github.wulkanowy:api:88ede83149'
implementation "com.android.support:support-v4:$supportVersion"
implementation "com.android.support:design:$supportVersion"
implementation "com.android.support:cardview-v7:$supportVersion"
2018-04-08 09:15:05 -05:00
implementation "com.android.support:preference-v14:$supportVersion"
2018-08-22 15:31:17 -05:00
implementation 'com.android.support:multidex:1.0.3'
2018-08-25 17:18:31 -05:00
implementation "com.google.android.gms:play-services-oss-licenses:16.0.0"
implementation "com.firebase:firebase-jobdispatcher:0.8.5"
implementation "com.google.dagger:dagger-android-support:2.17"
kapt "com.google.dagger:dagger-compiler:2.17"
kapt "com.google.dagger:dagger-android-processor:2.17"
implementation "android.arch.persistence.room:runtime:1.1.1"
2018-08-22 15:31:17 -05:00
implementation "android.arch.persistence.room:rxjava2:1.1.1"
2018-08-25 17:18:31 -05:00
kapt "android.arch.persistence.room:compiler:1.1.1"
implementation "eu.davidea:flexible-adapter:5.0.5"
implementation "eu.davidea:flexible-adapter-ui:1.0.0-b5"
implementation "com.aurelhubert:ahbottomnavigation:2.2.0"
2018-08-24 08:48:29 -05:00
implementation 'com.ncapdevi:frag-nav:3.0.0-RC3'
2018-06-06 12:38:54 -05:00
2018-08-25 17:18:31 -05:00
implementation 'com.github.pwittchen:reactivenetwork-rx2:2.1.0'
implementation 'io.reactivex.rxjava2:rxandroid:2.0.2'
implementation "io.reactivex.rxjava2:rxjava:2.2.0"
implementation "org.apache.commons:commons-lang3:3.8"
implementation "org.apache.commons:commons-collections4:4.2"
implementation "com.jakewharton.threetenabp:threetenabp:1.1.0"
implementation "com.jakewharton.timber:timber:4.7.1"
implementation "at.favre.lib:slf4j-timber:1.0.1"
implementation("com.crashlytics.sdk.android:crashlytics:2.9.5@aar") {
2018-01-11 14:57:41 -06:00
transitive = true
}
2018-08-25 17:18:31 -05:00
implementation("com.crashlytics.sdk.android:answers:1.4.3@aar") {
2018-01-11 14:57:41 -06:00
transitive = true
}
2018-08-25 17:18:31 -05:00
debugImplementation "com.amitshekhar.android:debug-db:1.0.4"
2018-08-25 17:18:31 -05:00
testImplementation "junit:junit:4.12"
testImplementation "org.mockito:mockito-inline:2.21.0"
2017-11-18 15:17:18 -06:00
2018-08-25 17:18:31 -05:00
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation "org.mockito:mockito-android:2.21.0"
2018-07-18 14:13:57 -05:00
androidTestImplementation "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
2017-03-09 14:29:23 -06:00
}