1
0

build.gradle 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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 project(path: ':VideoCache')
  59. implementation project(path: ':VideoPlayer')
  60. implementation project(path: ':VideoKernel')
  61. implementation project(path: ':VideoView')
  62. implementation project(path: ':MusicPlayer')
  63. implementation project(path: ':VideoM3u8')
  64. implementation project(path: ':VideoSqlLite')
  65. implementation project(path: ':AudioPlayer')
  66. implementation project(path: ':VideoTool')
  67. // implementation 'cn.yc:MusicPlayer:1.0.2'
  68. // implementation 'cn.yc:VideoPlayer:3.1.0'
  69. // implementation 'cn.yc:VideoCache:3.0.5'
  70. // implementation 'cn.yc:VideoKernel:3.0.6'
  71. // implementation 'cn.yc:VideoView:3.0.5'
  72. // implementation 'cn.yc:VideoM3u8:1.0.0'
  73. // implementation 'cn.yc:VideoSqlLite:1.0.2'
  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. }