build.gradle 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. apply from: configPath
  2. apply from: "$scriptPath/android_app.gradle"
  3. apply from: protobufConfig
  4. apply from: frameworkDependencies
  5. android {
  6. namespace 'com.android.launcher3'
  7. defaultConfig {
  8. versionCode 31
  9. versionName "12.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. }
  30. }
  31. aosp {
  32. java.srcDir "$launcherCode/src_flags"
  33. java.srcDir "$launcherCode/src_shortcuts_overrides"
  34. }
  35. aospWithQuickstep {
  36. manifest.srcFile "$launcherCode/quickstep/AndroidManifest-launcher.xml"
  37. }
  38. withQuickstep {
  39. java.srcDir "$launcherCode/quickstep/src"
  40. java.srcDir "$launcherCode/quickstep/recents_ui_overrides/src"
  41. res.srcDir "$launcherCode/quickstep/res"
  42. res.srcDir "$launcherCode/quickstep/recents_ui_overrides/res"
  43. manifest.srcFile "$launcherCode/quickstep/AndroidManifest.xml"
  44. proto {
  45. srcDirs = ["$launcherCode/quickstep/protos_overrides"]
  46. }
  47. }
  48. }
  49. compileOptions {
  50. sourceCompatibility JavaVersion.VERSION_1_8
  51. targetCompatibility JavaVersion.VERSION_1_8
  52. }
  53. }
  54. final String ANDROID_X_VERSION = '1.0.0'
  55. dependencies {
  56. implementation "androidx.core:core:1.2.0"
  57. implementation "androidx.fragment:fragment:1.2.0"
  58. implementation "androidx.dynamicanimation:dynamicanimation:${ANDROID_X_VERSION}"
  59. implementation "androidx.recyclerview:recyclerview:${ANDROID_X_VERSION}"
  60. implementation "androidx.preference:preference:${ANDROID_X_VERSION}"
  61. implementation "androidx.constraintlayout:constraintlayout:2.0.0"
  62. implementation "androidx.slice:slice-core:1.1.0-alpha02"
  63. implementation "androidx.slice:slice-builders:1.1.0-alpha02"
  64. implementation project(":$rootDirName:IconLoader")
  65. implementation project(":$rootDirName:SystemUI:PluginCoreLib")
  66. implementation project(":$rootDirName:SystemUI:SystemUISharedLib")
  67. implementation project(":$rootDirName:SystemUI:SysUiStatsLog")
  68. implementation project(":$rootDirName:WindowManager:Shell")
  69. }