build.gradle 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 29
  9. versionName "10.0"
  10. }
  11. flavorDimensions = ["app", "recents"]
  12. productFlavors {
  13. aosp {
  14. dimension "app"
  15. }
  16. withQuickstep {
  17. dimension "recents"
  18. }
  19. }
  20. sourceSets {
  21. main {
  22. res.srcDirs = ["$launcherCode/res"]
  23. java.srcDir "$launcherCode/src"
  24. java.srcDir "$launcherCode/src_plugins"
  25. java.srcDir "$launcherCode/src_build_config"
  26. manifest.srcFile "$launcherCode/AndroidManifest-common.xml"
  27. proto {
  28. srcDir "$launcherCode/protos/"
  29. srcDir "$launcherCode/proto_overrides/"
  30. }
  31. }
  32. aosp {
  33. java.srcDir "$launcherCode/src_flags"
  34. java.srcDir "$launcherCode/src_shortcuts_overrides"
  35. manifest.srcFile "$launcherCode/AndroidManifest.xml"
  36. }
  37. withQuickstep {
  38. java.srcDir "$launcherCode/quickstep/src"
  39. java.srcDir "$launcherCode/quickstep/recents_ui_overrides/src"
  40. res.srcDir "$launcherCode/quickstep/res"
  41. res.srcDir "$launcherCode/quickstep/recents_ui_overrides/res"
  42. manifest.srcFile "$launcherCode/quickstep/AndroidManifest.xml"
  43. }
  44. }
  45. compileOptions {
  46. sourceCompatibility JavaVersion.VERSION_1_8
  47. targetCompatibility JavaVersion.VERSION_1_8
  48. }
  49. }
  50. final String ANDROID_X_VERSION = '1.0.0'
  51. dependencies {
  52. implementation "androidx.dynamicanimation:dynamicanimation:${ANDROID_X_VERSION}"
  53. implementation "androidx.recyclerview:recyclerview:${ANDROID_X_VERSION}"
  54. implementation "androidx.preference:preference:${ANDROID_X_VERSION}"
  55. implementation project(':1000_r47:IconLoader')
  56. implementation project(':1000_r47:LauncherProtosNano')
  57. implementation project(':1000_r47:SystemUI:PluginCoreLib')
  58. implementation project(':1000_r47:SystemUI:SystemUISharedLib')
  59. }
  60. protobuf {
  61. generateProtoTasks {
  62. all().each { task ->
  63. task.builtins {
  64. javanano {
  65. option "java_package=launcher_log_extension.proto|com.android.launcher3.userevent.nano"
  66. option "java_package=launcher_log.proto|com.android.launcher3.userevent.nano"
  67. option "java_package=launcher_dump.proto|com.android.launcher3.model.nano"
  68. option "enum_style=java"
  69. }
  70. }
  71. }
  72. }
  73. }