build.gradle 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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 32
  10. versionName "12.1"
  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. manifest.srcFile "$launcherCode/AndroidManifest-common.xml"
  28. proto {
  29. srcDir "$launcherCode/protos/"
  30. }
  31. }
  32. aosp {
  33. java.srcDir "$launcherCode/src_flags"
  34. java.srcDir "$launcherCode/src_shortcuts_overrides"
  35. }
  36. aospWithQuickstep {
  37. manifest.srcFile "$launcherCode/quickstep/AndroidManifest-launcher.xml"
  38. }
  39. withQuickstep {
  40. java.srcDir "$launcherCode/quickstep/src"
  41. java.srcDir "$launcherCode/quickstep/recents_ui_overrides/src"
  42. res.srcDir "$launcherCode/quickstep/res"
  43. res.srcDir "$launcherCode/quickstep/recents_ui_overrides/res"
  44. manifest.srcFile "$launcherCode/quickstep/AndroidManifest.xml"
  45. proto {
  46. srcDirs = ["$launcherCode/quickstep/protos_overrides"]
  47. }
  48. }
  49. }
  50. compileOptions {
  51. sourceCompatibility JavaVersion.VERSION_1_8
  52. targetCompatibility JavaVersion.VERSION_1_8
  53. }
  54. kotlinOptions {
  55. jvmTarget = "1.8"
  56. }
  57. }
  58. final String ANDROID_X_VERSION = '1.2.0'
  59. dependencies {
  60. implementation "androidx.core:core:${ANDROID_X_VERSION}"
  61. implementation "androidx.fragment:fragment:${ANDROID_X_VERSION}"
  62. implementation "androidx.dynamicanimation:dynamicanimation:1.0.0"
  63. implementation "androidx.recyclerview:recyclerview:${ANDROID_X_VERSION}"
  64. implementation "androidx.preference:preference:${ANDROID_X_VERSION}"
  65. implementation "androidx.constraintlayout:constraintlayout:2.0.0"
  66. implementation "com.google.android.material:material:1.4.0"
  67. implementation "androidx.slice:slice-core:1.1.0-alpha02"
  68. implementation "androidx.slice:slice-builders:1.1.0-alpha02"
  69. implementation 'com.airbnb.android:lottie:3.3.0'
  70. implementation project(":$rootDirName:IconLoader")
  71. implementation project(":$rootDirName:SystemUI:PluginCoreLib")
  72. implementation project(":$rootDirName:SystemUI:SystemUISharedLib")
  73. implementation project(":$rootDirName:SystemUI:SysUiStatsLog")
  74. implementation project(":$rootDirName:WindowManager:Shell")
  75. }