Multi-channel and module integration on Android

Multi-channel and module combination on Android

  • 1. The structure of the project is as follows:
    Insert picture description here

  • 2. Multi-channel profile

Multi-channel configuration files are divided into those that need to be imported in the app module and those that need to be imported in other modules. The difference between the two is that the files that need to be imported in other modules cannot have applicationId, otherwise the compilation will fail.
Screenshot below:
Insert picture description here

  • 3. Introduce in the module
    Insert picture description here

Multi-channel and module combination instructions on Android

  • 1. The demo project structure model is as follows:
    Insert picture description here

  • Configure the resources used by each channel in the base layer, such as pictures, colors, etc., so that the resources used by all business layers can be replaced with resource files under the corresponding channel when switching channels.

Guess you like

Origin blog.csdn.net/genmenu/article/details/89704039