build.gradle 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. plugins {
  2. id 'com.android.application'
  3. id 'kotlin-android'
  4. }
  5. android {
  6. compileSdk 31
  7. defaultConfig {
  8. applicationId "io.anyrtc.liveplayer"
  9. minSdk 21
  10. targetSdk 31
  11. versionCode 1
  12. versionName "1.0"
  13. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  14. }
  15. buildTypes {
  16. release {
  17. minifyEnabled true
  18. shrinkResources true
  19. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  20. }
  21. debug {
  22. minifyEnabled false
  23. debuggable true
  24. jniDebuggable true
  25. renderscriptDebuggable true
  26. }
  27. }
  28. compileOptions {
  29. sourceCompatibility JavaVersion.VERSION_1_8
  30. targetCompatibility JavaVersion.VERSION_1_8
  31. }
  32. kotlinOptions {
  33. jvmTarget = '1.8'
  34. }
  35. viewBinding {
  36. enabled = true
  37. }
  38. dataBinding {
  39. enabled = true
  40. }
  41. }
  42. dependencies {
  43. implementation fileTree(dir: "libs", include: ["*.jar"])
  44. implementation 'androidx.core:core-ktx:1.7.0'
  45. implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.1'
  46. implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2'
  47. implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.4.0'
  48. implementation 'androidx.appcompat:appcompat:1.4.1'
  49. implementation 'com.google.android.material:material:1.5.0'
  50. implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
  51. implementation project(path: ':liveplayer')
  52. testImplementation 'junit:junit:4.+'
  53. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  54. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  55. implementation("io.coil-kt:coil-gif:1.4.0")
  56. implementation("io.coil-kt:coil:1.4.0")
  57. implementation 'com.github.LxzBUG:ScreenShare:1.1.6'
  58. }