Skip to content

Commit

Permalink
增加网络,键盘,图片,缓存工具类
Browse files Browse the repository at this point in the history
  • Loading branch information
catchpig committed Jan 17, 2018
1 parent 71b20fc commit 31f2b31
Show file tree
Hide file tree
Showing 12 changed files with 3,747 additions and 105 deletions.
3 changes: 3 additions & 0 deletions common/jitpack.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.sourceFiles
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
classpath += configurations.compile
options.encoding "UTF-8"
options.charSet 'UTF-8'

}

// 制作文档(Javadoc)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
package conm.zhuazhu.common.constant;

import android.support.annotation.IntDef;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
* 创建时间:2018/1/17 11:43<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2018/1/17 11:43<br/>
* 描述:
*/

public interface MemoryConstants {
/**
* Byte 与 Byte 的倍数
*/
int BYTE = 1;
/**
* KB 与 Byte 的倍数
*/
int KB = 1024;
/**
* MB 与 Byte 的倍数
*/
int MB = 1048576;
/**
* GB 与 Byte 的倍数
*/
int GB = 1073741824;

@IntDef({BYTE, KB, MB, GB})
@Retention(RetentionPolicy.SOURCE)
public @interface Unit {
}
}
6 changes: 5 additions & 1 deletion common/src/main/java/conm/zhuazhu/common/utils/AppUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
import java.util.List;

/**
* Created by apple on 2018/1/16.
* 创建时间:2018/1/17 11:17<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2018/1/17 11:17<br/>
* 描述:App相关工具类
*/

public class AppUtils {
Expand Down
Loading

0 comments on commit 31f2b31

Please sign in to comment.