build.gradle 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. plugins{
  2. id 'com.android.library'
  3. id 'kotlin-android'
  4. id 'kotlin-kapt'
  5. }
  6. android {
  7. compileSdkVersion rootProject.ext.compileSdkVersion
  8. buildToolsVersion rootProject.ext.buildToolsVersion
  9. defaultConfig {
  10. minSdkVersion rootProject.ext.minSdkVersion
  11. targetSdkVersion rootProject.ext.targetSdkVersion
  12. versionCode 1
  13. versionName "1.0"
  14. testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
  15. }
  16. sourceSets {
  17. main.java.srcDirs += 'src/main/kotlin'
  18. }
  19. buildTypes {
  20. release {
  21. minifyEnabled false
  22. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  23. }
  24. }
  25. compileOptions {
  26. sourceCompatibility 1.8
  27. targetCompatibility 1.8
  28. }
  29. }
  30. dependencies {
  31. implementation fileTree(dir: 'libs', include: ['*.jar'])
  32. api 'com.tencent.liteav:LiteAVSDK_Player:latest.release'
  33. implementation 'androidx.appcompat:appcompat:1.4.2'
  34. implementation 'androidx.recyclerview:recyclerview:1.2.1'
  35. api 'com.github.bumptech.glide:glide:4.12.0'
  36. implementation 'androidx.exifinterface:exifinterface:1.3.3'
  37. api 'androidx.constraintlayout:constraintlayout:2.1.4'
  38. def room_version = "2.4.0"
  39. implementation "androidx.room:room-runtime:$room_version"
  40. kapt "androidx.room:room-compiler:$room_version"
  41. implementation("androidx.room:room-ktx:$room_version")
  42. implementation "androidx.core:core-ktx:1.7.0"
  43. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
  44. implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0'
  45. implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.0'
  46. }