The difference between Android modularization, componentization and plug-in

It is better to divide Android packages according to business logic, that is, decoupling (business module)

1. Applicable project size

(1) Small projects: modularization

Modularization is to split functions into independent modules so that each module only contains content related to its own function.
Divide from the perspective of code logic to facilitate hierarchical code development and ensure that each functional module has a single function.
The module corresponds to the business logic module, which encapsulates the functional logic in the same type of project on demand.

(2) Medium project: componentization

For example, putting all personal content in the Person package
is equivalent to a library, and it is a tool that encapsulates some code that can be reused in a project or in different types of projects.

(3) Large projects: plug-in

Strictly speaking, plug-inization is actually a modular concept. Dividing a complete project into different plug-ins based on business is a manifestation of the divide-and-conquer method.

2. The difference between componentization and plug-in:

(1) Componentization means unified packaging during compilation, and all components are packaged into apps

(2) With so many controls on an Alipay page, it is impossible to package them all into one apk, so plug-ins will be used.
Plug-in: The real project is to download the plug-in project through the network server

3. Continuously updating...

If there are mistakes, please correct me! ! !

Guess you like

Origin blog.csdn.net/qq_46269365/article/details/121041820