Giter VIP home page Giter VIP logo

comprehensive's Introduction

搭建项目

说明

项目主基调是模块化开发,分离出business,common和function,基本上将app架空,模块之间通过ARoute进行通信,整个项目分为app层,业务层,控件层,功能层
1. app层不处理核心业务,只负责打包时的配置功能
2. 业务层处理项目的核心业务,比如 launch,login,home,news,mine等核心业务,每个业务完全解耦,通过ARoute进行通信
3. 控件层处理一些主要的公共控件,比如 refreshview,webview,network,mvp等,每个控件相对独立,引用功能层资源
4. 功能层处理一些基本的功能,比如 baseactivity,baseapplication,dp,color等
5. 模块化开启在gradle.properties进行配置

模块结构

avatar

部分mode使用说明

1. 在根目录下的build.gradle文件中添加

allprojects {
    repositories {
       
        maven { url 'https://www.jitpack.io' }
    }
}

2. 在app目录下的build.gradle文件中添加

dependencies {
    implementation 'com.github.tgcityPlum:Comprehensive:1.2.1'
}

3. 当前项目中 minSdkVersion = 16 targetSdkVersion = 28 如果出现不兼容问题可以 new issues;成功引入后,可以直接使用functionLibrary和commonLibrary两个mode里面的资源,业务模块需要根据自身的业务自主处理

遗留问题

1. 在library中,butterKnife在MVP模式中无法兼容,找不到R2文件

2. MVPPlugin插件重构代码,因为自动生成后无法关联自定义文件

3. 关于Application的继承,app直接继承与BaseApplication,但是NetApplication没有封装进去,暂未想到合适的解决方案 初步想法是在mode的index类中进行初始化 XXXRetrofitUtils

4. 设置错误异常的埋点功能

comprehensive's People

Contributors

tgcityplum avatar

Stargazers

李瑾 avatar dbaspider avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.