LayoutXmlProcessor.java revision eb1062abaed1314c71cf80584fe8bcb8b2a6ba53
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 Boyarapply plugin: 'com.android.databinding'
19eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar
20eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyarandroid {
21eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar    compileSdkVersion 21
22eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar    buildToolsVersion "21.1.1"
23eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar
24eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar    defaultConfig {
25eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar        applicationId "com.android.bindingdemo"
26eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar        minSdkVersion 15
27eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar        targetSdkVersion 21
28eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar        versionCode 1
29eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar        versionName "1.0"
30eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar    }
31eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar    compileOptions {
32eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar        sourceCompatibility JavaVersion.VERSION_1_7
33eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar        targetCompatibility JavaVersion.VERSION_1_7
34eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar    }
35eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar    buildTypes {
36eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar        release {
37eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar            minifyEnabled false
38eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
39eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar        }
40eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar    }
41eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar}
42eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar
43eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyardependencies {
44eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar    compile fileTree(dir: 'libs', include: ['*.jar'])
45eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar    compile 'com.android.support:appcompat-v7:21.+'
46eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar    compile 'com.android.databinding:library:0.1-SNAPSHOT@aar'
47eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar    compile 'com.android.support:recyclerview-v7:21.0.5'
48eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar    compile 'com.android.support:gridlayout-v7:21+'
49eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar    compile 'com.android.support:cardview-v7:21.0.5'
50eb1062abaed1314c71cf80584fe8bcb8b2a6ba53Yigit Boyar}
51