build.gradle 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. apply from: configPath
  2. ext {
  3. codePath = "${rootDir}/${rootDirName}/${launcherPath}"
  4. }
  5. apply from: "$scriptPath/android_app.gradle"
  6. apply from: protobufConfig
  7. apply from: frameworkDependencies
  8. apply plugin: 'kotlin-android'
  9. android {
  10. namespace 'com.android.launcher3'
  11. defaultConfig {
  12. versionCode 34
  13. versionName "14.0"
  14. }
  15. flavorDimensions = ["app", "recents"]
  16. productFlavors {
  17. aosp {
  18. dimension "app"
  19. }
  20. withQuickstep {
  21. dimension "recents"
  22. }
  23. }
  24. sourceSets {
  25. main {
  26. res.srcDirs = ["$codePath/res"]
  27. java.srcDir "$codePath/src"
  28. java.srcDir "$codePath/src_plugins"
  29. java.srcDir "$codePath/src_build_config"
  30. java.srcDir "$codePath/tests/shared"
  31. manifest.srcFile "$codePath/AndroidManifest-common.xml"
  32. proto {
  33. srcDir "$codePath/protos/"
  34. }
  35. }
  36. aosp {
  37. java.srcDir "$codePath/src_flags"
  38. java.srcDir "$codePath/src_shortcuts_overrides"
  39. }
  40. aospWithQuickstep {
  41. manifest.srcFile "$codePath/quickstep/AndroidManifest-launcher.xml"
  42. }
  43. withQuickstep {
  44. java.srcDir "$codePath/quickstep/src"
  45. java.srcDir "$codePath/quickstep/recents_ui_overrides/src"
  46. res.srcDir "$codePath/quickstep/res"
  47. res.srcDir "$codePath/quickstep/recents_ui_overrides/res"
  48. manifest.srcFile "$codePath/quickstep/AndroidManifest.xml"
  49. proto {
  50. srcDirs = ["$codePath/quickstep/protos_overrides"]
  51. }
  52. }
  53. }
  54. kotlinOptions {
  55. jvmTarget = "17"
  56. }
  57. }
  58. dependencies {
  59. implementation "androidx.core:core:1.13.0"
  60. implementation "androidx.fragment:fragment:${ANDROID_X_VERSION}"
  61. implementation "androidx.dynamicanimation:dynamicanimation:$ANDROID_X_VERSION_BASE"
  62. implementation "androidx.recyclerview:recyclerview:1.3.2"
  63. implementation "androidx.preference:preference:1.2.1"
  64. implementation "androidx.constraintlayout:constraintlayout:2.0.0"
  65. implementation "com.google.android.material:material:1.4.0"
  66. implementation "androidx.slice:slice-core:1.1.0-alpha02"
  67. implementation "androidx.slice:slice-builders:1.1.0-alpha02"
  68. implementation 'com.airbnb.android:lottie:3.3.0'
  69. implementation project(":$rootDirName:IconLoader")
  70. implementation project(":$rootDirName:SystemUI:PluginCoreLib")
  71. implementation project(":$rootDirName:SystemUI:SystemUISharedLib")
  72. implementation project(":$rootDirName:SystemUI:SystemUIAnimationLib")
  73. implementation project(":$rootDirName:SystemUI:SysUiStatsLog")
  74. implementation project(":$rootDirName:SystemUI:AnimationLib")
  75. implementation project(":$rootDirName:SystemUI:SystemUIUnfoldLib")
  76. implementation project(":$rootDirName:SystemUI:ViewCapture")
  77. implementation project(":$rootDirName:WindowManager:Shell")
  78. }