build.gradle 3.1 KB

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