Files
sensor-fusion-demo/app/build.gradle
2017-01-17 23:59:09 +01:00

54 lines
1.6 KiB
Groovy

apply plugin: 'com.android.application'
def date = new Date()
def formattedDate = date.format('yyMMdd')
def code = formattedDate.toInteger() * 10000
def buildNumber = System.getenv("BITRISE_BUILD_NUMBER") as Integer ?: 0
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "org.hitlabnz.sensor_fusion_demo"
minSdkVersion 18
targetSdkVersion 25
versionCode code + buildNumber
versionName "1.4." + buildNumber
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
}
}
dependencies {
compile 'com.android.support:support-v4:25.0.1'
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:2.2.27'
androidTestCompile 'com.android.support:support-annotations:25.0.1'
androidTestCompile 'org.hamcrest:hamcrest-library:1.3'
androidTestCompile 'com.android.support.test.uiautomator:uiautomator-v18:2.1.2'
androidTestCompile ('com.android.support.test.espresso:espresso-core:2.2.2') {
exclude group: 'com.android.support', module: 'support-annotations'
}
androidTestCompile ('com.android.support.test:runner:0.5') {
exclude group: 'com.android.support', module: 'support-annotations'
}
androidTestCompile ('com.android.support.test:rules:0.5') {
exclude group: 'com.android.support', module: 'support-annotations'
}
}