blob: 899767fc8e33b1aaa664574545c720528b628bf0 [file] [log] [blame]
Sunny Goyaledf329a2015-08-29 23:16:27 -07001buildscript {
2 repositories {
3 mavenCentral()
4 }
5 dependencies {
Sunny Goyal0292bd12016-05-09 16:57:48 -07006 classpath 'com.android.tools.build:gradle:2.1.0'
Sunny Goyaledf329a2015-08-29 23:16:27 -07007 classpath 'com.google.protobuf:protobuf-gradle-plugin:0.7.0'
8 }
9}
10
11apply plugin: 'com.android.application'
12apply plugin: 'com.google.protobuf'
13
14android {
Sunny Goyald83a67a2016-05-23 21:40:53 -070015 compileSdkVersion 'android-N'
16 buildToolsVersion '24.0.0-rc3'
Sunny Goyaledf329a2015-08-29 23:16:27 -070017
18 defaultConfig {
19 applicationId "com.android.launcher3"
Sunny Goyald297be22016-05-10 15:35:02 -070020 minSdkVersion 21
Sunny Goyaledf329a2015-08-29 23:16:27 -070021 targetSdkVersion 23
22 versionCode 1
23 versionName "1.0"
Sunny Goyal3d1c0ff2015-10-16 17:18:54 -070024
25 testApplicationId "com.android.launcher3.tests"
26 testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Sunny Goyaledf329a2015-08-29 23:16:27 -070027 }
28 buildTypes {
29 debug {
30 minifyEnabled false
31 }
32 }
33 sourceSets {
34 main {
Sunny Goyalbd822502016-02-18 15:09:21 -080035 res.srcDirs = ['res']
Sunny Goyald83a67a2016-05-23 21:40:53 -070036 java.srcDirs = ['src', 'src_config']
Sunny Goyaledf329a2015-08-29 23:16:27 -070037 manifest.srcFile 'AndroidManifest.xml'
38 proto.srcDirs 'protos/'
39 }
Sunny Goyal3d1c0ff2015-10-16 17:18:54 -070040
41 androidTest {
42 java.srcDirs = ['tests/src']
Sunny Goyal3d1c0ff2015-10-16 17:18:54 -070043 manifest.srcFile "tests/AndroidManifest.xml"
44 }
Sunny Goyaledf329a2015-08-29 23:16:27 -070045 }
46}
47
48repositories {
49 mavenCentral()
50}
51
52dependencies {
Sunny Goyaleb045072016-02-25 14:50:53 -080053 compile 'com.android.support:support-v4:23.1.1'
54 compile 'com.android.support:recyclerview-v7:23.1.1'
Tony Wickham827cef22016-03-17 15:39:39 -070055 compile 'com.android.support:palette-v7:23.2.0'
Sunny Goyaledf329a2015-08-29 23:16:27 -070056 compile 'com.google.protobuf.nano:protobuf-javanano:3.0.0-alpha-2'
Sunny Goyal3d1c0ff2015-10-16 17:18:54 -070057
58 testCompile 'junit:junit:4.12'
Sunny Goyaleb045072016-02-25 14:50:53 -080059 androidTestCompile 'com.android.support.test:runner:0.5'
60 androidTestCompile 'com.android.support.test.uiautomator:uiautomator-v18:2.1.2'
Tony Wickham827cef22016-03-17 15:39:39 -070061 androidTestCompile 'com.android.support:support-annotations:23.2.0'
Sunny Goyaledf329a2015-08-29 23:16:27 -070062}
63
64protobuf {
65 // Configure the protoc executable
66 protoc {
67 artifact = 'com.google.protobuf:protoc:3.0.0-alpha-3'
68 }
69}