From c9760cb180c0b9db4ce1322adc51d64541705d2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AD=A3=E7=BA=AC?= Date: Thu, 16 Mar 2017 15:45:58 +0800 Subject: [PATCH] Update doc and set support package version --- README.md | 4 ++-- README_CN.md | 5 +++-- app/build.gradle | 4 ++-- arouter-api/build.gradle | 2 +- gradle.properties | 1 + test-module-1/build.gradle | 5 ++--- 6 files changed, 11 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index d54f7bfe..65bd7022 100644 --- a/README.md +++ b/README.md @@ -127,9 +127,9 @@ @Autowired public String name; @Autowired - private int age; + int age; @Autowired(name = "girl") // 通过name来映射URL中的不同参数 - private boolean boy; + boolean boy; @Override protected void onCreate(Bundle savedInstanceState) { diff --git a/README_CN.md b/README_CN.md index 30e093a9..ae53ab11 100644 --- a/README_CN.md +++ b/README_CN.md @@ -64,6 +64,7 @@ } 3. 初始化SDK + if (isDebug()) { ARouter.openLog(); // 打印日志 ARouter.openDebug(); // 开启调试模式(如果在InstantRun模式下运行,必须开启调试模式!线上版本需要关闭,否则有安全风险) @@ -124,9 +125,9 @@ @Autowired public String name; @Autowired - private int age; + int age; @Autowired(name = "girl") // 通过name来映射URL中的不同参数 - private boolean boy; + boolean boy; @Override protected void onCreate(Bundle savedInstanceState) { diff --git a/app/build.gradle b/app/build.gradle index 819d32aa..5b5c0913 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -55,6 +55,6 @@ dependencies { compile project(':test-module-1') compile project(':arouter-annotation') - compile 'com.android.support:appcompat-v7:22.2.0' - compile 'com.android.support:support-v4:23.4.0' + compile "com.android.support:support-v4:${SUPPORT_LIB_VERSION}" + compile "com.android.support:appcompat-v7:${SUPPORT_LIB_VERSION}" } \ No newline at end of file diff --git a/arouter-api/build.gradle b/arouter-api/build.gradle index d31f9ce0..632cd078 100644 --- a/arouter-api/build.gradle +++ b/arouter-api/build.gradle @@ -41,7 +41,7 @@ android { dependencies { annotationProcessor 'com.alibaba:arouter-compiler:1.0.3' compile 'com.alibaba:arouter-annotation:1.0.2' - compile 'com.android.support:support-v4:25.2.0' + compile "com.android.support:support-v4:${SUPPORT_LIB_VERSION}" } apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle' diff --git a/gradle.properties b/gradle.properties index 6a185eeb..a880ff65 100644 --- a/gradle.properties +++ b/gradle.properties @@ -20,6 +20,7 @@ org.gradle.daemon=true COMPILE_SDK_VERSION=25 BUILDTOOLS_VERSION=25.0.0 +SUPPORT_LIB_VERSION=25.2.0 MIN_SDK_VERSION=12 TARGET_SDK_VERSION=25 diff --git a/test-module-1/build.gradle b/test-module-1/build.gradle index 46b994e7..8eafb426 100644 --- a/test-module-1/build.gradle +++ b/test-module-1/build.gradle @@ -2,9 +2,8 @@ apply plugin: 'com.android.library' dependencies { compile project(':arouter-api') - - compile 'com.android.support:appcompat-v7:23.4.0' - annotationProcessor 'com.alibaba:arouter-compiler:1.0.1' + compile "com.android.support:appcompat-v7:${SUPPORT_LIB_VERSION}" + annotationProcessor 'com.alibaba:arouter-compiler:1.0.3' } android { compileSdkVersion Integer.parseInt(COMPILE_SDK_VERSION)