build.gradle 805 B

12345678910111213141516171819202122232425262728293031323334
  1. apply from: "../../Script/config.gradle"
  2. ext {
  3. codePath = "$rootDir/$rootDirName/$systemUiLibsPath/viewcapturelib"
  4. }
  5. apply from: "$scriptPath/frameworks_module.gradle"
  6. apply from: frameworkDependencies
  7. apply from: protobufConfig
  8. apply plugin: 'kotlin-android'
  9. android {
  10. namespace 'com.android.app.viewcapture'
  11. sourceSets {
  12. main {
  13. proto {
  14. srcDir "$codePath/src/com/android/app/viewcapture/proto/"
  15. }
  16. }
  17. }
  18. compileOptions {
  19. sourceCompatibility JavaVersion.VERSION_17
  20. targetCompatibility JavaVersion.VERSION_17
  21. }
  22. kotlinOptions {
  23. jvmTarget = "17"
  24. freeCompilerArgs = ['-Xjvm-default=enable']
  25. }
  26. }
  27. dependencies {
  28. implementation "androidx.annotation:annotation:$ANDROID_X_VERSION_BASE"
  29. }