Skip to content

Commit 92fba23

Browse files
committed
1.更新 DevApp 版本信息、CHANGELOG、API 文档
1 parent d0cfb7e commit 92fba23

File tree

7 files changed

+17
-8
lines changed

7 files changed

+17
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

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

@@ -75,7 +75,7 @@
7575
```java
7676

7777
// DevApp Android 工具类库
78-
implementation 'com.afkt:DevAppX:2.1.7'
78+
implementation 'com.afkt:DevAppX:2.1.8'
7979

8080
// DevAssist 快捷功能辅助类库
8181
implementation 'com.afkt:DevAssist:1.0.9'

file/gradle/config.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ ext {
5353
// ===========
5454

5555
// 版本号
56-
dev_app_versionCode : 217,
56+
dev_app_versionCode : 218,
5757
// 版本名
58-
dev_app_versionName : '2.1.7',
58+
dev_app_versionName : '2.1.8',
5959

6060
// 版本号
6161
dev_assist_versionCode : 109,

file/json/deps.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ dependencies {
33
// = dev =
44

55
// dev_app_x
6-
implementation 'com.afkt:DevAppX:2.1.7'
6+
implementation 'com.afkt:DevAppX:2.1.8'
77
// dev_assist
88
implementation 'com.afkt:DevAssist:1.0.9'
99
// dev_base

file/json/deps.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"dev": {
3-
"dev_app_x": "com.afkt:DevAppX:2.1.7",
3+
"dev_app_x": "com.afkt:DevAppX:2.1.8",
44
"dev_assist": "com.afkt:DevAssist:1.0.9",
55
"dev_base": "com.afkt:DevBase:1.0.4",
66
"dev_base_mvvm": "com.afkt:DevBaseMVVM:1.0.2",

lib/DevApp/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Change Log
22
==========
33

4+
Version 2.1.8 *(2021-03-01)*
5+
----------------------------
6+
7+
* `[Refactor]` NotificationUtils 新增 Params、Callback
8+
9+
* `[Add]` DeviceUtils#isDevelopmentSettingsEnabled
10+
411
Version 2.1.7 *(2021-02-27)*
512
----------------------------
613

lib/DevApp/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//implementation 'com.afkt:DevApp:1.9.4'
77

88
// AndroidX
9-
implementation 'com.afkt:DevAppX:2.1.7'
9+
implementation 'com.afkt:DevAppX:2.1.8'
1010
```
1111

1212
## 目录结构
@@ -700,6 +700,7 @@ allprojects {
700700
| getLinuxCore_Ver | 获取内核版本 CORE-VER |
701701
| isDeviceRooted | 判断设备是否 root |
702702
| isAdbEnabled | 获取是否启用 ADB |
703+
| isDevelopmentSettingsEnabled | 是否打开开发者选项 |
703704
| getMacAddress | 获取设备 MAC 地址 |
704705
| shutdown | 关机 ( 需要 root 权限 ) |
705706
| reboot | 重启设备 ( 需要 root 权限 ) |
@@ -1104,6 +1105,7 @@ allprojects {
11041105
| cancelAll | 移除通知 ( 移除所有通知 ) |
11051106
| cancel | 移除通知 ( 移除标记为 id 的通知 ) |
11061107
| notify | 进行通知 |
1108+
| getNotificationChannel | 获取 NotificationChannel |
11071109
| createPendingIntent | 获取 PendingIntent |
11081110
| createNotification | 创建通知栏对象 |
11091111
| get | 获取 Led 配置参数 |

lib/DevApp/src/main/java/dev/utils/app/NotificationUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public static NotificationChannel getNotificationChannel() {
257257
* @param create 是否创建 Channel
258258
* @return {@link NotificationChannel}
259259
*/
260-
public static NotificationChannel getNotificationChannel(boolean create) {
260+
public static NotificationChannel getNotificationChannel(final boolean create) {
261261
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
262262
NotificationChannel channel = new NotificationChannel(
263263
DevUtils.TAG + "." + AppUtils.getPackageName(),

0 commit comments

Comments
 (0)