build.gradle 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. apply from: configPath
  2. apply from: "$scriptPath/android_app.gradle"
  3. apply from: protobufNanoConfig
  4. android {
  5. namespace 'com.android.launcher3'
  6. defaultConfig {
  7. versionCode 26
  8. versionName "8.0"
  9. }
  10. flavorDimensions = ["app"]
  11. productFlavors {
  12. aosp {
  13. dimension "app"
  14. }
  15. }
  16. sourceSets {
  17. main {
  18. res.srcDirs = ["$launcherCode/res"]
  19. java.srcDirs = ["$launcherCode/src", "$launcherCode/src_config"]
  20. manifest.srcFile "$launcherCode/AndroidManifest-common.xml"
  21. proto.srcDirs "$launcherCode/protos/"
  22. }
  23. aosp {
  24. manifest.srcFile "$launcherCode/AndroidManifest.xml"
  25. }
  26. }
  27. compileOptions {
  28. sourceCompatibility JavaVersion.VERSION_1_8
  29. targetCompatibility JavaVersion.VERSION_1_8
  30. }
  31. }
  32. final String SUPPORT_LIBS_VERSION = '26.0.0'
  33. dependencies {
  34. implementation "com.android.support:support-v4:${SUPPORT_LIBS_VERSION}"
  35. implementation "com.android.support:recyclerview-v7:${SUPPORT_LIBS_VERSION}"
  36. implementation "com.android.support:palette-v7:${SUPPORT_LIBS_VERSION}"
  37. }
  38. protobuf {
  39. generateProtoTasks {
  40. all().each { task ->
  41. task.builtins {
  42. javanano {
  43. option "java_package=launcher_log.proto|com.android.launcher3.userevent.nano"
  44. option "enum_style=java"
  45. }
  46. }
  47. }
  48. }
  49. }