wulkanowy-mod/app/build.gradle

129 lines
4.4 KiB
Groovy
Raw Normal View History

2018-07-14 20:09:58 +02:00
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
2018-10-03 21:28:23 +02:00
apply plugin: 'kotlin-kapt'
2018-08-22 22:31:17 +02:00
apply plugin: 'kotlin-android-extensions'
2018-07-14 20:09:58 +02:00
apply plugin: 'io.fabric'
2018-10-03 21:28:23 +02:00
apply plugin: 'com.github.triplet.play'
2018-07-14 20:09:58 +02:00
apply from: 'jacoco.gradle'
2018-08-26 00:18:31 +02:00
apply from: 'sonarqube.gradle'
2018-07-14 20:09:58 +02:00
2017-03-09 21:29:23 +01:00
android {
2018-09-24 15:21:47 +02:00
compileSdkVersion 28
2018-10-03 21:28:23 +02:00
buildToolsVersion '28.0.3'
2018-05-07 19:11:28 +02:00
playAccountConfigs {
defaultAccountConfig {
serviceAccountEmail = System.getenv("PLAY_SERVICE_ACCOUNT_EMAIL")
pk12File = file('key.p12')
}
}
2017-03-09 21:29:23 +01:00
defaultConfig {
2017-04-19 20:36:27 +02:00
applicationId "io.github.wulkanowy"
testApplicationId "io.github.tests.wulkanowy"
minSdkVersion 15
2018-09-24 15:21:47 +02:00
targetSdkVersion 28
2018-07-15 19:09:31 +02:00
versionCode 16
versionName "0.5.2"
2018-08-22 22:31:17 +02:00
multiDexEnabled true
2018-10-20 20:59:46 +02:00
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
2018-05-07 19:11:28 +02:00
playAccountConfig = playAccountConfigs.defaultAccountConfig
2018-01-11 21:57:41 +01:00
manifestPlaceholders = [
fabricApiKey: System.getenv("FABRIC_API_KEY") ?: "null"
]
2017-03-09 21:29:23 +01:00
}
2017-12-27 21:49:09 +01:00
2018-05-07 19:11:28 +02: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 21:29:23 +01:00
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2018-05-07 19:11:28 +02:00
signingConfig signingConfigs.release
2017-03-09 21:29:23 +01:00
}
debug {
applicationIdSuffix ".dev"
versionNameSuffix "-dev"
testCoverageEnabled = true
ext.enableCrashlytics = false
2018-08-22 22:31:17 +02:00
multiDexKeepProguard file('proguard-multidex-rules.pro')
}
2017-03-09 21:29:23 +01:00
}
}
2018-08-22 22:31:17 +02:00
androidExtensions {
experimental = true
}
2018-05-07 19:11:28 +02:00
play {
track = 'alpha'
uploadImages = true
}
2018-10-20 20:59:46 +02:00
ext.androidx_version = "1.0.0"
2018-05-03 12:29:10 +02:00
2017-03-09 21:29:23 +01:00
dependencies {
2018-08-26 00:18:31 +02:00
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation('com.github.wulkanowy:api:1400211f0d') { exclude module: "threetenbp" }
2018-10-14 22:16:58 +02:00
2018-10-20 20:59:46 +02:00
implementation "androidx.legacy:legacy-support-v4:$androidx_version"
implementation "androidx.appcompat:appcompat:$androidx_version"
implementation "androidx.cardview:cardview:$androidx_version"
implementation "com.google.android.material:material:$androidx_version"
implementation 'androidx.multidex:multidex:2.0.0'
2018-08-26 00:18:31 +02:00
2018-10-22 22:47:54 +02:00
implementation 'com.takisoft.preferencex:preferencex:1.0.0'
implementation "com.mikepenz:aboutlibraries:6.2.0"
2018-08-26 00:18:31 +02:00
implementation "com.firebase:firebase-jobdispatcher:0.8.5"
2018-10-20 20:59:46 +02:00
//Do not update dagger https://github.com/google/dagger/issues/1245
implementation "com.google.dagger:dagger-android-support:2.16"
kapt "com.google.dagger:dagger-compiler:2.16"
kapt "com.google.dagger:dagger-android-processor:2.16"
2018-08-26 00:18:31 +02:00
2018-10-20 20:59:46 +02:00
implementation "androidx.room:room-runtime:2.1.0-alpha01"
implementation "androidx.room:room-rxjava2:2.1.0-alpha01"
kapt "androidx.room:room-compiler:2.1.0-alpha01"
2018-08-26 00:18:31 +02:00
2018-10-20 20:59:46 +02:00
implementation "eu.davidea:flexible-adapter:5.1.0"
implementation "eu.davidea:flexible-adapter-ui:1.0.0"
2018-08-26 00:18:31 +02:00
implementation "com.aurelhubert:ahbottomnavigation:2.2.0"
2018-08-24 15:48:29 +02:00
implementation 'com.ncapdevi:frag-nav:3.0.0-RC3'
2018-06-06 19:38:54 +02:00
2018-10-20 20:59:46 +02:00
implementation 'com.github.pwittchen:reactivenetwork-rx2:3.0.0'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
implementation "io.reactivex.rxjava2:rxjava:2.2.2"
2018-08-26 00:18:31 +02:00
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 21:57:41 +01:00
transitive = true
}
2018-08-26 00:18:31 +02:00
implementation("com.crashlytics.sdk.android:answers:1.4.3@aar") {
2018-01-11 21:57:41 +01:00
transitive = true
}
2018-08-26 00:18:31 +02:00
debugImplementation "com.amitshekhar.android:debug-db:1.0.4"
2018-08-26 00:18:31 +02:00
testImplementation "junit:junit:4.12"
2018-10-20 20:59:46 +02:00
testImplementation "io.mockk:mockk:1.8.9"
testImplementation "org.mockito:mockito-inline:2.23.0"
2018-10-14 22:16:58 +02:00
testImplementation 'org.threeten:threetenbp:1.3.7'
2017-11-18 22:17:18 +01:00
2018-10-20 20:59:46 +02:00
androidTestImplementation 'androidx.test:core:1.0.0-beta02'
androidTestImplementation 'androidx.test:runner:1.1.0-beta02'
androidTestImplementation 'androidx.test.ext:junit:1.0.0-beta02'
androidTestImplementation "org.mockito:mockito-android:2.23.0"
2018-07-18 21:13:57 +02:00
androidTestImplementation "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
2017-03-09 21:29:23 +01:00
}