build.gradle 982 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. plugins {
  2. id 'com.android.library'
  3. id 'org.jetbrains.kotlin.android'
  4. id 'kotlin-kapt'
  5. }
  6. android {
  7. compileSdk 31
  8. defaultConfig {
  9. minSdk 21
  10. targetSdk 27
  11. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  12. consumerProguardFiles "consumer-rules.pro"
  13. }
  14. buildTypes {
  15. release {
  16. minifyEnabled false
  17. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  18. }
  19. }
  20. compileOptions {
  21. sourceCompatibility JavaVersion.VERSION_1_8
  22. targetCompatibility JavaVersion.VERSION_1_8
  23. }
  24. kotlinOptions {
  25. jvmTarget = '1.8'
  26. }
  27. viewBinding {
  28. enabled = true
  29. }
  30. }
  31. dependencies {
  32. api 'androidx.core:core-ktx:1.6.0'
  33. api 'androidx.appcompat:appcompat:1.3.0'
  34. api 'com.google.android.material:material:1.4.0'
  35. api project(path: ':libThirdParty')
  36. kapt 'androidx.room:room-compiler:2.3.0'
  37. }