1eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar/*
2eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar * Copyright (C) 2014 The Android Open Source Project
3eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar *
4eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar * Licensed under the Apache License, Version 2.0 (the "License");
5eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar * you may not use this file except in compliance with the License.
6eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar * You may obtain a copy of the License at
7eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar *
8eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar *      http://www.apache.org/licenses/LICENSE-2.0
9eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar *
10eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar * Unless required by applicable law or agreed to in writing, software
11eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar * distributed under the License is distributed on an "AS IS" BASIS,
12eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar * See the License for the specific language governing permissions and
14eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar * limitations under the License.
15eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar */
16eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar
17eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyarapply plugin: 'com.android.application'
18eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar
19eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyarandroid {
209784c9aaedeb863018f5fcaa0a598e8e2f8ed2f3Yigit Boyar    compileSdkVersion dataBindingConfig.compileSdkVersion
219784c9aaedeb863018f5fcaa0a598e8e2f8ed2f3Yigit Boyar    buildToolsVersion dataBindingConfig.buildToolsVersion
22eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar
23eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar    defaultConfig {
24eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar        applicationId "com.android.bindingdemo"
25eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar        minSdkVersion 15
26658c71b9ba3211ac5c10f261a8c6f38b1916d3bfYigit Boyar        targetSdkVersion 22
27eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar        versionCode 1
28eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar        versionName "1.0"
29eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar    }
309784c9aaedeb863018f5fcaa0a598e8e2f8ed2f3Yigit Boyar    dataBinding {
319784c9aaedeb863018f5fcaa0a598e8e2f8ed2f3Yigit Boyar        enabled = true
329784c9aaedeb863018f5fcaa0a598e8e2f8ed2f3Yigit Boyar    }
33eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar    compileOptions {
34eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar        sourceCompatibility JavaVersion.VERSION_1_7
35eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar        targetCompatibility JavaVersion.VERSION_1_7
36eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar    }
37eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar    buildTypes {
38eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar        release {
39eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar            minifyEnabled false
40eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
41eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar        }
42eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar    }
432c86cdbaf189e2b1774af7f64a2974de9321673fGeorge Mount    packagingOptions {
442c86cdbaf189e2b1774af7f64a2974de9321673fGeorge Mount        exclude 'META-INF/services/javax.annotation.processing.Processor'
452c86cdbaf189e2b1774af7f64a2974de9321673fGeorge Mount    }
46b617e5da04aa910be70204afb886b1ebebb80618George Mount}
47b617e5da04aa910be70204afb886b1ebebb80618George Mount
48eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyardependencies {
49eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar    compile fileTree(dir: 'libs', include: ['*.jar'])
50658c71b9ba3211ac5c10f261a8c6f38b1916d3bfYigit Boyar    compile 'com.android.support:appcompat-v7:22.1+'
51658c71b9ba3211ac5c10f261a8c6f38b1916d3bfYigit Boyar    compile 'com.android.support:recyclerview-v7:22.1+'
52658c71b9ba3211ac5c10f261a8c6f38b1916d3bfYigit Boyar    compile 'com.android.support:gridlayout-v7:22.1+'
53658c71b9ba3211ac5c10f261a8c6f38b1916d3bfYigit Boyar    compile 'com.android.support:cardview-v7:22.1+'
54cec8772a54dfcf6a3d846cbeaf7ee6a49beb9bcdMichal Bendowski
55cec8772a54dfcf6a3d846cbeaf7ee6a49beb9bcdMichal Bendowski    testCompile 'junit:junit:4.12'
56cec8772a54dfcf6a3d846cbeaf7ee6a49beb9bcdMichal Bendowski    testCompile 'org.mockito:mockito-core:1.9.5'
57eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar}
58