@@ -3,48 +3,46 @@ Android 动态路由框架:TheRouter
3
3
4
4
[ ![ Hex.pm] ( https://img.shields.io/hexpm/l/plug.svg )] ( https://www.apache.org/licenses/LICENSE-2.0 )
5
5
[ ![ Language] ( https://img.shields.io/badge/Language-Kotlin-green )] ( https://kotlinlang.org/ )
6
- [ ![ Wiki] ( https://img.shields.io/badge/Wiki-open-green )] ( https://github.com/HuolalaTech/hll-wp-therouter-android/wiki )
6
+ [ ![ Wiki] ( https://img.shields.io/badge/Wiki-open-green )] ( https://therouter.cn/doc )
7
7
8
8
### 一、功能介绍
9
9
10
10
TheRouter 核心功能具备四大能力:
11
11
12
- * 页面导航跳转能力([ Navigator] ( https://github.com/HuolalaTech/hll-wp-therouter-android/wiki/Navigator ) ) 页面跳转能力介绍
13
- * 跨模块依赖注入能力([ ServiceProvider] ( https://github.com/HuolalaTech/hll-wp-therouter-android/wiki/ServiceProvider ) )跨模块依赖注入
14
- * 单模块自动初始化能力 ([ FlowTaskExecutor] ( https://github.com/HuolalaTech/hll-wp-therouter-android/wiki/FlowTaskExecutor ) )单模块自动初始化能力介绍
15
- * 动态化能力 ([ ActionManager] ( https://github.com/HuolalaTech/hll-wp-therouter-android/wiki/ActionManager ) ) 动态化能力支持
12
+ * 页面导航跳转能力([ Navigator] ( https://therouter.cn/docs/2022/08/28/01 ) ) 页面跳转能力介绍
13
+ * 跨模块依赖注入能力([ ServiceProvider] ( https://therouter.cn/docs/2022/08/27/01 ) )跨模块依赖注入
14
+ * 单模块自动初始化能力 ([ FlowTaskExecutor] ( https://therouter.cn/docs/2022/08/26/01 ) )单模块自动初始化能力介绍
15
+ * 动态化能力 ([ ActionManager] ( https://therouter.cn/docs/2022/08/25/01 ) ) 动态化能力支持
16
16
17
17
* Demo:
18
18
19
19
<img src =" https://github.com/HuolalaTech/hll-wp-therouter-android/wiki/uploads/image/demo.gif " width =" 50% " alt =" demo gif " />
20
20
21
21
### 二、使用介绍
22
22
23
- ** 更多详细使用文档请查看项目 wiki** :[ Wiki] ( https://github.com/HuolalaTech/hll-wp-therouter-android/wiki )
24
-
25
- ** 框架介绍,可查看货拉拉移动技术分享的博客文章** :[ https://juejin.cn/post/7139718803637665822 ] ( https://juejin.cn/post/7139718803637665822 )
23
+ ** 更多详细使用文档请查看项目 [ Wiki] ( https://therouter.cn/doc ) **
26
24
27
25
#### 2.1 Gradle 引入
28
26
29
27
| module| apt| router| plugin|
30
28
| ---| ---| ---| ---|
31
- | version| [ ![ apt] ( https://img.shields.io/badge/apt-1.1.0 -green )] ( https://repo1.maven.org/maven2/cn/therouter/apt ) | [ ![ router] ( https://img.shields.io/badge/router-1.1.0 -green )] ( https://repo1.maven.org/maven2/cn/therouter/router ) | [ ![ plugin] ( https://img.shields.io/badge/plugin-1.1.0 -green )] ( https://repo1.maven.org/maven2/cn/therouter/plugin ) |
29
+ | version| [ ![ apt] ( https://img.shields.io/badge/apt-1.1.1 -green )] ( https://repo1.maven.org/maven2/cn/therouter/apt ) | [ ![ router] ( https://img.shields.io/badge/router-1.1.1 -green )] ( https://repo1.maven.org/maven2/cn/therouter/router ) | [ ![ plugin] ( https://img.shields.io/badge/plugin-1.1.1 -green )] ( https://repo1.maven.org/maven2/cn/therouter/plugin ) |
32
30
33
31
```
34
32
// 项目根目录 build.gradle 引入
35
- classpath 'cn.therouter:plugin:1.1.0 '
33
+ classpath 'cn.therouter:plugin:1.1.1 '
36
34
37
35
// app module 中引入
38
36
apply plugin: 'therouter'
39
37
40
- // 依赖
41
- kapt "cn.therouter:apt:1.1.0 "
42
- implementation "cn.therouter:router:1.1.0 "
38
+ // 依赖,所有使用了注解的模块都要添加
39
+ kapt "cn.therouter:apt:1.1.1 "
40
+ implementation "cn.therouter:router:1.1.1 "
43
41
```
44
42
45
43
#### 2.2 初始化
46
44
47
- 框架内部包含自动初始化功能,详见[ 单模块自动初始化能力] ( https://github.com/HuolalaTech/hll-wp-therouter-android/wiki/FlowTaskExecutor )
45
+ 框架内部包含自动初始化功能,详见[ 单模块自动初始化能力] ( https://therouter.cn/docs/2022/08/26/01 )
48
46
无需任何初始化代码。但推荐你根据业务设置否为` Debug ` 环境,用以查看日志信息。
49
47
` Application.attachBaseContext() ` 方法中尽可能早设置当前是否为` Debug ` 环境。
50
48
@@ -70,7 +68,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
70
68
71
69
#### 2.4 页面跳转
72
70
73
- 关于注解` @Route ` 的参数含义,请查看文档:[ 页面导航跳转能力] ( https://github.com/HuolalaTech/hll-wp-therouter-android/wiki/Navigator )
71
+ 关于注解` @Route ` 的参数含义,请查看文档:[ 页面导航跳转能力] ( https://therouter.cn/docs/2022/08/28/01 )
74
72
75
73
```
76
74
@Route(path = "http://therouter.com/home", action = "action://scheme.com",
@@ -119,7 +117,8 @@ public class HomeActivity extends BaseActivity {
119
117
120
118
#### 3.1 迁移工具一键迁移
121
119
122
- 可使用迁移工具一键迁移(GitHub下载比较慢):
120
+ 可使用迁移工具一键迁移(GitHub下载比较慢):
121
+ 迁移工具使用说明请见官网文档:[ https://therouter.cn/docs/2022/09/05/01 ] ( https://therouter.cn/docs/2022/09/05/01 )
123
122
124
123
* Mac OS 迁移工具:[ uploads/file/TheRouterTransfer-Mac.zip] ( https://github.com/HuolalaTech/hll-wp-therouter-android/wiki/uploads/file/TheRouterTransfer-Mac.zip )
125
124
* Windows 迁移工具:[ uploads/file/TheRouterTransfer-Windows.zip] ( https://github.com/HuolalaTech/hll-wp-therouter-android/wiki/uploads/file/TheRouterTransfer-Windows.zip )
@@ -201,6 +200,8 @@ TheRouter
201
200
<img src =" https://github.com/HuolalaTech/hll-wp-therouter-android/wiki/uploads/image/hll.png " width =" 40% " alt =" HUOLALA mobile technology team " />
202
201
203
202
加入 【TheRouter】 官方微信群:
203
+ * 如过期,请加微信:kymjs123,拉你进群*
204
+
204
205
<img src =" https://kymjs.com/therouter/wx/therouter_wx.jpg " width =" 40% " alt =" TheRouter官方微信群:https://kymjs.com/therouter/wx " />
205
206
206
207
### 七、开源协议
0 commit comments