build.gradle 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. buildscript {
  2. repositories {
  3. mavenCentral()
  4. }
  5. dependencies {
  6. classpath 'com.android.tools.build:gradle:1.3.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. }
  22. buildTypes {
  23. debug {
  24. minifyEnabled false
  25. }
  26. }
  27. sourceSets {
  28. main {
  29. res.srcDirs = ['res', 'WallpaperPicker/res']
  30. main.java.srcDirs = ['src', 'WallpaperPicker/src']
  31. manifest.srcFile 'AndroidManifest.xml'
  32. proto.srcDirs 'protos/'
  33. }
  34. }
  35. }
  36. repositories {
  37. mavenCentral()
  38. }
  39. dependencies {
  40. compile 'com.android.support:support-v4:+'
  41. compile 'com.android.support:recyclerview-v7:+'
  42. compile 'com.google.protobuf.nano:protobuf-javanano:3.0.0-alpha-2'
  43. }
  44. protobuf {
  45. // Configure the protoc executable
  46. protoc {
  47. artifact = 'com.google.protobuf:protoc:3.0.0-alpha-3'
  48. }
  49. }