GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - WangcWj/WeRouter: 一款简洁实用的路由框架,非常适合学习注解,Gradle插件,字节码插桩~

BranchesTags
Open more actions menu

Latest commit

 

History

13 Commits
13 Commits

Folders and files

NameName
Last commit message
Last commit date
.idea
.idea
 
 
app
app
 
 
ceshimodule
ceshimodule
 
 
gradle/wrapper
gradle/wrapper
 
 
werouter-annotation
werouter-annotation
 
 
werouter-api
werouter-api
 
 
werouter-compiler
werouter-compiler
 
 
werouter_plugin
werouter_plugin
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

WeRouter

一款功能简介的路由框架,适用于组件化项目中各个独立Module之间的Activity Fragment的跳转,具体公功能如下:

  • 根据指定路径启动Activity,可携带参数以及返回值,可挎module。
  • 根据指定路径获取Fragment对象,可挎module。
  • 未完待续......

使用:

一 添加依赖:

二 初始化:

推荐再Application中初始化:

WeRouter.init(Application);

三 使用:

给Activity加注解@Router:

@Router(path = "native://SecondActivity")
public class SecondActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_second);
        String extra = getIntent().getStringExtra("w");
        Log.e("WANG","SecondActivity.onCreate."+extra );
    }
}

跳转:

 WeRouter.getInstance()
         .build("native://SecondActivity")
         .navigation(MainActivity.this);

About

一款简洁实用的路由框架,非常适合学习注解,Gradle插件,字节码插桩~

Resources

Readme
Apache-2.0 license
Activity

Stars

13 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.