blob: 6505705f673d268edd75b6e56d1f59028a5f61ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
apply plugin: 'com.android.application'
android {
namespace "android.databinding.testapp"
compileSdkVersion rootProject.latestCompileSdk
defaultConfig {
applicationId "androidx.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_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
def supportVersion = "1.0.0"
def lifecycleVersion = "2.6.1"
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "androidx.annotation:annotation:$supportVersion"
compileOnly 'javax.annotation:jsr250-api:1.0'
implementation "androidx.lifecycle:lifecycle-runtime:$lifecycleVersion"
implementation "androidx.lifecycle:lifecycle-livedata:$lifecycleVersion"
implementation "androidx.fragment:fragment:$supportVersion"
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:4.8.0"
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xmaxerrs" << "500" // or whatever number you want
}
}
|