File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 127127 @Autowired
128128 public String name;
129129 @Autowired
130- private int age;
130+ int age;
131131 @Autowired(name = "girl") // 通过name来映射URL中的不同参数
132- private boolean boy;
132+ boolean boy;
133133
134134 @Override
135135 protected void onCreate(Bundle savedInstanceState) {
Original file line number Diff line number Diff line change 6464 }
6565
66663 . 初始化SDK
67+
6768 if (isDebug()) {
6869 ARouter.openLog(); // 打印日志
6970 ARouter.openDebug(); // 开启调试模式(如果在InstantRun模式下运行,必须开启调试模式!线上版本需要关闭,否则有安全风险)
124125 @Autowired
125126 public String name;
126127 @Autowired
127- private int age;
128+ int age;
128129 @Autowired(name = "girl") // 通过name来映射URL中的不同参数
129- private boolean boy;
130+ boolean boy;
130131
131132 @Override
132133 protected void onCreate(Bundle savedInstanceState) {
Original file line number Diff line number Diff line change @@ -55,6 +55,6 @@ dependencies {
5555 compile project(' :test-module-1' )
5656 compile project(' :arouter-annotation' )
5757
58- compile ' com.android.support:appcompat-v7:22.2.0 '
59- compile ' com.android.support:support-v4:23.4.0 '
58+ compile " com.android.support:support-v4: ${ SUPPORT_LIB_VERSION } "
59+ compile " com.android.support:appcompat-v7: ${ SUPPORT_LIB_VERSION } "
6060}
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ android {
4141dependencies {
4242 annotationProcessor ' com.alibaba:arouter-compiler:1.0.3'
4343 compile ' com.alibaba:arouter-annotation:1.0.2'
44- compile ' com.android.support:support-v4:25.2.0 '
44+ compile " com.android.support:support-v4:${ SUPPORT_LIB_VERSION } "
4545}
4646
4747apply from : ' https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ org.gradle.daemon=true
2020
2121COMPILE_SDK_VERSION =25
2222BUILDTOOLS_VERSION =25.0.0
23+ SUPPORT_LIB_VERSION =25.2.0
2324MIN_SDK_VERSION =12
2425TARGET_SDK_VERSION =25
2526
Original file line number Diff line number Diff line change @@ -2,9 +2,8 @@ apply plugin: 'com.android.library'
22
33dependencies {
44 compile project(' :arouter-api' )
5-
6- compile ' com.android.support:appcompat-v7:23.4.0'
7- annotationProcessor ' com.alibaba:arouter-compiler:1.0.1'
5+ compile " com.android.support:appcompat-v7:${ SUPPORT_LIB_VERSION} "
6+ annotationProcessor ' com.alibaba:arouter-compiler:1.0.3'
87}
98android {
109 compileSdkVersion Integer . parseInt(COMPILE_SDK_VERSION )
You can’t perform that action at this time.
0 commit comments