Sunny Goyal | edf329a | 2015-08-29 23:16:27 -0700 | [diff] [blame] | 1 | buildscript { |
| 2 | repositories { |
| 3 | mavenCentral() |
| 4 | } |
| 5 | dependencies { |
Sunny Goyal | 3d1c0ff | 2015-10-16 17:18:54 -0700 | [diff] [blame] | 6 | classpath 'com.android.tools.build:gradle:+' |
Sunny Goyal | edf329a | 2015-08-29 23:16:27 -0700 | [diff] [blame] | 7 | classpath 'com.google.protobuf:protobuf-gradle-plugin:0.7.0' |
| 8 | } |
| 9 | } |
| 10 | |
| 11 | apply plugin: 'com.android.application' |
| 12 | apply plugin: 'com.google.protobuf' |
| 13 | |
| 14 | android { |
| 15 | compileSdkVersion 23 |
| 16 | buildToolsVersion "22.0.1" |
| 17 | |
| 18 | defaultConfig { |
| 19 | applicationId "com.android.launcher3" |
| 20 | minSdkVersion 16 |
| 21 | targetSdkVersion 23 |
| 22 | versionCode 1 |
| 23 | versionName "1.0" |
Sunny Goyal | 3d1c0ff | 2015-10-16 17:18:54 -0700 | [diff] [blame] | 24 | |
| 25 | testApplicationId "com.android.launcher3.tests" |
| 26 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" |
Sunny Goyal | edf329a | 2015-08-29 23:16:27 -0700 | [diff] [blame] | 27 | } |
| 28 | buildTypes { |
| 29 | debug { |
| 30 | minifyEnabled false |
| 31 | } |
| 32 | } |
| 33 | sourceSets { |
| 34 | main { |
| 35 | res.srcDirs = ['res', 'WallpaperPicker/res'] |
Sunny Goyal | 3d1c0ff | 2015-10-16 17:18:54 -0700 | [diff] [blame] | 36 | java.srcDirs = ['src', 'WallpaperPicker/src'] |
Sunny Goyal | edf329a | 2015-08-29 23:16:27 -0700 | [diff] [blame] | 37 | manifest.srcFile 'AndroidManifest.xml' |
| 38 | proto.srcDirs 'protos/' |
| 39 | } |
Sunny Goyal | 3d1c0ff | 2015-10-16 17:18:54 -0700 | [diff] [blame] | 40 | |
| 41 | androidTest { |
| 42 | java.srcDirs = ['tests/src'] |
| 43 | res.srcDirs = ['tests/res'] |
| 44 | manifest.srcFile "tests/AndroidManifest.xml" |
| 45 | } |
Sunny Goyal | edf329a | 2015-08-29 23:16:27 -0700 | [diff] [blame] | 46 | } |
| 47 | } |
| 48 | |
| 49 | repositories { |
| 50 | mavenCentral() |
| 51 | } |
| 52 | |
| 53 | dependencies { |
Sunny Goyal | 3d1c0ff | 2015-10-16 17:18:54 -0700 | [diff] [blame] | 54 | compile 'com.android.support:support-v4:23.0.1' |
| 55 | compile 'com.android.support:recyclerview-v7:23.0.1' |
Sunny Goyal | edf329a | 2015-08-29 23:16:27 -0700 | [diff] [blame] | 56 | compile 'com.google.protobuf.nano:protobuf-javanano:3.0.0-alpha-2' |
Sunny Goyal | 3d1c0ff | 2015-10-16 17:18:54 -0700 | [diff] [blame] | 57 | |
| 58 | testCompile 'junit:junit:4.12' |
| 59 | androidTestCompile 'com.android.support.test:runner:+' |
| 60 | androidTestCompile 'com.android.support.test.uiautomator:uiautomator-v18:+' |
Sunny Goyal | edf329a | 2015-08-29 23:16:27 -0700 | [diff] [blame] | 61 | } |
| 62 | |
| 63 | protobuf { |
| 64 | // Configure the protoc executable |
| 65 | protoc { |
| 66 | artifact = 'com.google.protobuf:protoc:3.0.0-alpha-3' |
| 67 | } |
| 68 | } |