build.gradle 773 B

12345678910111213141516171819202122232425262728293031323334
  1. plugins {
  2. id 'com.android.library'
  3. id 'org.jetbrains.kotlin.android'
  4. }
  5. android {
  6. compileSdk = compile_sdk_version
  7. namespace 'me.ag2s'
  8. kotlin {
  9. jvmToolchain {
  10. languageVersion.set(JavaLanguageVersion.of(17))
  11. }
  12. }
  13. defaultConfig {
  14. minSdk 21
  15. targetSdk 33
  16. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  17. consumerProguardFiles "consumer-rules.pro"
  18. }
  19. compileOptions {
  20. sourceCompatibility JavaVersion.VERSION_17
  21. targetCompatibility JavaVersion.VERSION_17
  22. }
  23. lint {
  24. checkDependencies true
  25. }
  26. }
  27. dependencies {
  28. compileOnly "com.android.tools.build:gradle:$agp_version"
  29. implementation "androidx.annotation:annotation:1.6.0"
  30. }