提交 c5ab68de 编写于 作者: G Goooler

Optimize dependencies

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