diff --git a/RePluginDemo/build.gradle b/RePluginDemo/build.gradle index 5207c56..07ca9f3 100644 --- a/RePluginDemo/build.gradle +++ b/RePluginDemo/build.gradle @@ -1,5 +1,5 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. - +apply from: './version.gradle' buildscript { repositories { jcenter() @@ -24,12 +24,3 @@ task clean(type: Delete) { delete rootProject.buildDir } -ext { - ROUTER_VERSION="2.6.0" - PARCELER_VERSION="1.3.5" - ButterKnife_version = "8.8.1" - UpdatePlugin_version = "2.9.1" - RePlugin_version = '2.1.7' - Router_RePlugin_version = '0.7.0' - useLocal = true // 指定当前使用的Router-RePlugin库。是使用本地的还是远程仓库的。 -} \ No newline at end of file diff --git a/RePluginDemo/version.gradle b/RePluginDemo/version.gradle index e69de29..62d33d9 100644 --- a/RePluginDemo/version.gradle +++ b/RePluginDemo/version.gradle @@ -0,0 +1,9 @@ +ext { + ROUTER_VERSION="2.6.0" + PARCELER_VERSION="1.3.5" + ButterKnife_version = "8.8.1" + UpdatePlugin_version = "2.9.1" + RePlugin_version = '2.1.7' + Router_RePlugin_version = '0.7.0' + useLocal = false // 指定当前使用的Router-RePlugin库。是使用本地的还是远程仓库的。 +} \ No newline at end of file diff --git a/build.gradle b/build.gradle index 5edb42a..3ff849d 100644 --- a/build.gradle +++ b/build.gradle @@ -23,10 +23,4 @@ task clean(type: Delete) { delete rootProject.buildDir } -ext { - ROUTER_VERSION="2.4.5" - PARCELER_VERSION="1.2" - ButterKnife_version = "8.8.1" - UpdatePlugin_version = "2.4.3" - RePlugin_version = '2.1.7' -} \ No newline at end of file +apply from: 'RePluginDemo/version.gradle' \ No newline at end of file