Home | History | Annotate | Download | only in app
      1 apply plugin: 'com.android.application'
      2 
      3 android {
      4     compileSdkVersion 21
      5     buildToolsVersion dataBindingConfig.buildToolsVersion
      6 
      7     defaultConfig {
      8         applicationId "com.android.databinding.testapp"
      9         minSdkVersion 7
     10         targetSdkVersion 21
     11         versionCode 1
     12         versionName "1.0"
     13         testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
     14     }
     15     dataBinding {
     16         enabled = true
     17     }
     18     buildTypes {
     19         release {
     20             minifyEnabled false
     21             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
     22         }
     23     }
     24 
     25     packagingOptions {
     26         exclude 'META-INF/services/javax.annotation.processing.Processor'
     27     }
     28     compileOptions {
     29         sourceCompatibility JavaVersion.VERSION_1_7
     30         targetCompatibility JavaVersion.VERSION_1_7
     31     }
     32     productFlavors {
     33         api7 {
     34             minSdkVersion 7
     35         }
     36         api14 {
     37             minSdkVersion 14
     38         }
     39     }
     40 }
     41 
     42 dependencies {
     43     compile fileTree(dir: 'libs', include: ['*.jar'])
     44     compile "com.android.support:support-v4:+"
     45     androidTestCompile ('com.android.support.test:runner:0.4.1') {
     46         exclude module: 'support-annotations'
     47     }
     48     androidTestCompile ('com.android.support.test.espresso:espresso-core:2.2.1') {
     49         exclude module: 'support-annotations'
     50     }
     51     testCompile 'junit:junit:4.12'
     52     androidTestCompile "org.mockito:mockito-core:1.9.5"
     53     androidTestCompile "com.google.dexmaker:dexmaker:1.2"
     54     androidTestCompile "com.google.dexmaker:dexmaker-mockito:1.2"
     55 }
     56