Giter VIP home page Giter VIP logo

todayinformation's Introduction

今日快讯

分包规范

规划分包方案

1、业务代码按照功能分包,尽量做到模块化。 2、基础架构代码按照功能分包,尽量以组件的形式接入。

文件命名规范(讨论补充及添加)

这里指说明文件命名规范,常量、变量等编码规范不做深入说明。

基础类的命名:activity、fragment、adapter、listener等在命名中放在后面、如MineFragment、MineActivity。

接口的命名:所有的接口在类名前加入大写的I,如 IMineActivity。

抽象类的命名:所有的类名前加入大写的Abs,如 AbsMineActivity。

布局文件的命名:item、activity、fragment等均加在命名的前面、如activity_mine.

控件的命名:如item下的textview,命名为item_tv_xxx_xxx,在item的后面加入控件类型的缩写。

string 文件的命名 str开头。

assets 包名下的文件命名,xxx.文件类型,如xxx.mp4等。

color 文件的命名,cl 开头。

dimens 文件的命名,dim 开头。

drawable ,shape selector等加在文件的开头,并用下划线隔开。

gradle app 及 gradle project 添加maven 及 gradle 地址引用第三方包需添加注释。

清单文件添加activity、service等需添加注释。

除非必须,一般情况下context都是用application context

##代码分支规范

开发者不可直接在 master 上 直接开发或者提交代码。

应在master上 拉出 develop开发分支,然后每个开发者在 develop 上拉出自己的 feature_xxx_xxx分支,开发完毕后merge到develop,develop分支稳定且可靠后,在合并到master,这样做的目的是尽量避免master分支的代码回滚操作。

##整体工具类说明(要及时更新)

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.