build.gradle 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 29
  4. buildToolsVersion '29.0.0'
  5. defaultConfig {
  6. applicationId "org.yczbj.ycvideoplayer"
  7. minSdkVersion 17
  8. targetSdkVersion 29
  9. versionCode 28
  10. versionName "2.8.0"
  11. // dex突破65535的限制
  12. multiDexEnabled true
  13. ndk {
  14. //设置支持的SO库架构
  15. abiFilters 'armeabi', 'armeabi-v7a'
  16. }
  17. }
  18. buildTypes {
  19. release {
  20. minifyEnabled false
  21. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  22. }
  23. }
  24. //jdk1.8
  25. compileOptions {
  26. sourceCompatibility JavaVersion.VERSION_1_8
  27. targetCompatibility JavaVersion.VERSION_1_8
  28. }
  29. lintOptions {
  30. abortOnError false
  31. }
  32. }
  33. dependencies {
  34. implementation fileTree(include: ['*.jar'], dir: 'libs')
  35. implementation 'androidx.appcompat:appcompat:1.2.0'
  36. implementation 'androidx.annotation:annotation:1.1.0'
  37. implementation 'androidx.cardview:cardview:1.0.0'
  38. implementation 'androidx.recyclerview:recyclerview:1.1.0'
  39. implementation 'com.google.android.material:material:1.2.1'
  40. implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
  41. //其他库
  42. implementation 'com.github.bumptech.glide:glide:4.9.0' //谷歌图片加载库
  43. implementation 'jp.wasabeef:glide-transformations:2.0.1'
  44. //exo的UI库
  45. implementation 'com.google.android.exoplayer:exoplayer-ui:2.11.3'
  46. implementation 'com.google.android.exoplayer:exoplayer-core:2.11.3'
  47. //弹幕
  48. implementation 'com.github.ctiao:DanmakuFlameMaster:0.9.25'
  49. implementation 'com.github.ctiao:ndkbitmap-armv7a:0.9.21'
  50. //自己封装的库,都有对应的案例项目【欢迎star】:https://github.com/yangchong211
  51. implementation 'com.yc:PagerLib:1.0.4'
  52. implementation 'cn.yc:YCStateLib:1.2.2' //状态管理
  53. // implementation project(':VideoCache')
  54. // implementation project(':VideoPlayer')
  55. // implementation project(':VideoKernel')
  56. implementation 'cn.yc:VideoPlayer:3.0.8'
  57. implementation 'cn.yc:VideoCache:3.0.5'
  58. implementation 'cn.yc:VideoKernel:3.0.5'
  59. implementation 'cn.yc:YCStatusBarLib:1.5.0'
  60. //状态栏
  61. }