build.gradle 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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 'tv.danmaku.ijk.media:ijkplayer-java:0.8.8'
  49. implementation 'tv.danmaku.ijk.media:ijkplayer-armv7a:0.8.4'
  50. //其他库文件
  51. //implementation 'tv.danmaku.ijk.media:ijkplayer-armv5:0.8.8'
  52. //implementation 'tv.danmaku.ijk.media:ijkplayer-arm64:0.8.8'
  53. //implementation 'tv.danmaku.ijk.media:ijkplayer-x86:0.8.8'
  54. //implementation 'tv.danmaku.ijk.media:ijkplayer-x86_64:0.8.8'
  55. //弹幕
  56. implementation 'com.github.ctiao:DanmakuFlameMaster:0.9.25'
  57. implementation 'com.github.ctiao:ndkbitmap-armv7a:0.9.21'
  58. implementation 'com.github.yangchong211.YCVideoPlayer:VideoCache:v1.0.0'
  59. implementation 'com.github.yangchong211.YCVideoPlayer:VideoPlayer:v1.0.0'
  60. implementation 'com.github.yangchong211.YCVideoPlayer:VideoKernel:v1.0.0'
  61. implementation 'com.github.yangchong211.YCVideoPlayer:VideoView:v1.0.0'
  62. implementation 'com.github.yangchong211.YCVideoPlayer:MusicPlayer:v1.0.0'
  63. implementation 'com.github.yangchong211.YCVideoPlayer:VideoM3u8:v1.0.0'
  64. implementation 'com.github.yangchong211.YCVideoPlayer:VideoSqlLite:v1.0.0'
  65. implementation project(path: ':VideoCache')
  66. implementation project(path: ':VideoPlayer')
  67. implementation project(path: ':VideoKernel')
  68. implementation project(path: ':VideoView')
  69. implementation project(path: ':MusicPlayer')
  70. implementation project(path: ':VideoM3u8')
  71. implementation project(path: ':VideoSqlLite')
  72. implementation project(path: ':AudioPlayer')
  73. implementation project(path: ':VideoTool')
  74. //自己封装的库,都有对应的案例项目【欢迎star】:https://github.com/yangchong211
  75. implementation 'cn.yc:YCStatusBarLib:1.5.0'
  76. implementation 'com.yc:PagerLib:1.0.4'
  77. implementation 'cn.yc:YCStateLib:1.2.2'
  78. }