添加依赖
Haoge edited this page Mar 10, 2017
·
3 revisions
1.在根目录的build.gradle中添加jitpack仓库:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
2.在app的build.gradle中添加Router依赖:
// add it to your build.gradle on app project
compile "com.github.yjfnypeu.Router:router-api:$LatestVersion"
annotationProcessor "com.github.yjfnypeu.Router:router-compiler:$LatestVersion"
3.(可选)添加Parceler依赖。使Router更易用。Parceler用于自动解析转换路由传参。
annotationProcessor "org.lzh.compiler.parceler:parceler-compiler:$LastestVersion_parceler"
compile "org.lzh.compiler.parceler:parceler-api:$LastestVersion_parceler"
更多Parceler用法请参考*Parceler*