build.gradle 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. apply plugin: 'com.android.application'
  2. apply from: rootProject.projectDir.absolutePath + "/VideoGradle/video.gradle"
  3. android {
  4. compileSdkVersion project.ext.androidCompileSdkVersion
  5. buildToolsVersion project.ext.androidBuildToolsVersion
  6. defaultConfig {
  7. applicationId "com.yc.ycvideoplayer"
  8. minSdkVersion project.ext.androidMinSdkVersion
  9. targetSdkVersion project.ext.androidTargetSdkVersion
  10. versionCode 28
  11. versionName "2.8.0"
  12. // dex突破65535的限制
  13. multiDexEnabled true
  14. ndk {
  15. //设置支持的SO库架构
  16. abiFilters 'armeabi', 'armeabi-v7a'
  17. }
  18. }
  19. buildTypes {
  20. release {
  21. minifyEnabled false
  22. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  23. }
  24. }
  25. //jdk1.8
  26. compileOptions {
  27. sourceCompatibility JavaVersion.VERSION_1_8
  28. targetCompatibility JavaVersion.VERSION_1_8
  29. }
  30. lintOptions {
  31. abortOnError false
  32. }
  33. }
  34. dependencies {
  35. implementation fileTree(include: ['*.jar'], dir: 'libs')
  36. implementation 'androidx.appcompat:appcompat:1.2.0'
  37. implementation 'androidx.annotation:annotation:1.1.0'
  38. implementation 'androidx.cardview:cardview:1.0.0'
  39. implementation 'androidx.recyclerview:recyclerview:1.1.0'
  40. implementation 'com.google.android.material:material:1.2.1'
  41. implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
  42. implementation 'pub.devrel:easypermissions:3.0.0'
  43. //其他库
  44. implementation 'com.github.bumptech.glide:glide:4.9.0' //谷歌图片加载库
  45. implementation 'jp.wasabeef:glide-transformations:2.0.1'
  46. //exo的UI库
  47. implementation 'com.google.android.exoplayer:exoplayer-ui:2.11.3'
  48. implementation 'com.google.android.exoplayer:exoplayer-core:2.11.3'
  49. //这两个是必须要加的,其它的可供选择
  50. implementation 'tv.danmaku.ijk.media:ijkplayer-java:0.8.8'
  51. implementation 'tv.danmaku.ijk.media:ijkplayer-armv7a:0.8.4'
  52. //其他库文件
  53. //implementation 'tv.danmaku.ijk.media:ijkplayer-armv5:0.8.8'
  54. //implementation 'tv.danmaku.ijk.media:ijkplayer-arm64:0.8.8'
  55. //implementation 'tv.danmaku.ijk.media:ijkplayer-x86:0.8.8'
  56. //implementation 'tv.danmaku.ijk.media:ijkplayer-x86_64:0.8.8'
  57. //弹幕
  58. implementation 'com.github.ctiao:DanmakuFlameMaster:0.9.25'
  59. implementation 'com.github.ctiao:ndkbitmap-armv7a:0.9.21'
  60. implementation 'com.github.yangchong211.YCVideoPlayer:VideoPlayer:1.1.0'
  61. implementation 'com.github.yangchong211.YCVideoPlayer:VideoKernel:1.1.0'
  62. implementation 'com.github.yangchong211.YCVideoPlayer:VideoView:1.1.0'
  63. implementation 'com.github.yangchong211.YCVideoPlayer:MusicPlayer:1.1.0'
  64. implementation 'com.github.yangchong211.YCVideoPlayer:VideoM3u8:1.1.0'
  65. implementation 'com.github.yangchong211.YCVideoPlayer:VideoSqlLite:1.1.0'
  66. implementation 'com.github.yangchong211.YCVideoPlayer:AudioPlayer:1.1.0'
  67. implementation 'com.github.yangchong211.YCVideoPlayer:VideoTool:1.1.0'
  68. implementation 'com.github.yangchong211.YCVideoPlayer:VideoCache:1.1.0'
  69. // implementation project(path: ':VideoCache')
  70. // implementation project(path: ':VideoPlayer')
  71. // implementation project(path: ':VideoKernel')
  72. // implementation project(path: ':VideoView')
  73. // implementation project(path: ':MusicPlayer')
  74. // implementation project(path: ':VideoM3u8')
  75. // implementation project(path: ':VideoSqlLite')
  76. // implementation project(path: ':AudioPlayer')
  77. // implementation project(path: ':VideoTool')
  78. //自己封装的库,都有对应的案例项目【欢迎star】:https://github.com/yangchong211
  79. implementation 'cn.yc:YCStatusBarLib:1.5.0'
  80. implementation 'com.github.yangchong211:YCScrollPager:1.0.5'
  81. implementation 'cn.yc:YCStateLib:1.2.2'
  82. }