build.gradle 1.7 KB

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