AndroidComponent

For the principle explanation, refer to the Android Thorough Componentization Solution Practice

For details about demo, see Article Android Fully componentized Demo Release

Use guide

2. Split components into Module projects

Create a new file gradle.properties under each component’s project directory and add the following configuration:

isRunAlone=true
debugComponent=sharecomponent
compileComponent=com.mrzhang.share:sharecomponentCopy the code

The above three attributes correspond to independent debugging, dependent components in Debug mode, and dependent components in Release mode respectively. Please refer to the second article above for specific explanation of usage

License

  Copyright 2017  luoJiSiWei

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
Copy the code

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.