OSDN Git Service

Change all apps caret target bounding box b/30400751
[android-x86/packages-apps-Launcher3.git] / build.gradle
1 buildscript {
2     repositories {
3         mavenCentral()
4     }
5     dependencies {
6         classpath 'com.android.tools.build:gradle:2.1.3'
7         classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.0'
8     }
9 }
10
11 apply plugin: 'com.android.application'
12 apply plugin: 'com.google.protobuf'
13
14 android {
15     compileSdkVersion 25
16     buildToolsVersion '24.0.0'
17
18     defaultConfig {
19         minSdkVersion 21
20         targetSdkVersion 25
21         versionCode 1
22         versionName "1.0"
23
24         testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
25     }
26     buildTypes {
27         debug {
28             minifyEnabled false
29         }
30     }
31
32     productFlavors {
33         aosp {
34             applicationId 'com.android.launcher3'
35             testApplicationId 'com.android.launcher3.tests'
36         }
37     }
38     sourceSets {
39         main {
40             res.srcDirs = ['res']
41             java.srcDirs = ['src', 'src_config']
42             manifest.srcFile 'AndroidManifest-common.xml'
43             proto.srcDirs 'protos/'
44         }
45
46         androidTest {
47             java.srcDirs = ['tests/src']
48             manifest.srcFile "tests/AndroidManifest.xml"
49         }
50
51         aosp {
52             manifest.srcFile "AndroidManifest.xml"
53         }
54     }
55 }
56
57 repositories {
58     mavenCentral()
59 }
60
61 dependencies {
62     compile 'com.android.support:support-v4:23.1.1'
63     compile 'com.android.support:recyclerview-v7:23.1.1'
64     compile 'com.android.support:palette-v7:23.2.0'
65     compile 'com.google.protobuf.nano:protobuf-javanano:3.0.0-alpha-2'
66
67     testCompile 'junit:junit:4.12'
68     androidTestCompile 'com.android.support.test:runner:0.5'
69     androidTestCompile 'com.android.support.test.uiautomator:uiautomator-v18:2.1.2'
70     androidTestCompile 'com.android.support:support-annotations:23.2.0'
71 }
72
73 protobuf {
74     // Configure the protoc executable
75     protoc {
76         artifact = 'com.google.protobuf:protoc:3.0.0-alpha-3'
77
78         generateProtoTasks {
79             all().each { task ->
80                 task.builtins {
81                     remove java
82                     javanano {
83                         option 'ignore_services=false'
84                     }
85                 }
86             }
87         }
88     }
89 }