build.gradle 2.0 KB

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