build.gradle 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import java.nio.file.Paths
  2. apply from: "../../Script/config.gradle"
  3. ext {
  4. codePath = Paths.get("$rootDir", "$rootDirName", "$systemUiPath", "shared")
  5. }
  6. apply from: "$scriptPath/frameworks_module.gradle"
  7. apply from: frameworkDependencies
  8. apply from: aidlCompile
  9. apply plugin: 'kotlin-android'
  10. apply plugin: 'kotlin-kapt'
  11. android {
  12. namespace 'com.android.systemui.shared'
  13. defaultConfig {
  14. minSdk 33
  15. }
  16. buildFeatures {
  17. aidl(true)
  18. }
  19. compileOptions {
  20. sourceCompatibility JavaVersion.VERSION_17
  21. targetCompatibility JavaVersion.VERSION_17
  22. }
  23. kotlinOptions {
  24. jvmTarget = "17"
  25. }
  26. }
  27. dependencies {
  28. implementation "androidx.core:core:$ANDROID_X_VERSION"
  29. implementation "androidx.lifecycle:lifecycle-common:2.4.0"
  30. implementation "androidx.concurrent:concurrent-futures:$ANDROID_X_VERSION_BASE"
  31. // implementation "androidx.dynamicanimation:dynamicanimation:1.0.0"
  32. implementation 'javax.inject:javax.inject:1' // jsr330
  33. implementation 'com.google.dagger:dagger:2.45'
  34. kapt 'com.google.dagger:dagger-compiler:2.45'
  35. implementation project(":$rootDirName:SystemUI:PluginCoreLib")
  36. implementation project(":$rootDirName:SystemUI:SystemUIPluginLib")
  37. implementation project(":$rootDirName:SystemUI:SystemUIUnfoldLib")
  38. implementation project(":$rootDirName:WindowManager:Shell")
  39. }