Skip to content

Commit

Permalink
docs: 更新 API 文档
Browse files Browse the repository at this point in the history
Former-commit-id: 3eb5288
Former-commit-id: aecd3dd
  • Loading branch information
afkT committed Jun 25, 2022
1 parent 550830e commit 98be6d2
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 78 deletions.
6 changes: 3 additions & 3 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)
[![MavenCentral](https://img.shields.io/badge/DevUtils-2.3.8-brightgreen.svg)](https://search.maven.org/search?q=io.github.afkt)
[![MavenCentral](https://img.shields.io/badge/DevUtils-2.3.9-brightgreen.svg)](https://search.maven.org/search?q=io.github.afkt)
[![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-200+-ff69b4.svg)](https://github.com/afkT/DevUtils/blob/master/lib/DevApp/README.md)

Expand Down Expand Up @@ -113,7 +113,7 @@
```gradle
// DevApp - Android 工具类库
implementation 'io.github.afkt:DevAppX:2.3.8'
implementation 'io.github.afkt:DevAppX:2.3.9'
// DevAssist - 封装逻辑代码, 实现多个快捷功能辅助类、以及 Engine 兼容框架等
implementation 'io.github.afkt:DevAssist:1.3.5'
Expand Down Expand Up @@ -150,7 +150,7 @@ releaseAnnotationProcessor 'io.github.afkt:DevEnvironmentCompilerRelease:1.1.0'
//annotationProcessor 'io.github.afkt:DevEnvironmentCompiler:1.1.0' // kapt
// DevJava - Java 工具类库 ( 不依赖 android api )
implementation 'io.github.afkt:DevJava:1.4.4' // 用于纯 Java 开发,如果依赖了 DevApp 则不需要依赖 DevJava
implementation 'io.github.afkt:DevJava:1.4.5' // 用于纯 Java 开发,如果依赖了 DevApp 则不需要依赖 DevJava
```

## [APK Demo](https://github.com/afkT/Resources/blob/main/APK)
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 @@
4f9a176aa88cb66842c3d61df007b961c8437844
1abdec9369f50098c0dd6432d3a47c473bcf3a40
23 changes: 12 additions & 11 deletions lib/DevEngine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@ implementation 'io.github.afkt:DevEngine:1.0.7'
## 目录结构

```
- dev.engine | 根目录
- barcode | BarCode Engine 条形码、二维码处理
- cache | Cache Engine 有效期键值对缓存
- compress | Image Compress Engine 图片压缩
- image | Image Engine 图片加载、下载、转格式等
- json | JSON Engine 映射
- keyvalue | KeyValue Engine 键值对存储
- log | Log Engine 日志打印
- media | Media Selector Engine 多媒体资源选择
- permission | Permission Engine 权限申请
- storage | Storage Engine 外部、内部文件存储
- dev.engine | 根目录
- barcode | BarCode Engine 条形码、二维码处理
- cache | Cache Engine 有效期键值对缓存
- compress | Image Compress Engine 图片压缩
- image | Image Engine 图片加载、下载、转格式等
- json | JSON Engine 映射
- keyvalue | KeyValue Engine 键值对存储
- log | Log Engine 日志打印
- media | Media Selector Engine 多媒体资源选择
- luck_lib_engine | LuckSiege PictureSelector Engine 实现
- permission | Permission Engine 权限申请
- storage | Storage Engine 外部、内部文件存储
```


Expand Down
3 changes: 2 additions & 1 deletion lib/DevJava/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Gradle

```gradle
implementation 'io.github.afkt:DevJava:1.4.4'
implementation 'io.github.afkt:DevJava:1.4.5'
```

## 目录结构
Expand Down Expand Up @@ -923,6 +923,7 @@ JCLogUtils.setPrint(new JCLogUtils.Print() {});
| length | 获取字符串长度 |
| isLength | 获取字符串长度 是否等于期望长度 |
| equals | 判断两个值是否一样 |
| equalsNotNull | 判断两个值是否一样 ( 非 null 判断 ) |
| isEquals | 判断多个字符串是否相等, 只有全相等才返回 true ( 对比大小写 ) |
| isOrEquals | 判断多个字符串, 只要有一个符合条件则通过 |
| isContains | 判断一堆值中, 是否存在符合该条件的 ( 包含 ) |
Expand Down
87 changes: 25 additions & 62 deletions lib/LocalModules/DevOther/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- keyvalue | KeyValue Engine 键值对存储
- log | Log Engine 日志打印
- media | Media Selector Engine 多媒体资源选择
- luck_lib_engine| LuckSiege PictureSelector Engine 实现
- permission | Permission Engine 权限申请
- storage | Storage Engine 外部、内部文件存储
- other | 第三方库封装工具类
Expand Down Expand Up @@ -64,6 +65,7 @@
- [keyvalue](#javadevenginekeyvalue) | KeyValue Engine 键值对存储
- [log](#javadevenginelog) | Log Engine 日志打印
- [media](#javadevenginemedia) | Media Selector Engine 多媒体资源选择
- [luck_lib_engine](#javadevenginemedialuck_lib_engine)| LuckSiege PictureSelector Engine 实现
- [permission](#javadevenginepermission) | Permission Engine 权限申请
- [storage](#javadevenginestorage) | Storage Engine 外部、内部文件存储
- [other](#javadevother) | 第三方库封装工具类
Expand Down Expand Up @@ -527,16 +529,6 @@
## <span id="javadevenginemedia">**`java.dev.engine.media`**</span>


* ** ->** [GlideEngine.java](https://github.com/afkT/DevUtils/blob/master/lib/LocalModules/DevOther/src/main/java//java/dev/engine/media/GlideEngine.java)

| 方法 | 注释 |
| :- | :- |
| loadImage | 加载图片 |
| loadFolderImage | 加载相册目录 |
| loadGridImage | 加载图片列表图片 |
| createGlideEngine | createGlideEngine |


* **Local Media Selector Data ->** [LocalMediaData.java](https://github.com/afkT/DevUtils/blob/master/lib/LocalModules/DevOther/src/main/java//java/dev/engine/media/LocalMediaData.java)

| 方法 | 注释 |
Expand Down Expand Up @@ -610,6 +602,19 @@
| getSingleSelectorPath | getSingleSelectorPath |


## <span id="javadevenginemedialuck_lib_engine">**`java.dev.engine.media.luck_lib_engine`**</span>


* ** ->** [LuckGlideEngineImpl.java](https://github.com/afkT/DevUtils/blob/master/lib/LocalModules/DevOther/src/main/java//java/dev/engine/media/luck_lib_engine/LuckGlideEngineImpl.java)

| 方法 | 注释 |
| :- | :- |
| loadImage | 加载图片 |
| loadFolderImage | 加载相册目录 |
| loadGridImage | 加载图片列表图片 |
| createGlideEngine | createGlideEngine |


## <span id="javadevenginepermission">**`java.dev.engine.permission`**</span>


Expand Down Expand Up @@ -732,15 +737,6 @@
| getType | 获取 Type |


* **Glide 图形处理工具类 ->** [GlideTransformUtils.java](https://github.com/afkT/DevUtils/blob/master/lib/LocalModules/DevOther/src/main/java//java/dev/other/GlideTransformUtils.java)

| 方法 | 注释 |
| :- | :- |
| transform | transform |
| updateDiskCacheKey | updateDiskCacheKey |
| blurBitmap | 模糊图片处理 |


* **Glide 工具类 ->** [GlideUtils.java](https://github.com/afkT/DevUtils/blob/master/lib/LocalModules/DevOther/src/main/java//java/dev/other/GlideUtils.java)

| 方法 | 注释 |
Expand Down Expand Up @@ -861,55 +857,22 @@

| 方法 | 注释 |
| :- | :- |
| getConfig | 获取全局相册配置 |
| setConfig | 设置全局相册配置 |
| openCamera | 打开相册拍照 |
| openGallery | 打开相册选择 |
| getConfig | 获取全局配置 |
| setConfig | 设置全局配置 |
| getCameraSavePath | 获取拍照存储地址 |
| getCompressSavePath | 获取压缩图片存储地址 |
| setSavePath | 设置存储地址 |
| getMinimumCompressSize | 获取图片大于多少才进行压缩 ( kb ) |
| setMinimumCompressSize | 设置图片大于多少才进行压缩 ( kb ) |
| deleteCacheDirFile | 清空缓存 |
| deleteAllCacheDirFile | 清空全部缓存 |
| deleteCacheDirFile | 删除缓存文件 |
| deleteAllCacheDirFile | 删除全部缓存文件 |
| isMediaSelectorResult | 是否图片选择 ( onActivityResult ) |
| getLocalMedias | 获取选中的资源集合 |
| getSingleMedia | 获取单独选中的资源 |
| getLocalMediaPath | 获取本地资源路径 |
| getLocalMediaPaths | 获取本地资源地址集合 |
| getPictureSelectionModel | 获取图片选择配置模型 |
| openCamera | 打开相册拍照 |
| openGallery | 打开相册选择 |
| getMimeType | 获取相册选择类型 |
| setMimeType | 设置相册选择类型 |
| getSelectionMode | 获取相册选择模式 |
| setSelectionMode | 设置相册选择模式 |
| isCamera | 是否显示拍照 |
| setCamera | 设置是否显示拍照 |
| isCrop | 是否裁减 |
| setCrop | 设置是否裁减 |
| isCircleCrop | 是否圆形裁减 |
| setCircleCrop | 设置是否圆形裁减 |
| isCompress | 是否压缩 |
| setCompress | 设置是否压缩 |
| getWithAspectRatio | 获取裁减比例 |
| setWithAspectRatio | 设置裁减比例 |
| isGif | 是否显示 Gif |
| setGif | 设置是否显示 Gif |
| getImageSpanCount | 获取每行显示个数 |
| setImageSpanCount | 设置每行显示个数 |
| getMinSelectNum | 获取最小选择数量 |
| setMinSelectNum | 设置最小选择数量 |
| getMaxSelectNum | 获取最大选择数量 |
| setMaxSelectNum | 设置最大选择数量 |
| getLocalMedia | 获取已选择的本地资源 |
| setLocalMedia | 设置已选择的本地资源 |
| setCameraSavePath | 设置拍照存储地址 |
| setCompressSavePath | 设置压缩图片存储地址 |
| clone | 克隆新的配置信息 |
| set | 设置新的配置信息 |
| ofAll | ofAll |
| ofImage | ofImage |
| ofVideo | ofVideo |
| ofAudio | ofAudio |
| getSelectors | 获取 Media Selector Data List |
| getSelectorPaths | 获取 Media Selector Path List |
| getSingleSelector | 获取 Single Media Selector Data |
| getSingleSelectorPath | 获取 Single Media Selector Path |


* **ZXing 条形码、二维码工具类 ->** [ZXingUtils.java](https://github.com/afkT/DevUtils/blob/master/lib/LocalModules/DevOther/src/main/java//java/dev/other/ZXingUtils.java)
Expand Down

0 comments on commit 98be6d2

Please sign in to comment.