wulkanowy-mod/app/build.gradle

98 lines
3.3 KiB
Groovy
Raw Normal View History

2017-03-09 14:29:23 -06:00
apply plugin: 'com.android.application'
apply plugin: 'org.greenrobot.greendao'
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\""
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 {
schemaVersion 19
generateTests = true
}
2017-03-09 14:29:23 -06:00
dependencies {
implementation project(':api')
implementation 'com.android.support:appcompat-v7:27.0.2'
implementation 'com.android.support:design:27.0.2'
implementation 'com.android.support:support-v4:27.0.2'
implementation 'com.android.support:recyclerview-v7:27.0.2'
implementation 'com.android.support:cardview-v7:27.0.2'
implementation 'com.android.support:customtabs:27.0.2'
implementation 'com.firebase:firebase-jobdispatcher:0.8.5'
2017-11-18 15:17:18 -06:00
implementation 'com.thoughtbot:expandablerecyclerview:1.3'
implementation 'org.apache.commons:commons-lang3:3.6'
implementation 'eu.davidea:flexible-adapter:5.0.0-rc3'
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'
2017-12-27 14:49:09 -06:00
implementation 'com.github.javiersantos:AppUpdater:2.6.4'
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-01-02 14:55:58 -06:00
annotationProcessor 'com.google.dagger:dagger-android-processor: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'
testImplementation 'org.mockito:mockito-core:2.11.0'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'org.mockito:mockito-android:2.11.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
}