Skip to content

Commit cfdf670

Browse files
author
Half Stack
authored
Merge pull request #69 from chenenyu/dev
1.3.3
2 parents dd1da76 + af4ebac commit cfdf670

File tree

7 files changed

+30
-22
lines changed

7 files changed

+30
-22
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 2018.01.30
2+
3+
`router: 1.3.3`:
4+
5+
1. fix: https://github.com/chenenyu/Router/pull/68
6+
17
## 2017.11.29
28

39
`router: 1.3.2`:

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,8 @@ Router.initialize(new Configuration.Builder()
4545
.build());
4646
```
4747

48-
2. 添加注解
4948

50-
```java
51-
// 这里添加了path和拦截器
52-
@Route(value = "test", interceptors = "SampleInterceptor")
53-
public class TestActivity extends AppCompatActivity {
54-
...
55-
}
56-
```
57-
58-
3. 添加拦截器
49+
2. 添加拦截器(可选)
5950

6051
```java
6152
@Interceptor("SampleInterceptor")
@@ -68,6 +59,16 @@ public class SampleInterceptor implements RouteInterceptor {
6859
}
6960
```
7061

62+
3. 添加注解
63+
64+
```java
65+
// 这里添加了path和拦截器(可选)
66+
@Route(value = "test", interceptors = "SampleInterceptor")
67+
public class TestActivity extends AppCompatActivity {
68+
...
69+
}
70+
```
71+
7172
4. 跳转
7273

7374
```java

VERSION.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# router library version
2-
ROUTER_VERSION=1.3.2
2+
ROUTER_VERSION=1.3.3
33
# compiler library version
4-
COMPILER_VERSION=1.3.2
4+
COMPILER_VERSION=1.3.3
55
# annotation library version
66
ANNOTATION_VERSION=0.3.0

annotation/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apply plugin: 'java'
22

3-
sourceCompatibility = "1.7"
4-
targetCompatibility = "1.7"
3+
sourceCompatibility = JavaVersion.VERSION_1_7
4+
targetCompatibility = JavaVersion.VERSION_1_7
55

66
apply from: 'publish.gradle'

build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
buildscript {
2-
ext.kotlin_version = '1.1.51'
2+
ext.kotlin_version = '1.2.10'
33
repositories {
44
google()
55
jcenter()
@@ -27,10 +27,10 @@ ext {
2727
sourceCompatibility = JavaVersion.VERSION_1_7
2828
targetCompatibility = JavaVersion.VERSION_1_7
2929

30-
compileSdkVersion = 26
31-
buildToolsVersion = "26.0.3"
30+
compileSdkVersion = 27
31+
buildToolsVersion = "27.0.3"
3232
minSdkVersion = 14
33-
targetSdkVersion = 26
33+
targetSdkVersion = 27
3434

35-
supportVersion = "26.1.0"
35+
supportVersion = "27.0.2"
3636
}

router/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ android {
55
buildToolsVersion rootProject.ext.buildToolsVersion
66

77
defaultConfig {
8-
minSdkVersion 14
8+
minSdkVersion rootProject.ext.minSdkVersion
99
targetSdkVersion rootProject.ext.targetSdkVersion
1010
versionCode 1
1111
versionName "1.0"

router/src/main/java/com/chenenyu/router/RealRouter.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,11 @@ public Intent getIntent(Context context) {
217217
return finalizeIntent(context, matcher, null);
218218
}
219219
} else {
220+
boolean isiImplicit = matcher instanceof AbsImplicitMatcher;
220221
for (Map.Entry<String, Class<?>> entry : entries) {
221-
if (matcher.match(context, mRouteRequest.getUri(), entry.getKey(), mRouteRequest)) {
222+
if (matcher.match(context, mRouteRequest.getUri(), isiImplicit ? null : entry.getKey(), mRouteRequest)) {
222223
RLog.i("Caught by " + matcher.getClass().getCanonicalName());
223-
return finalizeIntent(context, matcher, entry.getValue());
224+
return finalizeIntent(context, matcher, isiImplicit ? null : entry.getValue());
224225
}
225226
}
226227
}

0 commit comments

Comments
 (0)