build.gradle 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. apply from: configPath
  2. apply from: "$scriptPath/android_app.gradle"
  3. apply from: protobufNanoConfig
  4. apply from: frameworkDependencies
  5. android {
  6. namespace 'com.android.launcher3'
  7. defaultConfig {
  8. versionCode 28
  9. versionName "9.0"
  10. }
  11. flavorDimensions = ["app", "recents"]
  12. productFlavors {
  13. aosp {
  14. dimension "app"
  15. }
  16. quickstep {
  17. dimension "recents"
  18. }
  19. }
  20. sourceSets {
  21. main {
  22. res.srcDirs = ["$launcherCode/res"]
  23. java.srcDir "$launcherCode/src"
  24. java.srcDir "$launcherCode/src_flags"
  25. manifest.srcFile "$launcherCode/AndroidManifest-common.xml"
  26. proto {
  27. srcDir "$launcherCode/protos/"
  28. srcDir "$launcherCode/proto_overrides/"
  29. }
  30. }
  31. aospQuickstep {
  32. manifest.srcFile "$launcherCode/AndroidManifest.xml"
  33. }
  34. quickstep {
  35. res.srcDirs = ["$launcherCode/quickstep/res"]
  36. java.srcDirs = ["$launcherCode/quickstep/src"]
  37. manifest.srcFile "$launcherCode/quickstep/AndroidManifest.xml"
  38. }
  39. }
  40. compileOptions {
  41. sourceCompatibility JavaVersion.VERSION_1_8
  42. targetCompatibility JavaVersion.VERSION_1_8
  43. }
  44. }
  45. final String SUPPORT_LIBS_VERSION = '28.0.0'
  46. dependencies {
  47. implementation "com.android.support:support-v4:${SUPPORT_LIBS_VERSION}"
  48. implementation "com.android.support:support-dynamic-animation:${SUPPORT_LIBS_VERSION}"
  49. implementation "com.android.support:recyclerview-v7:${SUPPORT_LIBS_VERSION}"
  50. implementation fileTree(dir: "$launcherCode/quickstep/libs", include: 'sysui_shared.jar')
  51. }
  52. protobuf {
  53. generateProtoTasks {
  54. all().each { task ->
  55. task.builtins {
  56. javanano {
  57. option "java_package=launcher_log_extension.proto|com.android.launcher3.userevent.nano"
  58. option "java_package=launcher_log.proto|com.android.launcher3.userevent.nano"
  59. option "java_package=launcher_dump.proto|com.android.launcher3.model.nano"
  60. option "enum_style=java"
  61. }
  62. }
  63. }
  64. }
  65. }