Skip to content

Commit

Permalink
Update version of arouter api.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhi1ong committed Dec 18, 2017
1 parent 10bed9d commit f7ec450
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 9 deletions.
25 changes: 22 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

#### 最新版本

模块|arouter-api|arouter-compiler|arouter-annotation
---|---|---|---
最新版本|[![Download](https://api.bintray.com/packages/zhi1ong/maven/arouter-api/images/download.svg)](https://bintray.com/zhi1ong/maven/arouter-api/_latestVersion)|[![Download](https://api.bintray.com/packages/zhi1ong/maven/arouter-compiler/images/download.svg)](https://bintray.com/zhi1ong/maven/arouter-compiler/_latestVersion)|[![Download](https://api.bintray.com/packages/zhi1ong/maven/arouter-annotation/images/download.svg)](https://bintray.com/zhi1ong/maven/arouter-annotation/_latestVersion)
模块|arouter-api|arouter-compiler|arouter-annotation|arouter-register
---|---|---|---|---
最新版本|[![Download](https://api.bintray.com/packages/zhi1ong/maven/arouter-api/images/download.svg)](https://bintray.com/zhi1ong/maven/arouter-api/_latestVersion)|[![Download](https://api.bintray.com/packages/zhi1ong/maven/arouter-compiler/images/download.svg)](https://bintray.com/zhi1ong/maven/arouter-compiler/_latestVersion)|[![Download](https://api.bintray.com/packages/zhi1ong/maven/arouter-annotation/images/download.svg)](https://bintray.com/zhi1ong/maven/arouter-annotation/_latestVersion)|[![Download](https://api.bintray.com/packages/zhi1ong/maven/arouter-register/images/download.svg)](https://bintray.com/zhi1ong/maven/arouter-register/_latestVersion)

#### Demo展示

Expand All @@ -31,6 +31,7 @@
10. 支持多种方式配置转场动画
11. 支持获取Fragment
12. 完全支持Kotlin以及混编(配置见文末 其他#5)
13. **支持第三方 App 加固**(使用 arouter-register 实现自动注册)

#### 二、典型应用
1. 从外部URL映射到内部页面,以及参数传递与解析
Expand Down Expand Up @@ -107,6 +108,24 @@ ARouter.getInstance().build("/test/1")
-keep class * implements com.alibaba.android.arouter.facade.template.IProvider
```

6. 使用 Gradle 插件实现路由表的自动加载
```gradle
apply plugin: 'com.alibaba.arouter'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.alibaba:arouter-register:1.0.0"
}
}
```
可选使用,通过 ARouter 提供的注册插件进行路由表的自动加载,默认通过扫描 dex 的方式
进行加载通过 gradle 插件进行自动注册可以缩短初始化时间解决应用加固导致无法直接访问
dex 文件,初始化失败的问题,需要注意的是,该插件必须搭配 api 1.3.0 使用!

#### 四、进阶用法
1. 通过URL跳转
``` java
Expand Down
25 changes: 22 additions & 3 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

#### 最新版本

模块|arouter-api|arouter-compiler|arouter-annotation
---|---|---|---
最新版本|[![Download](https://api.bintray.com/packages/zhi1ong/maven/arouter-api/images/download.svg)](https://bintray.com/zhi1ong/maven/arouter-api/_latestVersion)|[![Download](https://api.bintray.com/packages/zhi1ong/maven/arouter-compiler/images/download.svg)](https://bintray.com/zhi1ong/maven/arouter-compiler/_latestVersion)|[![Download](https://api.bintray.com/packages/zhi1ong/maven/arouter-annotation/images/download.svg)](https://bintray.com/zhi1ong/maven/arouter-annotation/_latestVersion)
模块|arouter-api|arouter-compiler|arouter-annotation|arouter-register
---|---|---|---|---
最新版本|[![Download](https://api.bintray.com/packages/zhi1ong/maven/arouter-api/images/download.svg)](https://bintray.com/zhi1ong/maven/arouter-api/_latestVersion)|[![Download](https://api.bintray.com/packages/zhi1ong/maven/arouter-compiler/images/download.svg)](https://bintray.com/zhi1ong/maven/arouter-compiler/_latestVersion)|[![Download](https://api.bintray.com/packages/zhi1ong/maven/arouter-annotation/images/download.svg)](https://bintray.com/zhi1ong/maven/arouter-annotation/_latestVersion)|[![Download](https://api.bintray.com/packages/zhi1ong/maven/arouter-register/images/download.svg)](https://bintray.com/zhi1ong/maven/arouter-register/_latestVersion)

#### Demo展示

Expand All @@ -31,6 +31,7 @@
10. 支持多种方式配置转场动画
11. 支持获取Fragment
12. 完全支持Kotlin以及混编(配置见文末 其他#5)
13. **支持第三方 App 加固**(使用 arouter-register 实现自动注册)

#### 二、典型应用
1. 从外部URL映射到内部页面,以及参数传递与解析
Expand Down Expand Up @@ -107,6 +108,24 @@ ARouter.getInstance().build("/test/1")
-keep class * implements com.alibaba.android.arouter.facade.template.IProvider
```

6. 使用 Gradle 插件实现路由表的自动加载
```gradle
apply plugin: 'com.alibaba.arouter'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.alibaba:arouter-register:1.0.0"
}
}
```
可选使用,通过 ARouter 提供的注册插件进行路由表的自动加载,默认通过扫描 dex 的方式
进行加载通过 gradle 插件进行自动注册可以缩短初始化时间解决应用加固导致无法直接访问
dex 文件,初始化失败的问题,需要注意的是,该插件必须搭配 api 1.3.0 使用!

#### 四、进阶用法
1. 通过URL跳转
``` java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class PluginLaunch implements Plugin<Project> {
if (isApp) {
Logger.make(project)

Logger.i('project(' + project.name + ') apply arouter-register plugin')
Logger.i('Project enable arouter-register plugin')

def android = project.extensions.getByType(AppExtension)
def transformImpl = new RegisterTransform(project)
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ buildscript {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.alibaba:arouter-register:1.0.0"
classpath 'com.alibaba:arouter-register:1.0.0'
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ MIN_SDK_VERSION=12
TARGET_SDK_VERSION=25

arouter_compiler_version=1.1.4
arouter_api_version=1.2.4
arouter_api_version=1.3.0
arouter_annotation_version=1.0.4
arouter_register_version=1.0.0

Expand Down

0 comments on commit f7ec450

Please sign in to comment.