| apply plugin: 'com.android.application' |
| |
| android { |
| compileSdkVersion compile_sdk_version |
| buildToolsVersion build_tools_version |
| |
| compileOptions { |
| sourceCompatibility JavaVersion.VERSION_1_8 |
| } |
| |
| defaultConfig { |
| applicationId "com.android.support.lifecycle.testapp" |
| minSdkVersion min_sdk_version |
| targetSdkVersion target_sdk_version |
| versionCode 1 |
| versionName "1.0" |
| |
| testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" |
| jackOptions { |
| enabled true |
| } |
| } |
| |
| packagingOptions { |
| exclude 'META-INF/services/javax.annotation.processing.Processor' |
| } |
| |
| buildTypes { |
| release { |
| minifyEnabled false |
| proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |
| } |
| } |
| } |
| |
| createAndroidCheckstyle(project) |
| |
| dependencies { |
| compile fileTree(dir: 'libs', include: ['*.jar']) |
| compile "com.android.support.lifecycle:extensions:$release_version" |
| androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { |
| exclude group: 'com.android.support', module: 'support-annotations' |
| }) |
| testCompile "junit:junit:$junit_version" |
| } |