From 7aa92655e242bb8edb8b270934466e4cea9628ee Mon Sep 17 00:00:00 2001 From: xufulong <839789740@qq.com> Date: Sat, 16 Nov 2019 14:39:44 +0800 Subject: [PATCH] =?UTF-8?q?appcompat=E7=AD=89=E7=89=88=E6=9C=AC=E5=8F=B7?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E5=AE=8F=E5=AE=9A=E4=B9=89=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit appcompat等版本号改为宏定义引用 --- Live/build.gradle | 2 +- OnLive/build.gradle | 14 +++++++------- app/build.gradle | 4 ++-- gradle.properties | 7 +++++++ 4 files changed, 17 insertions(+), 10 deletions(-) diff --git a/Live/build.gradle b/Live/build.gradle index 09cbd28..fce0861 100644 --- a/Live/build.gradle +++ b/Live/build.gradle @@ -33,5 +33,5 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) - implementation 'androidx.appcompat:appcompat:1.1.0' + implementation "androidx.appcompat:appcompat:$rootProject.appcompatVersion" } diff --git a/OnLive/build.gradle b/OnLive/build.gradle index be8a324..e01a34a 100644 --- a/OnLive/build.gradle +++ b/OnLive/build.gradle @@ -39,14 +39,14 @@ android { dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') - implementation 'androidx.appcompat:appcompat:1.1.0' - implementation 'androidx.preference:preference:1.1.0' - implementation 'androidx.annotation:annotation:1.1.0' - implementation 'androidx.recyclerview:recyclerview:1.1.0-rc01' + implementation "androidx.appcompat:appcompat:$rootProject.appcompatVersion" + implementation "androidx.preference:preference:$rootProject.preferenceVersion" + implementation "androidx.annotation:annotation:$rootProject.annotationVersion" + implementation "androidx.recyclerview:recyclerview:$rootProject.recyclerviewVersion" - implementation 'com.squareup:otto:1.3.8' + implementation "com.squareup:otto:$rootProject.ottoVersion" - implementation 'tv.danmaku.ijk.media:ijkplayer-java:0.8.8' - implementation 'tv.danmaku.ijk.media:ijkplayer-exo:0.8.8' + implementation "tv.danmaku.ijk.media:ijkplayer-java:$rootProject.ijkVersion" + implementation "tv.danmaku.ijk.media:ijkplayer-exo:$rootProject.ijkVersion" } diff --git a/app/build.gradle b/app/build.gradle index 599de3c..7058e14 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -42,8 +42,8 @@ android { dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') - implementation 'androidx.appcompat:appcompat:1.1.0' - implementation 'androidx.recyclerview:recyclerview:1.1.0-rc01' + implementation "androidx.appcompat:appcompat:$rootProject.appcompatVersion" + implementation "androidx.recyclerview:recyclerview:$rootProject.recyclerviewVersion" testImplementation 'junit:junit:4.12' implementation project(':Live') } diff --git a/gradle.properties b/gradle.properties index fe01dc1..2fd727c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -18,3 +18,10 @@ org.gradle.jvmargs=-Xmx512m android.enableJetifier=true android.useAndroidX=true + +appcompatVersion=1.1.0 +recyclerviewVersion=1.1.0-rc01 +preferenceVersion=1.1.0 +annotationVersion=1.1.0 +ottoVersion=1.3.8 +ijkVersion=0.8.8 \ No newline at end of file