1
0
mirror of https://github.com/wulkanowy/wulkanowy.git synced 2024-09-20 05:49:10 -05:00
wulkanowy-mirror/app/build.gradle

141 lines
4.7 KiB
Groovy
Raw Normal View History

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-25 13:33:45 -05:00
classpath "com.github.triplet.gradle:play-publisher:$playPublisher"
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'
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 {
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"
testApplicationId "io.github.tests.wulkanowy"
minSdkVersion 15
targetSdkVersion 26
2018-05-28 04:32:39 -05:00
versionCode 13
versionName "0.4.5"
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
}
2017-03-09 14:29:23 -06:00
}
testOptions {
unitTests.all {
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
outputs.upToDateWhen { false }
showStandardStreams = true
}
}
}
2017-03-09 14:29:23 -06:00
}
2018-05-07 12:11:28 -05:00
play {
track = 'alpha'
uploadImages = true
}
greendao {
schemaVersion 28
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 {
implementation project(':api')
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"
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"
implementation("com.crashlytics.sdk.android:crashlytics:$crashlyticsSdk@aar") {
2018-01-11 14:57:41 -06:00
transitive = true
}
implementation("com.crashlytics.sdk.android:answers:$crashlyticsAnswers@aar") {
2018-01-11 14:57:41 -06:00
transitive = true
}
annotationProcessor "com.google.dagger:dagger-android-processor:$dagger2"
annotationProcessor "com.google.dagger:dagger-compiler:$dagger2"
annotationProcessor "com.jakewharton:butterknife-compiler:$butterknife"
debugImplementation "com.amitshekhar.android:debug-db:$debugDb"
debugImplementation "net.zetetic:android-database-sqlcipher:$sqlcipher"
testImplementation "junit:junit:$junit"
testImplementation "org.mockito:mockito-core:$mockito"
2017-11-18 15:17:18 -06:00
androidTestImplementation "com.android.support.test:runner:$testRunner"
androidTestImplementation "org.mockito:mockito-android:$mockito"
2017-03-09 14:29:23 -06:00
}