File tree Expand file tree Collapse file tree
androidrouter/src/main/java/com/tangxiaolv/router/exceptions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ Note:Android-Router Protocol Format: scheme://host/path?params=json
8181
8282* scheme[ 1] host[ 1] path[ 2] params[ 2] 1: required 2: option *
8383
84- ### Step 1: Setup router module.
84+ ** Step 1: Setup router module**
8585``` java
8686/**
8787 * Supported parameter types
@@ -189,7 +189,8 @@ public class RemoteModule implements IRouter {
189189 }
190190}
191191```
192- ###Step 2: Invoke
192+
193+ ** Step 2: Invoke **
193194```
194195AndroidRouter
195196 .open("android://main/activity/localActivity")
@@ -249,12 +250,14 @@ AndroidRouter.open("android://main/reactive")
249250 }
250251 });
251252```
252- ###Proguard
253+
254+ ** Proguard**
253255```
254256//Add proguard-rules
255257-keep class * implements com.tangxiaolv.router.interfaces.IMirror{*;}
256258-keep class * implements com.tangxiaolv.router.interfaces.IRouter{*;}
257259```
260+
258261License
259262---
260263 Copyright 2017 TangXiaoLv
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ dependencies {
8181
8282* scheme[ 1] host[ 1] path[ 2] params[ 2] 1:必须 2:可选*
8383
84- ### 第一步:给自定义Module配置注解协议
84+ ** 第一步:给自定义Module配置注解协议**
8585``` java
8686/**
8787 * 支持的参数类型
@@ -188,7 +188,8 @@ public class RemoteModule implements IRouter {
188188 }
189189}
190190```
191- ###第二步:调用协议
191+
192+ ** 第二步:调用协议**
192193```
193194//任意地方调用
194195//方式一
@@ -248,7 +249,8 @@ AndroidRouter.open("android://main/reactive")
248249 }
249250 });
250251```
251- ###混淆
252+
253+ ** 混淆**
252254```
253255//配置混淆
254256-keep class * implements com.tangxiaolv.router.interfaces.IMirror{*;}
Original file line number Diff line number Diff line change @@ -7,8 +7,6 @@ public class RouterRemoteException extends Exception {
77
88 private int code ;
99
10- private String message ;
11-
1210 public RouterRemoteException () {
1311 super ();
1412 }
@@ -47,13 +45,4 @@ public int getCode() {
4745 public void setCode (int code ) {
4846 this .code = code ;
4947 }
50-
51- @ Override
52- public String getMessage () {
53- return message ;
54- }
55-
56- public void setMessage (String message ) {
57- this .message = message ;
58- }
5948}
You can’t perform that action at this time.
0 commit comments