build.gradle revision 4d4979490e1fa374c0d7f3599fed0a9e83a579d0
1apply plugin: 'com.android.application' 2apply plugin: 'com.android.databinding' 3 4android { 5 compileSdkVersion 21 6 buildToolsVersion "22" 7 8 defaultConfig { 9 applicationId "com.android.databinding.testapp" 10 minSdkVersion 7 11 targetSdkVersion 21 12 versionCode 1 13 versionName "1.0" 14 } 15 buildTypes { 16 release { 17 minifyEnabled false 18 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 19 } 20 } 21 22 packagingOptions { 23 exclude 'META-INF/services/javax.annotation.processing.Processor' 24 } 25 compileOptions { 26 sourceCompatibility JavaVersion.VERSION_1_7 27 targetCompatibility JavaVersion.VERSION_1_7 28 } 29 productFlavors { 30 api7 { 31 minSdkVersion 7 32 } 33 api14 { 34 minSdkVersion 14 35 } 36 } 37} 38 39dependencies { 40 compile fileTree(dir: 'libs', include: ['*.jar']) 41 compile "com.android.support:support-v4:+" 42} 43