2018-01-11 14:57:41 -06:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
maven { url "https://plugins.gradle.org/m2/" }
|
|
|
|
maven { url 'https://maven.fabric.io/public' }
|
2018-05-07 09:05:57 -05:00
|
|
|
google()
|
2018-01-11 14:57:41 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2018-05-03 05:29:10 -05:00
|
|
|
classpath "org.greenrobot:greendao-gradle-plugin:$greenDaoGradle"
|
|
|
|
classpath "io.fabric.tools:gradle:$fabricGradle"
|
2018-05-07 09:05:57 -05:00
|
|
|
classpath "com.google.gms:oss-licenses:0.9.2"
|
2018-05-07 12:11:28 -05:00
|
|
|
classpath 'com.github.triplet.gradle:play-publisher:1.2.0'
|
2018-01-11 14:57:41 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
maven { url 'https://maven.fabric.io/public' }
|
|
|
|
}
|
|
|
|
|
2017-03-09 14:29:23 -06:00
|
|
|
apply plugin: 'com.android.application'
|
2017-09-17 11:04:28 -05:00
|
|
|
apply plugin: 'org.greenrobot.greendao'
|
2018-01-11 14:57:41 -06:00
|
|
|
apply plugin: 'io.fabric'
|
2017-11-26 09:32:33 -06:00
|
|
|
apply from: '../jacoco.gradle'
|
|
|
|
apply from: '../android-sonarqube.gradle'
|
2018-05-07 09:05:57 -05:00
|
|
|
apply plugin: 'com.google.gms.oss.licenses.plugin'
|
2018-05-07 12:11:28 -05:00
|
|
|
apply plugin: 'com.github.triplet.play'
|
2017-03-09 14:29:23 -06:00
|
|
|
|
|
|
|
android {
|
2018-03-22 16:42:08 -05:00
|
|
|
compileSdkVersion 26
|
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"
|
2017-09-17 11:04:28 -05:00
|
|
|
testApplicationId "io.github.tests.wulkanowy"
|
2017-09-23 15:17:13 -05:00
|
|
|
minSdkVersion 15
|
2018-03-22 16:42:08 -05:00
|
|
|
targetSdkVersion 26
|
2018-05-19 16:37:32 -05:00
|
|
|
versionCode 11
|
|
|
|
versionName "0.4.3"
|
2017-03-09 14:29:23 -06:00
|
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
2017-06-30 09:02:21 -05:00
|
|
|
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
|
|
|
}
|
2017-07-20 10:37:55 -05:00
|
|
|
debug {
|
2018-03-10 06:08:01 -06:00
|
|
|
applicationIdSuffix ".dev"
|
|
|
|
versionNameSuffix "-dev"
|
2017-07-20 10:37:55 -05:00
|
|
|
testCoverageEnabled = true
|
2017-09-17 11:04:28 -05:00
|
|
|
ext.enableCrashlytics = false
|
2017-07-20 10:37:55 -05:00
|
|
|
}
|
2017-03-09 14:29:23 -06:00
|
|
|
}
|
2017-09-23 15:17:13 -05:00
|
|
|
|
|
|
|
testOptions {
|
|
|
|
unitTests.all {
|
|
|
|
testLogging {
|
|
|
|
events "passed", "skipped", "failed", "standardOut", "standardError"
|
2017-12-11 12:45:28 -06:00
|
|
|
outputs.upToDateWhen { false }
|
2017-09-23 15:17:13 -05:00
|
|
|
showStandardStreams = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-03-09 14:29:23 -06:00
|
|
|
}
|
|
|
|
|
2018-05-07 12:11:28 -05:00
|
|
|
play {
|
|
|
|
track = 'alpha'
|
|
|
|
uploadImages = true
|
|
|
|
}
|
|
|
|
|
2017-09-17 11:04:28 -05:00
|
|
|
greendao {
|
2018-05-19 05:30:17 -05:00
|
|
|
schemaVersion 28
|
2017-09-17 11:04:28 -05:00
|
|
|
generateTests = true
|
|
|
|
}
|
|
|
|
|
2018-05-03 05:29:10 -05:00
|
|
|
configurations.all {
|
|
|
|
resolutionStrategy.force "com.android.support:support-annotations:$supportVersion"
|
|
|
|
}
|
|
|
|
|
2017-03-09 14:29:23 -06:00
|
|
|
dependencies {
|
2017-12-11 12:45:28 -06:00
|
|
|
implementation project(':api')
|
2018-03-22 16:42:08 -05:00
|
|
|
implementation "com.android.support:support-v4:$supportVersion"
|
|
|
|
implementation "com.android.support:design:$supportVersion"
|
|
|
|
implementation "com.android.support:cardview-v7:$supportVersion"
|
|
|
|
implementation "com.android.support:customtabs:$supportVersion"
|
2018-04-08 09:15:05 -05:00
|
|
|
implementation "com.android.support:preference-v14:$supportVersion"
|
2018-03-22 16:42:08 -05:00
|
|
|
implementation "com.firebase:firebase-jobdispatcher:$firebaseJob"
|
|
|
|
implementation "org.apache.commons:commons-lang3:$apacheLang"
|
|
|
|
implementation "org.apache.commons:commons-collections4:$apacheCollections"
|
|
|
|
implementation "eu.davidea:flexible-adapter:$flexibleAdapter"
|
|
|
|
implementation "eu.davidea:flexible-adapter-ui:$flexibleUi"
|
|
|
|
implementation "org.greenrobot:greendao:$greenDao"
|
|
|
|
implementation "com.jakewharton:butterknife:$butterknife"
|
|
|
|
implementation "com.google.dagger:dagger-android-support:$dagger2"
|
|
|
|
implementation "com.aurelhubert:ahbottomnavigation:$ahbottom"
|
2018-04-05 14:56:08 -05:00
|
|
|
implementation "com.jakewharton.threetenabp:threetenabp:$threeTenABP"
|
2018-05-07 09:05:57 -05:00
|
|
|
implementation "com.google.android.gms:play-services-oss-licenses:$ossLicenses"
|
2017-12-11 12:45:28 -06:00
|
|
|
|
2018-03-22 16:42:08 -05:00
|
|
|
implementation("com.crashlytics.sdk.android:crashlytics:$crashlyticsSdk@aar") {
|
2018-01-11 14:57:41 -06:00
|
|
|
transitive = true
|
|
|
|
}
|
2018-03-22 16:42:08 -05:00
|
|
|
implementation("com.crashlytics.sdk.android:answers:$crashlyticsAnswers@aar") {
|
2018-01-11 14:57:41 -06:00
|
|
|
transitive = true
|
|
|
|
}
|
|
|
|
|
2018-03-22 16:42:08 -05:00
|
|
|
annotationProcessor "com.google.dagger:dagger-android-processor:$dagger2"
|
|
|
|
annotationProcessor "com.google.dagger:dagger-compiler:$dagger2"
|
|
|
|
annotationProcessor "com.jakewharton:butterknife-compiler:$butterknife"
|
2017-09-17 11:04:28 -05:00
|
|
|
|
2018-03-22 16:42:08 -05:00
|
|
|
debugImplementation "com.amitshekhar.android:debug-db:$debugDb"
|
|
|
|
debugImplementation "net.zetetic:android-database-sqlcipher:$sqlcipher"
|
2017-09-23 15:17:13 -05:00
|
|
|
|
2018-03-22 16:42:08 -05:00
|
|
|
testImplementation "junit:junit:$junit"
|
|
|
|
testImplementation "org.mockito:mockito-core:$mockito"
|
2017-11-18 15:17:18 -06:00
|
|
|
|
2018-03-22 16:42:08 -05:00
|
|
|
androidTestImplementation "com.android.support.test:runner:$testRunner"
|
|
|
|
androidTestImplementation "org.mockito:mockito-android:$mockito"
|
2017-03-09 14:29:23 -06:00
|
|
|
}
|