build.gradle 2.9 KB

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