File tree Expand file tree Collapse file tree 7 files changed +17
-8
lines changed
src/main/java/dev/utils/app Expand file tree Collapse file tree 7 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 1
1
2
2
[ ![ GitHub] ( https://img.shields.io/badge/GitHub-afkT-blue.svg )] ( https://github.com/afkT )
3
3
[ ![ 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 )
5
5
[ ![ API] ( https://img.shields.io/badge/API-14%2B-brightgreen.svg?style=flat )] ( https://android-arsenal.com/api?level=14 )
6
6
[ ![ Utils] ( https://img.shields.io/badge/utils-160+-ff69b4.svg )] ( https://github.com/afkT/DevUtils/blob/master/lib/DevApp/README.md )
7
7
75
75
``` java
76
76
77
77
// DevApp Android 工具类库
78
- implementation ' com.afkt:DevAppX:2.1.7 '
78
+ implementation ' com.afkt:DevAppX:2.1.8 '
79
79
80
80
// DevAssist 快捷功能辅助类库
81
81
implementation ' com.afkt:DevAssist:1.0.9'
Original file line number Diff line number Diff line change 53
53
// ===========
54
54
55
55
// 版本号
56
- dev_app_versionCode : 217 ,
56
+ dev_app_versionCode : 218 ,
57
57
// 版本名
58
- dev_app_versionName : ' 2.1.7 ' ,
58
+ dev_app_versionName : ' 2.1.8 ' ,
59
59
60
60
// 版本号
61
61
dev_assist_versionCode : 109 ,
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ dependencies {
3
3
// = dev =
4
4
5
5
// dev_app_x
6
- implementation ' com.afkt:DevAppX:2.1.7 '
6
+ implementation ' com.afkt:DevAppX:2.1.8 '
7
7
// dev_assist
8
8
implementation ' com.afkt:DevAssist:1.0.9'
9
9
// dev_base
Original file line number Diff line number Diff line change 1
1
{
2
2
"dev" : {
3
- "dev_app_x" : " com.afkt:DevAppX:2.1.7 " ,
3
+ "dev_app_x" : " com.afkt:DevAppX:2.1.8 " ,
4
4
"dev_assist" : " com.afkt:DevAssist:1.0.9" ,
5
5
"dev_base" : " com.afkt:DevBase:1.0.4" ,
6
6
"dev_base_mvvm" : " com.afkt:DevBaseMVVM:1.0.2" ,
Original file line number Diff line number Diff line change 1
1
Change Log
2
2
==========
3
3
4
+ Version 2.1.8 * (2021-03-01)*
5
+ ----------------------------
6
+
7
+ * ` [Refactor] ` NotificationUtils 新增 Params、Callback
8
+
9
+ * ` [Add] ` DeviceUtils#isDevelopmentSettingsEnabled
10
+
4
11
Version 2.1.7 * (2021-02-27)*
5
12
----------------------------
6
13
Original file line number Diff line number Diff line change 6
6
// implementation 'com.afkt:DevApp:1.9.4'
7
7
8
8
// AndroidX
9
- implementation ' com.afkt:DevAppX:2.1.7 '
9
+ implementation ' com.afkt:DevAppX:2.1.8 '
10
10
```
11
11
12
12
## 目录结构
@@ -700,6 +700,7 @@ allprojects {
700
700
| getLinuxCore_Ver | 获取内核版本 CORE-VER |
701
701
| isDeviceRooted | 判断设备是否 root |
702
702
| isAdbEnabled | 获取是否启用 ADB |
703
+ | isDevelopmentSettingsEnabled | 是否打开开发者选项 |
703
704
| getMacAddress | 获取设备 MAC 地址 |
704
705
| shutdown | 关机 ( 需要 root 权限 ) |
705
706
| reboot | 重启设备 ( 需要 root 权限 ) |
@@ -1104,6 +1105,7 @@ allprojects {
1104
1105
| cancelAll | 移除通知 ( 移除所有通知 ) |
1105
1106
| cancel | 移除通知 ( 移除标记为 id 的通知 ) |
1106
1107
| notify | 进行通知 |
1108
+ | getNotificationChannel | 获取 NotificationChannel |
1107
1109
| createPendingIntent | 获取 PendingIntent |
1108
1110
| createNotification | 创建通知栏对象 |
1109
1111
| get | 获取 Led 配置参数 |
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ public static NotificationChannel getNotificationChannel() {
257
257
* @param create 是否创建 Channel
258
258
* @return {@link NotificationChannel}
259
259
*/
260
- public static NotificationChannel getNotificationChannel (boolean create ) {
260
+ public static NotificationChannel getNotificationChannel (final boolean create ) {
261
261
if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .O ) {
262
262
NotificationChannel channel = new NotificationChannel (
263
263
DevUtils .TAG + "." + AppUtils .getPackageName (),
You can’t perform that action at this time.
0 commit comments