build.gradle 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. // implementation project(path: ':VideoCache')
  51. // implementation project(path: ':VideoPlayer')
  52. // implementation project(path: ':VideoKernel')
  53. // implementation project(path: ':VideoView')
  54. // implementation project(path: ':MusicPlayer')
  55. // implementation project(path: ':VideoM3u8')
  56. // implementation project(path: ':VideoSqlLite')
  57. implementation 'cn.yc:MusicPlayer:1.0.2'
  58. implementation 'cn.yc:VideoPlayer:3.1.0'
  59. implementation 'cn.yc:VideoCache:3.0.5'
  60. implementation 'cn.yc:VideoKernel:3.0.6'
  61. implementation 'cn.yc:VideoView:3.0.5'
  62. implementation 'cn.yc:VideoM3u8:1.0.0'
  63. implementation 'cn.yc:VideoSqlLite:1.0.2'
  64. //自己封装的库,都有对应的案例项目【欢迎star】:https://github.com/yangchong211
  65. implementation 'cn.yc:YCStatusBarLib:1.5.0'
  66. implementation 'com.yc:PagerLib:1.0.4'
  67. implementation 'cn.yc:YCStateLib:1.2.2'
  68. }