Skip to content

Commit

Permalink
1.更新 README、API 文档信息、版本信息
Browse files Browse the repository at this point in the history
Former-commit-id: 8b4586d
Former-commit-id: f1aeac6
  • Loading branch information
Ttt committed May 18, 2020
1 parent e959d51 commit aff4058
Show file tree
Hide file tree
Showing 7 changed files with 110 additions and 22 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

[![GitHub](https://img.shields.io/badge/GitHub-afkT-blue.svg)](https://github.com/afkT)
[![GitHub license](https://img.shields.io/github/license/afkT/DevUtils.svg)](https://github.com/afkT/DevUtils/blob/master/LICENSE)
[![Bintray](https://img.shields.io/badge/DevUtils-1.9.3-brightgreen.svg)](https://bintray.com/afkt/maven/DevApp)
[![Bintray](https://img.shields.io/badge/DevUtils-1.9.4-brightgreen.svg)](https://bintray.com/afkt/maven/DevApp)
[![API](https://img.shields.io/badge/API-14%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=14)
[![Utils](https://img.shields.io/badge/utils-160+-ff69b4.svg)](https://github.com/afkT/DevUtils/blob/master/lib/DevApp/README.md)

Expand Down Expand Up @@ -59,11 +59,11 @@
```java

// DevApp Android 工具类库 https://github.com/afkT/DevUtils/blob/master/lib/DevApp/README.md
implementation 'com.afkt:DevApp:1.9.3'
//implementation 'com.afkt:DevAppX:1.9.3' // AndroidX
implementation 'com.afkt:DevApp:1.9.4'
//implementation 'com.afkt:DevAppX:1.9.4' // AndroidX

// DevJava Java 工具类库 ( 不依赖 android api ) https://github.com/afkT/DevUtils/blob/master/lib/DevJava/README.md
implementation 'com.afkt:DevJava:1.1.1' // 用于纯 Java 开发,如果依赖了 DevApp 则不需要依赖 DevJava
implementation 'com.afkt:DevJava:1.1.2' // 用于纯 Java 开发,如果依赖了 DevApp 则不需要依赖 DevJava

// DevAssist 快捷功能辅助类库 https://github.com/afkT/DevUtils/blob/master/lib/DevAssist/README.md
implementation 'com.afkt:DevAssist:1.0.3'
Expand All @@ -75,8 +75,8 @@ releaseAnnotationProcessor 'com.afkt:DevEnvironmentCompilerRelease:1.0.0'
//annotationProcessor 'com.afkt:DevEnvironmentCompiler:1.0.0'

// DevWidget 自定义 View UI 库 https://github.com/afkT/DevUtils/blob/master/lib/Widget/DevWidget
implementation 'com.afkt:DevWidget:1.0.0'
//implementation 'com.afkt:DevWidgetX:1.0.0' // AndroidX
implementation 'com.afkt:DevWidget:1.0.1'
//implementation 'com.afkt:DevWidgetX:1.0.1' // AndroidX
```

## License
Expand Down
12 changes: 6 additions & 6 deletions file/gradle/config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,24 @@ ext {
// ===========

// 版本号
dev_app_versionCode : 193,
dev_app_versionCode : 194,
// 版本名
dev_app_versionName : '1.9.3',
dev_app_versionName : '1.9.4',

// 版本号
dev_assist_versionCode : 103,
// 版本名
dev_assist_versionName : '1.0.3',

// 版本号
dev_java_versionCode : 111,
dev_java_versionCode : 112,
// 版本名
dev_java_version : '1.1.1',
dev_java_version : '1.1.2',

// 版本号
dev_widget_versionCode : 100,
dev_widget_versionCode : 101,
// 版本名
dev_widget_versionName : '1.0.0',
dev_widget_versionName : '1.0.1',

// 版本号
dev_environment_versionCode : 100,
Expand Down
2 changes: 1 addition & 1 deletion lib/DevApp/README.md.REMOVED.git-id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
42836249952c6fd1414f187ddfc411dfd817dd6c
c4549aac77c4c5ac163c75676603702a068b1674
2 changes: 1 addition & 1 deletion lib/DevJava/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Gradle

```java
implementation 'com.afkt:DevJava:1.1.1'
implementation 'com.afkt:DevJava:1.1.2'
```

## 目录结构
Expand Down
54 changes: 54 additions & 0 deletions lib/DevOther/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- dev | 根目录
- assist | 常用辅助类封装
- other | 第三方库封装工具类
- okgo | OkGo 网络请求
- receiver | BroadcastReceiver 监听相关
- service | Service 相关
- temp | 临时快捷调用工具类
Expand All @@ -23,6 +24,7 @@
- dev | 根目录
- [assist](#devassist) | 常用辅助类封装
- [other](#devother) | 第三方库封装工具类
- [okgo](#devotherokgo) | OkGo 网络请求
- [receiver](#devreceiver) | BroadcastReceiver 监听相关
- [service](#devservice) | Service 相关
- [temp](#devtemp) | 临时快捷调用工具类
Expand Down Expand Up @@ -338,6 +340,58 @@
| onResult | 生成二维码结果回调 |


## <span id="devotherokgo">**`dev.other.okgo`**</span>


* **OkGo 请求统一回调处理类 ->** [OkGoCallback.java](https://github.com/afkT/DevUtils/blob/master/lib/DevOther/src/main/java/dev/other/okgo/OkGoCallback.java)

| 方法 | 注释 |
| :- | :- |
| onStart | 请求网络开始前, UI 线程 |
| onFinish | 请求网络结束后, UI 线程 |
| uploadProgress | 上传过程中的进度回调, get请求不回调, UI 线程 |
| downloadProgress | 下载过程中的进度回调, UI 线程 |
| onCacheSuccess | 缓存成功的回调,UI 线程 |
| onError | 请求失败, 响应错误, 数据解析错误等, 都会回调该方法, UI 线程 |
| onSuccess | 对返回数据进行操作的回调, UI 线程 |
| convertResponse | 拿到响应后, 将数据转换成需要的格式, 子线程中执行, 可以是耗时操作 |
| onSuccessResponse | 请求响应并处理数据无误 |
| onErrorResponse | 请求失败, 响应错误, 数据解析错误等, 都会回调该方法, UI 线程 |


* **OkGo 使用 Demo ->** [OkGoDemo.java](https://github.com/afkT/DevUtils/blob/master/lib/DevOther/src/main/java/dev/other/okgo/OkGoDemo.java)

| 方法 | 注释 |
| :- | :- |
| getUserInfo | 获取用户信息 |
| getUserList | 获取用户列表 |
| uploadImage | 上传文件 |
| uploadImages | 上传多个文件 |


* **请求响应解析基类 ->** [OkGoResponse.java](https://github.com/afkT/DevUtils/blob/master/lib/DevOther/src/main/java/dev/other/okgo/OkGoResponse.java)

| 方法 | 注释 |
| :- | :- |
| getDataString | 获取 Data 字符串 |
| build | build BaseResponse 对象 |
| setData | setData |
| setMessage | setMessage |
| setCode | setCode |
| setToast | setToast |
| setResult | setResult |
| setOriginal | setOriginal |
| setException | setException |


* **OkGo 配置相关工具类 ->** [OkGoUtils.java](https://github.com/afkT/DevUtils/blob/master/lib/DevOther/src/main/java/dev/other/okgo/OkGoUtils.java)

| 方法 | 注释 |
| :- | :- |
| initOkGo | 初始化 OkGo 配置 |
| execute | 执行请求处理 |


## <span id="devreceiver">**`dev.receiver`**</span>


Expand Down
8 changes: 4 additions & 4 deletions lib/Widget/DevWidget/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
## Gradle

```java
implementation 'com.afkt:DevApp:1.9.3'
implementation 'com.afkt:DevWidget:1.0.0'
implementation 'com.afkt:DevApp:1.9.4'
implementation 'com.afkt:DevWidget:1.0.1'

// AndroidX
implementation 'com.afkt:DevAppX:1.9.3'
implementation 'com.afkt:DevWidgetX:1.0.0'
implementation 'com.afkt:DevAppX:1.9.4'
implementation 'com.afkt:DevWidgetX:1.0.1'
```

## README
Expand Down
42 changes: 38 additions & 4 deletions lib/Widget/DevWidget/README_API.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
## Gradle

```java
implementation 'com.afkt:DevApp:1.9.3'
implementation 'com.afkt:DevWidget:1.0.0'
implementation 'com.afkt:DevApp:1.9.4'
implementation 'com.afkt:DevWidget:1.0.1'

// AndroidX
implementation 'com.afkt:DevAppX:1.9.3'
implementation 'com.afkt:DevWidgetX:1.0.0'
implementation 'com.afkt:DevAppX:1.9.4'
implementation 'com.afkt:DevWidgetX:1.0.1'
```

## 目录结构
Expand Down Expand Up @@ -275,6 +275,40 @@ implementation 'com.afkt:DevWidgetX:1.0.0'
## <span id="devwidgetui">**`dev.widget.ui`**</span>


* **自定义角标 View ->** [CornerLabelView.java](https://github.com/afkT/DevUtils/blob/master/lib/Widget/DevWidget/src/main/java/dev/widget/ui/CornerLabelView.java)

| 方法 | 注释 |
| :- | :- |
| onMeasure | onMeasure |
| onDraw | onDraw |
| getPainter1 | 获取 Text1 Painter |
| getPainter2 | 获取 Text2 Painter |
| setPaddingTop | 设置顶部边距 |
| setPaddingCenter | 设置 Text1、Text2 边距 |
| setPaddingBottom | 设置底部边距 |
| setFillColor | 设置背景填充颜色 |
| setFillShader | 设置背景填充渐变色 |
| left | 设置左边显示角标 |
| right | 设置右边显示角标 |
| top | 设置顶部显示角标 |
| bottom | 设置底部显示角标 |
| triangle | 设置角标三角形铺满样式 |
| setText1 | 设置文本 |
| setTextColor1 | 设置字体颜色 |
| setTextHeight1 | 设置字体高度 |
| setTextBold1 | 设置字体是否加粗 |
| setText2 | 设置文本 |
| setTextColor2 | 设置字体颜色 |
| setTextHeight2 | 设置字体高度 |
| setTextBold2 | 设置字体是否加粗 |
| refresh | 刷新重绘处理 |
| getPaint | 获取画笔 |
| getText | 获取文本 |
| getTextColor | 获取字体颜色 |
| getTextHeight | 获取字体高度 |
| isTextBold | 获取字体是否加粗 |


* **自定义点赞效果 View ->** [FlowLikeView.java](https://github.com/afkT/DevUtils/blob/master/lib/Widget/DevWidget/src/main/java/dev/widget/ui/FlowLikeView.java)

| 方法 | 注释 |
Expand Down

0 comments on commit aff4058

Please sign in to comment.