blob: 1d80951a34f0e76a1b6dd1ae4d09b3db0f54a0aa [file]
apply plugin: 'com.android.application'
android {
compileSdkVersion rootProject.latestCompileSdk
buildToolsVersion rootProject.buildToolsVersion
defaultConfig {
applicationId "com.android.databinding.testapp"
minSdkVersion 14
targetSdkVersion rootProject.latestCompileSdk
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildFeatures {
dataBinding = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/services/javax.annotation.processing.Processor'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "com.android.support:support-v4:26.1.0"
implementation 'com.android.support:support-annotations:26.1.0'
compileOnly 'javax.annotation:jsr250-api:1.0'
implementation "android.arch.lifecycle:extensions:1.0.0"
androidTestImplementation ('com.android.support.test:runner:1.0.1') {
exclude module: 'support-annotations'
}
androidTestImplementation ('com.android.support.test.espresso:espresso-core:3.0.1') {
exclude module: 'support-annotations'
}
testImplementation 'junit:junit:4.12'
androidTestImplementation "org.mockito:mockito-core:1.9.5"
androidTestImplementation "com.google.dexmaker:dexmaker:1.2"
androidTestImplementation "com.google.dexmaker:dexmaker-mockito:1.2"
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xmaxerrs" << "500" // or whatever number you want
}
}