Skip to content

Commit

Permalink
Update doc and set support package version
Browse files Browse the repository at this point in the history
  • Loading branch information
zhi1ong committed Mar 16, 2017
1 parent 2897753 commit c9760cb
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
5 changes: 3 additions & 2 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
}

3. 初始化SDK

if (isDebug()) {
ARouter.openLog(); // 打印日志
ARouter.openDebug(); // 开启调试模式(如果在InstantRun模式下运行,必须开启调试模式!线上版本需要关闭,否则有安全风险)
Expand Down Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}
2 changes: 1 addition & 1 deletion arouter-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 2 additions & 3 deletions test-module-1/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c9760cb

Please sign in to comment.