build.gradle 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. plugins {
  2. id 'com.android.library'
  3. id 'org.jetbrains.kotlin.android'
  4. }
  5. android {
  6. compileSdk = rootProject.ext.compileSdkVersion
  7. buildToolsVersion rootProject.ext.buildToolsVersion
  8. defaultConfig {
  9. minSdkVersion rootProject.ext.minSdkVersion
  10. targetSdkVersion rootProject.ext.targetSdkVersion
  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. }
  28. dependencies {
  29. api project(':lib_common')
  30. implementation 'androidx.core:core-ktx:1.8.0'
  31. implementation 'androidx.appcompat:appcompat:1.5.0'
  32. implementation 'com.google.android.material:material:1.6.1'
  33. testImplementation 'junit:junit:4.13.2'
  34. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  35. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  36. /*Kotlin*/
  37. api "androidx.core:core-ktx:1.8.0"
  38. api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  39. api 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.3'
  40. api 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.3'
  41. }