UASModulePattern

guiying712 c290b7d7ab 1:使用注解代替之前的静态常量。 8 лет назад
app 81dbbe5af2 1:修改组件化架构,将APP组件改成一个没有界面的壳工程,提取了一个新组件main,负责启动APP和主界面管理。 8 лет назад
common c928d5f486 1:使用注解代替之前的静态常量。 8 лет назад
girls c290b7d7ab 1:使用注解代替之前的静态常量。 8 лет назад
main 81dbbe5af2 1:修改组件化架构,将APP组件改成一个没有界面的壳工程,提取了一个新组件main,负责启动APP和主界面管理。 8 лет назад
news c290b7d7ab 1:使用注解代替之前的静态常量。 8 лет назад
screenshots b2b28d81be 1:给Gradle加了点注释。 8 лет назад
.gitignore 062f9571fa 创建组件的Application 9 лет назад
LICENSE 577f3d7756 Initial commit 9 лет назад
README.md 39cb3ea723 1:完善ReadME文档说明。 8 лет назад
build.gradle b2b28d81be 1:给Gradle加了点注释。 8 лет назад
gradle.properties b2b28d81be 1:给Gradle加了点注释。 8 лет назад
settings.gradle 81dbbe5af2 1:修改组件化架构,将APP组件改成一个没有界面的壳工程,提取了一个新组件main,负责启动APP和主界面管理。 8 лет назад

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.