build.gradle 853 B

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