# Component **Repository Path**: wenyuling24/Component ## Basic Information - **Project Name**: Component - **Description**: 一个使用最简单、功能最强大完善的Android组件化方案.更新和修复issue及时,欢迎到 github 上 fork 和 star - **Primary Language**: Android - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://github.com/xiaojinzi123/Component - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 15 - **Created**: 2019-12-17 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [English Doc](https://github.com/xiaojinzi123/Component/blob/develop/README_en.md) | [中文文档](https://github.com/xiaojinzi123/Component) [Component VS ARouter](https://github.com/xiaojinzi123/Component/wiki/Component-VS-ARouter) # Component ![](./imgs/logo1.png) A powerful componentized framework. `Component` focuses on improving the user experience. If you have any confusion while using Component, issues are welcomed any time. You can also join our community by scanning the QRCode below to discuss more about the `Component` [![](https://img.shields.io/github/release/xiaojinzi123/Component.svg?label=JitPack&color=%233fcd12)](https://jitpack.io/#xiaojinzi123/Component) [![](https://img.shields.io/github/release/xiaojinzi123/Component.svg?label=JitPack-AndroidX&color=%233fcd12)](https://jitpack.io/#xiaojinzi123/Component) [![](https://img.shields.io/github/release/xiaojinzi123/Component.svg?label=Release)](https://github.com/xiaojinzi123/Component/releases) [![](https://img.shields.io/github/tag/xiaojinzi123/Component.svg?label=Tag)](https://github.com/xiaojinzi123/Component/releases) ![](https://img.shields.io/github/last-commit/xiaojinzi123/Component/develop.svg?label=Last%20Commit) ![](https://img.shields.io/github/repo-size/xiaojinzi123/Component.svg) ![](https://img.shields.io/github/languages/code-size/xiaojinzi123/Component.svg) ![](https://img.shields.io/github/license/xiaojinzi123/Component.svg) ## Demo Apk(scan qrcode or click the image to download) ## The advantage of Component There are many componentized framework for ` Android`, and what are advantages of `Component`? - [x] Support standard `URI`. - [x] Support `androidx`, there is almost no componentized framework can support it. - [x] Support lifecycle of `Module` - [x] The design of `Component` is close to native, less invasive for native code, minimizing the possibility of retaining native code - [x] Support autowire of `Parameter` and `Service` - [x] The `Interceptor` of `Router` is running on `MainThread` - The design of `Interceptor`, we think 90% code is running on `MainThread`,so the `Interceptor` of `Router` is running on `MainThread` .Then you can operate the `UI` or `Dialog` and so on. - We provoder the `Callback` mechanism,then you can do any thing in `Interceptor` - This advantage is very useful - [x] An `idea plugin` can navigate to target `Activity` and find all the use of target `Activity`, [here is the Plugin](https://github.com/xiaojinzi123/RouterGoPlugin) - [x] Cancel routering, this advantage is very useful - [x] You can cancel routering - [x] The routering will auto canceled when `Activity` or `Fragment` destoried - [x] `Interceptor` of router, more detail see [Interceptor Wiki](https://github.com/xiaojinzi123/Component/wiki/Interceptor) - [x] Global Interceptor - [x] Local Interceptor - [x] page Interceptor - [x] The alias name of Interceptor, you can use Interceptor by name anywhere - [x] Routering - [x] Support standard `URI` - [x] Support custom `Intent` - [x] Support routering api like [Retrofit - [x] `Idea Plugin` can navigate to target `Activity` and find all the use of target `Activity`` - [x] Perfect support `H5` - [x] `H5` can use `URL` jump to any `Activity` - [x] Because of [page Interceptor](https://github.com/xiaojinzi123/Component/wiki/%E5%90%8D%E8%AF%8D%E8%A7%A3%E9%87%8A#%E9%A1%B5%E9%9D%A2%E6%8B%A6%E6%88%AA%E5%99%A8), when you routering from `H5`,you don't need to care whether the target `Activity` is need login or other or not - [x] Not Support get target `Activity` result from `H5`, this situation you have to design `Type` to do as before. - [x] You can get `ActivityResult` with no change of code, also don't need to change any code of `BaseActivity` - [x] As the behavior of system, when `Context` is `Application` or `Service Context` or `ContentProvider Context`, will not support. - [x] In addition to the above points, other situations are all sopport, include `Dialog` and so on. - [x] The `Routering` and `Service` is divided - [x] Perfect support `RxJava2` when you use `rx` version. - [x] [Module run alone](https://github.com/xiaojinzi123/Component/wiki/%E4%B8%9A%E5%8A%A1%E7%BB%84%E4%BB%B6%E5%8D%95%E7%8B%AC%E8%BF%90%E8%A1%8C) ## hello world [hello world](https://github.com/xiaojinzi123/Component/wiki) ## More usage detail - dependence and config - [dependence and config](https://github.com/xiaojinzi123/Component/wiki/Dependence-and-Config) - [dependence and config For AndroidX](https://github.com/xiaojinzi123/Component/wiki/Dependence-and-Config-AndroidX) - The usage of [RouterAnno](https://github.com/xiaojinzi123/Component/wiki/RouterAnno-Anntation) - Routering - [Routering Api](https://github.com/xiaojinzi123/Component/wiki/routering-api) - [Routering with code](https://github.com/xiaojinzi123/Component/wiki/routering-with-code) - [Interceptor](https://github.com/xiaojinzi123/Component/wiki/Interceptor) - [SPI and use](https://github.com/xiaojinzi123/Component/wiki/cross-module-call-service) - [Module run alone](https://github.com/xiaojinzi123/Component/wiki/%E4%B8%9A%E5%8A%A1%E7%BB%84%E4%BB%B6%E5%8D%95%E7%8B%AC%E8%BF%90%E8%A1%8C) - [Noun explanation](https://github.com/xiaojinzi123/Component/wiki/%E5%90%8D%E8%AF%8D%E8%A7%A3%E9%87%8A) - [Basic introduction](https://github.com/xiaojinzi123/Component/wiki/%E5%9F%BA%E6%9C%AC%E4%BB%8B%E7%BB%8D%E5%92%8C%E6%9E%B6%E6%9E%84%E4%BB%8B%E7%BB%8D) if you want leran more you can see [wiki](https://github.com/xiaojinzi123/Component/wiki/) ## Some articles - Waht is componentized `Idea Plugin` [RouterGo can navigate to target `Activity` and find all the use of target `Activity`, you're worth it!](https://github.com/xiaojinzi123/RouterGoPlugin) ## Scan qrcode to join `QQ` group
## ## License ``` 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. ```