wulkanowy-mod/app/build.gradle

126 lines
4.1 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' }
}
dependencies {
classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2'
classpath 'io.fabric.tools:gradle:1.25.1'
}
}
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'
2017-03-09 14:29:23 -06:00
android {
compileSdkVersion 27
2017-12-27 14:49:09 -06:00
buildToolsVersion "27.0.3"
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 27
2017-03-09 14:29:23 -06:00
versionCode 1
2017-04-19 17:02:52 -05:00
versionName "0.1.0"
2017-03-09 14:29:23 -06:00
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
2017-12-27 14:49:09 -06:00
buildConfigField "String", "UPDATE_URL", "\"https://bitrise-redirector.herokuapp.com" +
"/v0.1/apps/daeff1893f3c8128/builds/" + "${getCurrentGitBranch()}" + "/artifacts/app-release-bitrise-signed.apk/info\""
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
2017-03-09 14:29:23 -06:00
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
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
}
greendao {
2018-03-04 05:49:16 -06:00
schemaVersion 20
generateTests = true
}
2017-03-09 14:29:23 -06:00
dependencies {
implementation project(':api')
2018-03-04 05:49:16 -06:00
implementation 'com.android.support:appcompat-v7:27.1.0'
implementation 'com.android.support:design:27.1.0'
implementation 'com.android.support:support-v4:27.1.0'
implementation 'com.android.support:recyclerview-v7:27.1.0'
implementation 'com.android.support:cardview-v7:27.1.0'
implementation 'com.android.support:customtabs:27.1.0'
implementation 'com.firebase:firebase-jobdispatcher:0.8.5'
2018-01-02 15:36:54 -06:00
implementation 'org.apache.commons:commons-lang3:3.7'
2018-03-04 05:49:16 -06:00
implementation 'eu.davidea:flexible-adapter:5.0.0-rc4'
implementation 'eu.davidea:flexible-adapter-ui:1.0.0-b1'
2017-11-18 15:17:18 -06:00
implementation 'org.apache.commons:commons-collections4:4.1'
implementation 'org.greenrobot:greendao:3.2.2'
implementation 'com.jakewharton:butterknife:8.8.1'
implementation 'joda-time:joda-time:2.9.9'
2018-01-02 14:55:58 -06:00
implementation 'com.google.dagger:dagger-android:2.14.1'
implementation 'com.google.dagger:dagger-android-support:2.14.1'
2018-03-04 05:49:16 -06:00
implementation 'com.aurelhubert:ahbottomnavigation:2.1.0'
2018-01-11 14:57:41 -06:00
implementation('com.crashlytics.sdk.android:crashlytics:2.8.0@aar') {
transitive = true
}
implementation('com.crashlytics.sdk.android:answers:1.4.1@aar') {
transitive = true
}
2018-01-02 14:55:58 -06:00
annotationProcessor 'com.google.dagger:dagger-android-processor:2.14.1'
2018-03-04 05:49:16 -06:00
annotationProcessor 'com.google.dagger:dagger-compiler:2.14.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
2017-11-18 15:17:18 -06:00
debugImplementation 'com.amitshekhar.android:debug-db:1.0.1'
2018-01-02 14:55:58 -06:00
debugImplementation 'net.zetetic:android-database-sqlcipher:3.5.9'
2017-11-18 15:17:18 -06:00
testImplementation 'junit:junit:4.12'
2018-01-02 15:36:54 -06:00
testImplementation 'org.mockito:mockito-core:2.13.0'
2017-11-18 15:17:18 -06:00
androidTestImplementation 'com.android.support.test:runner:1.0.1'
2018-01-02 15:36:54 -06:00
androidTestImplementation 'org.mockito:mockito-android:2.13.0'
2017-03-09 14:29:23 -06:00
}
2017-12-27 14:49:09 -06:00
static def getCurrentGitBranch() {
if (gitBranch() == "HEAD") {
return System.getenv("BITRISE_GIT_BRANCH")
}
return gitBranch()
}
static def gitBranch() {
def branch = "null"
def proc = "git rev-parse --abbrev-ref HEAD".execute()
proc.in.eachLine { line -> branch = line }
proc.err.eachLine { line -> println line }
proc.waitFor()
branch
}