Giter Site home page Giter Site logo

lwmukx1208 / router Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jumeirdgroup/router

0.0 2.0 0.0 10.54 MB

一款单品、组件化、插件化全支持的Andoid端路由框架。

Home Page: https://juejin.im/post/5a37771f6fb9a0450e7636e0

Java 100.00%

router's Introduction

Router

一款简单的,支持在单品、组件化、插件化等环境下使用的路由框架。

什么是router框架

简单来说.即通过一行url去指定打开指定页面Activity的框架.充分做到页面间解耦.

我希望的router框架所能支持的功能

- 可自动解析标准url参数。
- 可传递bundle所支持的所有数据类型,能与原生做到无缝对接。
- 支持拦截器.方便对于部分页面跳转时需要检查是否登录.并跳转登录界面做统一配置
- 支持当路由被拦截后。操作之后恢复路由事件。如拦截后进行登录。登录后自动恢复之前被拦截的路由。
- 如果使用http/https地址时.可以直接跳转至使用浏览器
- 能支持原生跳转的各种方式,如请求码.转场动画的设置.
- 能灵活配置route规则.方便对各种开发环境灵活做兼容适配.如插件化.组件化
- 启动动作路由时。支持切换运行线程。

效果图

route

版本依赖

  • 添加gradle依赖:

添加JitPack仓库到root project下的build.gradle中:

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}
  • 基本配置:

LatestVersion=

compile "com.github.yjfnypeu.Router:router-api:$LatestVersion"
annotationProcessor "com.github.yjfnypeu.Router:router-compiler:$LatestVersion"

针对插件化环境。需要有不同的配置方式。请参考:插件化配置说明

用法

基本使用方式说明,请参考Router:一款单品、组件化、插件化全支持的路由框架

插件化中的使用方式,请参考Router: 教你如何进行任意插件化环境下的路由适配

更新日志

查看 releases

联系作者

email: [email protected]

安卓交流会所

或者手动加入QQ群: 108895031

License

Copyright 2015 Haoge

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

router's People

Contributors

yjfnypeu avatar muyangmin avatar daimajia avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.