123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- apply plugin: 'com.android.application'
- android {
- compileSdkVersion 29
- buildToolsVersion '29.0.0'
- defaultConfig {
- applicationId "org.yczbj.ycvideoplayer"
- minSdkVersion 17
- targetSdkVersion 29
- versionCode 28
- versionName "2.8.0"
- // dex突破65535的限制
- multiDexEnabled true
- ndk {
- //设置支持的SO库架构
- abiFilters 'armeabi', 'armeabi-v7a'
- }
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
- //jdk1.8
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- lintOptions {
- abortOnError false
- }
- }
- dependencies {
- implementation fileTree(include: ['*.jar'], dir: 'libs')
- implementation 'androidx.appcompat:appcompat:1.2.0'
- implementation 'androidx.annotation:annotation:1.1.0'
- implementation 'androidx.cardview:cardview:1.0.0'
- implementation 'androidx.recyclerview:recyclerview:1.1.0'
- implementation 'com.google.android.material:material:1.2.1'
- implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
- //其他库
- implementation 'com.github.bumptech.glide:glide:4.9.0' //谷歌图片加载库
- implementation 'jp.wasabeef:glide-transformations:2.0.1'
- //exo的UI库
- implementation 'com.google.android.exoplayer:exoplayer-ui:2.11.3'
- implementation 'com.google.android.exoplayer:exoplayer-core:2.11.3'
- //这两个是必须要加的,其它的可供选择
- implementation 'tv.danmaku.ijk.media:ijkplayer-java:0.8.8'
- implementation 'tv.danmaku.ijk.media:ijkplayer-armv7a:0.8.4'
- //其他库文件
- //implementation 'tv.danmaku.ijk.media:ijkplayer-armv5:0.8.8'
- //implementation 'tv.danmaku.ijk.media:ijkplayer-arm64:0.8.8'
- //implementation 'tv.danmaku.ijk.media:ijkplayer-x86:0.8.8'
- //implementation 'tv.danmaku.ijk.media:ijkplayer-x86_64:0.8.8'
- //弹幕
- implementation 'com.github.ctiao:DanmakuFlameMaster:0.9.25'
- implementation 'com.github.ctiao:ndkbitmap-armv7a:0.9.21'
- implementation 'com.github.yangchong211.YCVideoPlayer:VideoCache:v1.0.0'
- implementation 'com.github.yangchong211.YCVideoPlayer:VideoPlayer:v1.0.0'
- implementation 'com.github.yangchong211.YCVideoPlayer:VideoKernel:v1.0.0'
- implementation 'com.github.yangchong211.YCVideoPlayer:VideoView:v1.0.0'
- implementation 'com.github.yangchong211.YCVideoPlayer:MusicPlayer:v1.0.0'
- implementation 'com.github.yangchong211.YCVideoPlayer:VideoM3u8:v1.0.0'
- implementation 'com.github.yangchong211.YCVideoPlayer:VideoSqlLite:v1.0.0'
- implementation project(path: ':VideoCache')
- implementation project(path: ':VideoPlayer')
- implementation project(path: ':VideoKernel')
- implementation project(path: ':VideoView')
- implementation project(path: ':MusicPlayer')
- implementation project(path: ':VideoM3u8')
- implementation project(path: ':VideoSqlLite')
- implementation project(path: ':AudioPlayer')
- implementation project(path: ':VideoTool')
- //自己封装的库,都有对应的案例项目【欢迎star】:https://github.com/yangchong211
- implementation 'cn.yc:YCStatusBarLib:1.5.0'
- implementation 'com.yc:PagerLib:1.0.4'
- implementation 'cn.yc:YCStateLib:1.2.2'
- }
|