提交 c5ab68de 编写于 作者: G Goooler

Optimize dependencies

上级 e2569a13
......@@ -51,11 +51,8 @@ dependencies {
implementation androidDependencies.recyclerView
implementation androidDependencies.core
implementation viewDependencies.DanmakuFlameMaster
implementation viewDependencies.ndkbitmap_armv7a
implementation viewDependencies.ndkbitmap_armv5
implementation viewDependencies.ndkbitmap_x86
implementation viewDependencies.ndkBitmap
implementation viewDependencies.glide
implementation viewDependencies.glideProcessor
implementation androidDependencies.support_v4
implementation androidDependencies.design
implementation androidDependencies.viewpager2
......
......@@ -15,8 +15,8 @@ buildscript {
allprojects {
repositories {
google()
maven { url "https://maven.aliyun.com/repository/public" }
mavenCentral()
maven { url "https://maven.aliyun.com/repository/public" }
maven { url 'https://jitpack.io' }
}
}
......
......@@ -20,7 +20,7 @@ ext {
leakcanary = '2.7'
imageLoader = '4.12.0'
glideVersion = '4.12.0'
gsyVideoVersion = '8.1.2'
......@@ -30,11 +30,11 @@ ext {
androidDependencies = [
recyclerView: "androidx.recyclerview:recyclerview:1.2.0",
appcompat_v7: "androidx.appcompat:appcompat:1.2.0",
appCompat : "androidx.appcompat:appcompat:1.2.0",
support_v4 : "androidx.legacy:legacy-support-v4:${otherVersion}",
design : "com.google.android.material:material:1.3.0",
viewpager2 : "androidx.viewpager2:viewpager2:${otherVersion}",
core : "androidx.core:core:1.3.2",
core : "androidx.core:core:1.3.2"
]
viewDependencies = [
......@@ -43,18 +43,24 @@ ext {
ijkplayer_java : "com.github.CarGuo:GSYIjkJava:${CarGuoIjk}",
transitionseverywhere: "com.andkulikov:transitionseverywhere:${transitionseverywhere}",
DanmakuFlameMaster : "com.github.ctiao:DanmakuFlameMaster:${DanmakuFlameMaster}",
ndkbitmap_armv7a : "com.github.ctiao:ndkbitmap-armv7a:${DanmakuFlameMasterSo}",
ndkbitmap_armv5 : "com.github.ctiao:ndkbitmap-armv5:${DanmakuFlameMasterSo}",
ndkbitmap_x86 : "com.github.ctiao:ndkbitmap-x86:${DanmakuFlameMasterSo}",
glide : "com.github.bumptech.glide:glide:${imageLoader}",
glideProcessor : "com.github.bumptech.glide:compiler:${imageLoader}",
floatWindow : "com.github.yhaolpz:FloatWindow:${floatWindow}",
exo_player2 : "com.google.android.exoplayer:exoplayer:${exo_player2}",
exo_player2_rtmp : "com.google.android.exoplayer:extension-rtmp:${exo_player2}",
ndkBitmap : [
"com.github.ctiao:ndkbitmap-armv7a:${DanmakuFlameMasterSo}",
"com.github.ctiao:ndkbitmap-armv5:${DanmakuFlameMasterSo}",
"com.github.ctiao:ndkbitmap-x86:${DanmakuFlameMasterSo}",
],
glide : [
"com.github.bumptech.glide:glide:${glideVersion}",
"com.github.bumptech.glide:okhttp3-integration:$glideVersion"
],
exoPlayer2 : [
"com.google.android.exoplayer:exoplayer:${exo_player2}",
"com.google.android.exoplayer:extension-rtmp:${exo_player2}"
]
]
dataDependencies = [
videocache : "com.shuyu:gsyvideoplayer-androidvideocache:${gsyVideoVersion}",
leakcanary : "com.squareup.leakcanary:leakcanary-android:${leakcanary}",
......
......@@ -3,8 +3,7 @@ apply plugin: 'com.android.library'
apply from: "${rootDir.path}/gradle/base.gradle"
dependencies {
api viewDependencies.exo_player2
api viewDependencies.exo_player2_rtmp
api viewDependencies.exoPlayer2
api project(':gsyVideoPlayer-base')
//api "com.shuyu:gsyVideoPlayer-base:$gsyVideoVersion"
}
......@@ -3,7 +3,7 @@ apply plugin: 'com.android.library'
apply from: "${rootDir.path}/gradle/base.gradle"
dependencies {
implementation androidDependencies.appcompat_v7
implementation androidDependencies.appCompat
api viewDependencies.ijkplayer_java
//api viewDependencies.ijkplayer_exo
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册