UASModulePattern

guiying712 f9b0e3188b 1:增加崩溃日志捕获及发送功能。 8 years ago
lib_common 7284292d30 1:修复新闻页面点击回退键无效的bug。 8 years ago
module_app f9b0e3188b 1:增加崩溃日志捕获及发送功能。 8 years ago
module_girls e1dc64d45c 1:修改混淆配置文件。 8 years ago
module_main e1dc64d45c 1:修改混淆配置文件。 8 years ago
module_news 7284292d30 1:修复新闻页面点击回退键无效的bug。 8 years ago
screenshots b2b28d81be 1:给Gradle加了点注释。 8 years ago
.gitignore 062f9571fa 创建组件的Application 8 years ago
LICENSE 577f3d7756 Initial commit 9 years ago
README.md 39cb3ea723 1:完善ReadME文档说明。 8 years ago
build.gradle f63eb682e9 1:更改Router的集成方式。 8 years ago
gradle.properties aa1fbf9acd 1:重构组件化项目的目录结构及从新配置了Gradle,稍后会更新组件化博客。 8 years ago
settings.gradle aa1fbf9acd 1:重构组件化项目的目录结构及从新配置了Gradle,稍后会更新组件化博客。 8 years ago

README.md

你知道吗?Github的 “star” 功能就像微信朋友圈中的 “点赞” 功能,如果你觉得我的代码对你有帮助,你可以帮我点个赞,随手 “star” 一下。

AndroidModulePattern

Android项目组件化示例代码

博客:http://blog.csdn.net/guiying712/article/details/55213884

app组件功能:

  1. app组件主要用于管理其他组件;
  2. app组件中可以初始化全局的库,例如Lib.init(this);
  3. 添加 multiDex 功能

main组件功能:

  1. 声明应用的launcherActivity----->android.intent.category.LAUNCHER;
  2. 添加SplashActivity;
  3. 添加LoginActivity;
  4. 添加MainActivity;

girls/news组件功能:

  1. 这两个组件都是业务组件,根据产品的业务逻辑独立成一个组件;

common组件功能:

  1. common组件是基础库,添加一些公用的类;
  2. 例如:网络请求、图片加载、工具类、base类等等;
  3. 声明APP需要的uses-permission;
  4. 定义全局通用的主题(Theme);

License

Copyright 2017 guiying712, AndroidModulePattern Open Source Project

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.