Multi-channel and module combination on Android
-
1. The structure of the project is as follows:
-
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:
- 3. Introduce in the module
Multi-channel and module combination instructions on Android
-
1. The demo project structure model is as follows:
-
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.