Skip to content

Releases: afkT/DevUtils

2.5.3

19 May 16:51

Choose a tag to compare

更新 DevAppX 2.5.3 版本

Version 2.5.3 (2026-05-20)

  • [Feature] 适配 Android 17 ( API 37 ):VersionUtils 完善版本判断与转换;新增 ContactPickerUtils、ProfilingUtils、SecurityUtils;ActivityUtils 支持跨设备 Handoff;AlarmUtils 支持 OnAlarmListener 精确闹钟;ProcessUtils 支持进程退出原因查询;NetworkUtils、JobSchedulerUtils 等补充本地网络权限与 pending 统计等 API 37 能力

  • [Feature] 适配 Android 16 ( Baklava ):VersionUtils、VersionHelper 补充版本信息与 API 映射及检测方法;新增 JobSchedulerUtils(含任务诊断 API、命名空间调度);ScreenUtils 大屏方向与自适应布局;IntentUtils#removeLaunchSecurityProtection、MediaStoreUtils#getMediaStoreVersion、ReceiverUtils#clampBroadcastIntentFilterPriorityCompat;AppUtils#getApplicationInfo( Context )、VersionUtils#getTargetSdkVersion 等

  • [Add] 新增 PendingIntentUtils,统一 PendingIntent 创建与 Android 12+ 默认 Flag 处理;AlarmUtils 适配精确闹钟权限( canScheduleExactAlarms、startScheduleExactAlarmSettings )并与 NotificationUtils、PhoneUtils 等统一使用该工具类

  • [Add] 新增 PackageManagerUtils,封装 API 33+ ResolveInfoFlags 等包管理器查询;AppInfoUtils、IntentUtils 等查询逻辑迁移至该工具类

  • [Add] 新增 ForegroundServiceUtils,封装 API 29+ 前台服务类型与 startForeground 启动适配;AppUtils 保留启动前台服务便捷方法

  • [Add] ReceiverUtils 扩展 Android 13+ 导出与非导出广播注册配置;AppUtils 增加带 receiverExported 的广播注册重载;NotificationUtils 增加 POST_NOTIFICATIONS 权限检查与 postNotificationIfAllowed 安全发布

  • [Add] ViewUtils、ViewHelper、QuickHelper 补充 Checkable 选中及 activated、pressed 状态读写与批量设置;TextViewUtils 新增 removeUnderlineText、removeStrikeThruText

  • [Add] 新增 InputFilter 输入过滤体系:InputFilterUtils 统一设置、追加、按 Class 合并与去重,并提供单行/多行、昵称、评论、搜索关键词、标签、账号密码、邮箱、URL、整数/小数/金额、验证码、手机号、身份证、中文姓名/邮编/地址、百分比、端口等预设组合;InputFilterCharUtils 字符校验辅助;dev.utils.app.text.input_filter 包下多种场景过滤器(含 Emoji、半角、全大写/全小写、中文专属等);text 包保留 AllowCharsInputFilterProhibitCharsInputFilterRegexInputFilterDelegateInputFilter 等通用与委托型实现

  • [Add] EditTextUtils、TextViewUtils 补充 InputFilter 设置/追加/清空/按类型合并及最大长度相关能力;ViewHelper、QuickHelper 及对应接口支持链式 InputFilter 操作

  • [Add] RecyclerViewUtils 新增平滑滚动与顶部/底部吸附对齐( startSmoothScrollSnapStart/End、scrollToPositionWithOffset、stopSmoothScroller 等);ListViewUtils 滚动相关方法改为返回 boolean 并统一异常处理

  • [Add] Android 17+ 扩展:AudioManagerUtils Assistant 音频流、IntentUtils 系统 Photo Picker、MediaStoreUtils Photo Picker UI 定制、NotificationUtils Live Update 语义色

  • [Update] AppUtils、AppInfoItem、AppInfoUtils、ManifestUtils 等应用签名与包信息获取逻辑调整(兼容 Android P 及以上);非 Activity 上下文调用 AppUtils#startActivity 时自动补充 FLAG_ACTIVITY_NEW_TASK

  • [Update] 优化 EditText/TextView 最大长度限制实现;ChineseAddressInputFilter 支持地址中的英文字符

  • [Fix] 修复部分 Android 版本判断与导出广播接收器注册逻辑问题;修复 CursorUtils、DevicePolicyUtils、DeviceUtils、NetworkUtils 等空指针与 ListViewUtils 滚动返回值问题

  • [Fix] SnackbarUtils 方法名拼写修正( bellow 改为 below )及相关引用与文档

  • [Refactor] 多工具类方法、回调接口、DevFinal 常量访问方式、EXIF ExifTagTables 与内部辅助命名等可读性重构(含 ReceiverUtils 驼峰化、ShellUtils 命令结果判断方法重命名、Reflect2Utils 异常处理、CPUUtils 资源管理等)

  • [Refactor] 输入过滤器重构:实现类迁移至 text.input_filter 包,InputFilterCharUtils 迁至 dev.utils.app 包;优化过滤器去重与按 Class 合并逻辑;身份证/手机号等类重命名为 ChineseIdCardInputFilterChineseMobilePhoneInputFilter;精简移除重复或过场景化的过滤器类

  • [Style] 工具类文档、JavaDoc {@link} 与返回值描述整理,部分方法参数 final 化;README 拼写修正;输入过滤器相关类文档与代码格式整理

更新所有第三方依赖库、Gradle 插件最新版本信息 ( 2026-05-20 )

同步更新其他库:( 更新内容具体查看各个库 CHANGELOG.md )

Dev 系列开发库全部 Lib Gradle

// DevApp - Android 工具类库
implementation 'io.github.afkt:DevAppX:2.5.3'

// DevAssist - 封装逻辑代码, 实现多个快捷功能辅助类、以及 Engine 兼容框架等
implementation 'io.github.afkt:DevAssist:1.4.6'

// DevBase - Base ( Activity、Fragment ) MVP、MVVM 基类库
implementation 'io.github.afkt:DevBase:1.2.3'

// DevEngine - 第三方框架解耦、一键替换第三方库、同类库多 Engine 组件化混合使用
implementation 'io.github.afkt:DevEngine:1.1.8'

// DevSimple - 简单敏捷开发库
implementation 'io.github.afkt:DevSimple:1.0.7'

// DevWidget - 自定义 View UI 库
implementation 'io.github.afkt:DevWidgetX:1.2.8'

// DevRetrofit - Retrofit + Kotlin Coroutines 封装
implementation 'io.github.afkt:DevRetrofit:1.1.0'

// DevHttpManager - OkHttp 管理库 ( Retrofit 多 BaseUrl 管理、Progress 监听 )
implementation 'io.github.afkt:DevHttpManager:1.1.1'

// DevHttpCapture - OkHttp 抓包工具库
implementation 'io.github.afkt:DevHttpCapture:1.2.2'

// DevHttpCaptureCompiler - OkHttp 抓包工具库 ( 可视化功能 )
debugImplementation 'io.github.afkt:DevHttpCaptureCompiler:1.2.2'
releaseImplementation 'io.github.afkt:DevHttpCaptureCompilerRelease:1.2.2'

// DevEnvironment - Android 环境配置切换库
implementation 'io.github.afkt:DevEnvironment:1.2.0'
debugAnnotationProcessor 'io.github.afkt:DevEnvironmentCompiler:1.2.0' // kaptDebug
releaseAnnotationProcessor 'io.github.afkt:DevEnvironmentCompilerRelease:1.2.0' // kaptRelease
//annotationProcessor 'io.github.afkt:DevEnvironmentCompiler:1.2.0' // kapt

// DevDeprecated - Dev 系列库弃用代码统一存储库
implementation 'io.github.afkt:DevDeprecated:1.0.3'

// DevJava - Java 工具类库 ( 不依赖 android api )
implementation 'io.github.afkt:DevJava:1.5.6'

全面提升 Dev 系列库可扩展架构与 API 规范化

  • 【架构升级】DevBase 基类、DevEngine 引擎实现、DevRetrofit 请求封装、DevHttpManager 进度监听等核心类由 private/internal 调整为 protected/open,辅助类重构为可扩展工厂模式,让 Dev 系列库从封闭工具集演进为可继承可定制的开放框架

  • 【统一规范】跨 DevApp、DevAssist、DevJava、DevWidget、DevHttpManager、DevHttpCapture、DevRetrofit、DevDeprecated 等多库联动推进工具类、回调接口、辅助类方法命名规范化,构建跨层级一致的 API 风格与语义体系

  • 【系统适配】DevApp 适配 Android 16/17 并将 SDK 推进至 37,新增 PendingIntentUtils 统一 Android 12+ Flag 处理、ReceiverUtils 兼容 Android 13+ 导出广播,DevBase 新增 EdgeToEdge 扩展,主动对齐 Google 最新平台规范

  • 【专业能力】DevEngine 集成 Timber 日志框架并新增对应引擎实现,配合缓存、图片、键值对、媒体、存储等多引擎成员可见性统一开放,强化第三方框架解耦与多 Engine 组件化混合使用能力

  • 【实用扩展】DevSimple 一体化建设响应式数据驱动基础设施 —— 主流布局控件 styles 资源体系、RecyclerView BindingAdapter、Adapter LiveData 智能线程更新及 PayloadLiveData、StateIntLiveData,DevBase 同步补齐 ViewModel 准备就绪回调与数据读取能力,提升 MVVM 开发效率

  • 【网络精简】DevHttpManager 移除冗余历史进度监听代码路径,DevHttpCapture 优化拦截器属性可见性与存储逻辑,整体 HTTP 层更轻量、Java 互操作与二次开发更顺畅

  • 【全栈对齐】DevWidget 自定义 View 组件方法命名规范化、DevJava 纯 Java 工具层及 DevDeprecated 弃用库中权限、相机、吐司等历史代码同步对齐,确保 Dev 系列库跨层级命名习惯与编码规范的整体一致

2.4.9

13 Oct 12:18

Choose a tag to compare

更新 DevAppX 2.4.9 版本

Version 2.4.9 (2025-10-12)

  • [Add] 新增 Resources Color 辅助类

  • [Add] 新增 DevUtils#viewVisible、viewVisibles、viewGone、viewGones、viewInVisible、viewInVisibles 方法

  • [Add] 新增 ImageUtils#colorDrawableToBitmap 方法

  • [Add] 新增 ResourceUtils#createFromAsset、createFromFile、create 方法

  • [Add] 新增整个项目 PendingIntent.FLAG_MUTABLE Flag

  • [Update] 简化 ColorUtils、color.xml 部分颜色变量并更新部分 color 资源命名

  • [Update] 修改部分 IMPL 文件、变量、类命名为 Impl

  • [Delete] 删除 common.able 定义的接口文件,简化工具类构成

更新所有第三方依赖库、Gradle 插件最新版本信息 ( 2025-10-12 )

同步更新其他库:( 更新内容具体查看各个库 CHANGELOG.md )

Dev 系列开发库全部 Lib Gradle

// DevApp - Android 工具类库
implementation 'io.github.afkt:DevAppX:2.4.9'

// DevAssist - 封装逻辑代码, 实现多个快捷功能辅助类、以及 Engine 兼容框架等
implementation 'io.github.afkt:DevAssist:1.4.4'

// DevBase - Base ( Activity、Fragment ) MVP、MVVM 基类库
implementation 'io.github.afkt:DevBase:1.2.1'

// DevEngine - 第三方框架解耦、一键替换第三方库、同类库多 Engine 组件化混合使用
implementation 'io.github.afkt:DevEngine:1.1.6'

// DevSimple - 简单敏捷开发库
implementation 'io.github.afkt:DevSimple:1.0.4'

// DevWidget - 自定义 View UI 库
implementation 'io.github.afkt:DevWidgetX:1.2.6'

// DevRetrofit - Retrofit + Kotlin Coroutines 封装
implementation 'io.github.afkt:DevRetrofit:1.0.8'

// DevHttpManager - OkHttp 管理库 ( Retrofit 多 BaseUrl 管理、Progress 监听 )
implementation 'io.github.afkt:DevHttpManager:1.0.9'

// DevHttpCapture - OkHttp 抓包工具库
implementation 'io.github.afkt:DevHttpCapture:1.2.0'

// DevHttpCaptureCompiler - OkHttp 抓包工具库 ( 可视化功能 )
debugImplementation 'io.github.afkt:DevHttpCaptureCompiler:1.2.0'
releaseImplementation 'io.github.afkt:DevHttpCaptureCompilerRelease:1.2.0'

// DevEnvironment - Android 环境配置切换库
implementation 'io.github.afkt:DevEnvironment:1.1.8'
debugAnnotationProcessor 'io.github.afkt:DevEnvironmentCompiler:1.1.8' // kaptDebug
releaseAnnotationProcessor 'io.github.afkt:DevEnvironmentCompilerRelease:1.1.8' // kaptRelease
//annotationProcessor 'io.github.afkt:DevEnvironmentCompiler:1.1.8' // kapt

// DevDeprecated - Dev 系列库弃用代码统一存储库
implementation 'io.github.afkt:DevDeprecated:1.0.1'

// DevJava - Java 工具类库 ( 不依赖 android api )
implementation 'io.github.afkt:DevJava:1.5.4'

合并 DevBaseMVVM、DevSimple 代码到 DevBase 库

  • 重构 DevBase 模块,重新调整包名目录结构,删除无用重复冗余类,并移除过多配置选项、接口等,简化基类提高可读性

  • 重构 DevSimple 模块,重新调整包名目录结构,删除无用重复冗余类,简化代码提高可读性

  • 合并 DevMVVM、DevAgile 代码统一到 DevSimple 中并进行重构

2.4.8

22 Apr 16:24

Choose a tag to compare

更新 DevAppX 2.4.8 版本

Version 2.4.8 (2025-03-21)

  • [Feature] 适配 Android 15 ( VanillaIceCream )

  • [Add] 新增 DownloadManager 工具类 DownloadUtils

  • [Add] 新增 Cursor 游标工具类 CursorUtils

  • [Refactor] 更新整个项目 Cursor 使用方法

  • [Refactor] 更新整个项目 SystemService 缓存代码

  • [Move] 迁移 DefaultActivityResult、PermissionUtils、Toast、Camera1、Wifi 实现代码到 DevDeprecated 库

  • [Move] 迁移无用资源文件到 DevDeprecated 库

更新所有第三方依赖库、Gradle 插件最新版本信息 ( 2025-03-21 )

同步更新其他库:( 更新内容具体查看各个库 CHANGELOG.md )

Dev 系列开发库全部 Lib Gradle

// DevApp - Android 工具类库
implementation 'io.github.afkt:DevAppX:2.4.8'

// DevAssist - 封装逻辑代码, 实现多个快捷功能辅助类、以及 Engine 兼容框架等
implementation 'io.github.afkt:DevAssist:1.4.3'

// DevBase - Base ( Activity、Fragment )、MVP、ViewBinding、ContentLayout 基类库
implementation 'io.github.afkt:DevBase:1.2.0'

// DevBaseMVVM - MVVM ( ViewDataBinding + ViewModel ) 基类库
implementation 'io.github.afkt:DevBaseMVVM:1.1.8'

// DevMVVM - DataBinding 工具类库
implementation 'io.github.afkt:DevMVVM:1.0.6'

// DevEngine - 第三方框架解耦、一键替换第三方库、同类库多 Engine 组件化混合使用
implementation 'io.github.afkt:DevEngine:1.1.5'

// DevSimple - 简单敏捷开发库
implementation 'io.github.afkt:DevSimple:1.0.3'

// DevAgile - 简单敏捷开发库 ( 常用、零散代码 )
implementation 'io.github.afkt:DevAgile:1.0.2'

// DevWidget - 自定义 View UI 库
implementation 'io.github.afkt:DevWidgetX:1.2.5'

// DevRetrofit - Retrofit + Kotlin Coroutines 封装
implementation 'io.github.afkt:DevRetrofit:1.0.7'

// DevHttpManager - OkHttp 管理库 ( Retrofit 多 BaseUrl 管理、Progress 监听 )
implementation 'io.github.afkt:DevHttpManager:1.0.8'

// DevHttpCapture - OkHttp 抓包工具库
implementation 'io.github.afkt:DevHttpCapture:1.1.9'

// DevHttpCaptureCompiler - OkHttp 抓包工具库 ( 可视化功能 )
debugImplementation 'io.github.afkt:DevHttpCaptureCompiler:1.1.9'
releaseImplementation 'io.github.afkt:DevHttpCaptureCompilerRelease:1.1.9'

// DevEnvironment - Android 环境配置切换库
implementation 'io.github.afkt:DevEnvironment:1.1.7'
debugAnnotationProcessor 'io.github.afkt:DevEnvironmentCompiler:1.1.7' // kaptDebug
releaseAnnotationProcessor 'io.github.afkt:DevEnvironmentCompilerRelease:1.1.7' // kaptRelease
//annotationProcessor 'io.github.afkt:DevEnvironmentCompiler:1.1.7' // kapt

// DevDeprecated - Dev 系列库弃用代码统一存储库
implementation 'io.github.afkt:DevDeprecated:1.0.0'

// DevJava - Java 工具类库 ( 不依赖 android api )
implementation 'io.github.afkt:DevJava:1.5.3'

新增 DevDeprecated - Dev 系列库弃用代码统一存储库

  • 迁移大部分资源文件,增强 DevApp 项目纯粹性,避免过度无效资源增加工具包大小

  • 该库属于 Dev 系列库弃用代码统一存储库 基于 DevApp 并迁移部分代码,直接使用即可,无需初始化

  • 因本人的时间与精力有限,故迁移部分代码至此,并推荐使用 Github 其他同功能优秀库。

  • 迁移的代码包目录结构照旧,如果还想继续使用历史代码,依赖该库即可,无需做任何变更。

2.4.7

11 Dec 09:22

Choose a tag to compare

更新 DevAppX 2.4.7 版本

Version 2.4.7 (2024-12-11)

  • [Build] bump minSdkVersion to 21

  • [Add] 新增 ReceiverUtils 广播相关工具类

  • [Add] 新增 ViewUtils#setClipToOutline、getClipToOutline、setOutlineProvider、getOutlineProvider、setOutlineProviderClip、removeBackground、removeAllBackground、removeForeground 方法

  • [Add] 新增 ImageViewUtils#removeImageBitmap、removeImageDrawable、removeImageBitmaps、removeImageDrawables 方法

  • [Add] 新增 FileUtils#isHidden2、isBuild 方法

更新所有第三方依赖库、Gradle 插件最新版本信息 ( 2024-12-11 )

同步更新其他库:( 更新内容具体查看各个库 CHANGELOG.md )

Dev 系列开发库全部 Lib Gradle

// DevApp - Android 工具类库
implementation 'io.github.afkt:DevAppX:2.4.7'

// DevAssist - 封装逻辑代码, 实现多个快捷功能辅助类、以及 Engine 兼容框架等
implementation 'io.github.afkt:DevAssist:1.4.2'

// DevBase - Base ( Activity、Fragment )、MVP、ViewBinding、ContentLayout 基类库
implementation 'io.github.afkt:DevBase:1.1.9'

// DevBaseMVVM - MVVM ( ViewDataBinding + ViewModel ) 基类库
implementation 'io.github.afkt:DevBaseMVVM:1.1.7'

// DevMVVM - DataBinding 工具类库
implementation 'io.github.afkt:DevMVVM:1.0.5'

// DevSimple - 简单敏捷开发库
implementation 'io.github.afkt:DevSimple:1.0.2'

// DevAgile - 简单敏捷开发库 ( 常用、零散代码 )
implementation 'io.github.afkt:DevAgile:1.0.1'

// DevEngine - 第三方框架解耦、一键替换第三方库、同类库多 Engine 组件化混合使用
implementation 'io.github.afkt:DevEngine:1.1.4'

// DevHttpCapture - OkHttp 抓包工具库
implementation 'io.github.afkt:DevHttpCapture:1.1.8'

// DevHttpCaptureCompiler - OkHttp 抓包工具库 ( 可视化功能 )
debugImplementation 'io.github.afkt:DevHttpCaptureCompiler:1.1.8'
releaseImplementation 'io.github.afkt:DevHttpCaptureCompilerRelease:1.1.8'

// DevHttpManager - OkHttp 管理库 ( Retrofit 多 BaseUrl 管理、Progress 监听 )
implementation 'io.github.afkt:DevHttpManager:1.0.7'

// DevRetrofit - Retrofit + Kotlin Coroutines 封装
implementation 'io.github.afkt:DevRetrofit:1.0.6'

// DevWidget - 自定义 View UI 库
implementation 'io.github.afkt:DevWidgetX:1.2.4'

// DevEnvironment - Android 环境配置切换库
implementation 'io.github.afkt:DevEnvironment:1.1.6'
debugAnnotationProcessor 'io.github.afkt:DevEnvironmentCompiler:1.1.6' // kaptDebug
releaseAnnotationProcessor 'io.github.afkt:DevEnvironmentCompilerRelease:1.1.6' // kaptRelease
//annotationProcessor 'io.github.afkt:DevEnvironmentCompiler:1.1.6' // kapt

// DevJava - Java 工具类库 ( 不依赖 android api )
implementation 'io.github.afkt:DevJava:1.5.2' // 用于纯 Java 开发,如果依赖了 DevApp 则不需要依赖 DevJava

Full Changelog: 2.4.4...2.4.7

2.4.4

20 Jan 04:44

Choose a tag to compare

更新 DevAppX 2.4.4 版本

Version 2.4.4 (2024-01-18)

  • [Feature] 适配 Android 14 ( UpsideDownCake )

更新所有第三方依赖库、Gradle 插件最新版本信息 ( 2024-01-18 )

同步更新其他库:( 更新内容具体查看各个库 CHANGELOG.md )

Dev 系列开发库全部 Lib Gradle

// DevApp - Android 工具类库
implementation 'io.github.afkt:DevAppX:2.4.4'

// DevAssist - 封装逻辑代码, 实现多个快捷功能辅助类、以及 Engine 兼容框架等
implementation 'io.github.afkt:DevAssist:1.4.0'

// DevBase - Base ( Activity、Fragment )、MVP、ViewBinding、ContentLayout 基类库
implementation 'io.github.afkt:DevBase:1.1.6'

// DevBaseMVVM - MVVM ( ViewDataBinding + ViewModel ) 基类库
implementation 'io.github.afkt:DevBaseMVVM:1.1.4'

// DevEngine - 第三方框架解耦、一键替换第三方库、同类库多 Engine 组件化混合使用
implementation 'io.github.afkt:DevEngine:1.1.2'

// DevHttpCapture - OkHttp 抓包工具库
implementation 'io.github.afkt:DevHttpCapture:1.1.6'

// DevHttpCaptureCompiler - OkHttp 抓包工具库 ( 可视化功能 )
debugImplementation 'io.github.afkt:DevHttpCaptureCompiler:1.1.6'
releaseImplementation 'io.github.afkt:DevHttpCaptureCompilerRelease:1.1.6'

// DevHttpManager - OkHttp 管理库 ( Retrofit 多 BaseUrl 管理、Progress 监听 )
implementation 'io.github.afkt:DevHttpManager:1.0.5'

// DevRetrofit - Retrofit + Kotlin Coroutines 封装
implementation 'io.github.afkt:DevRetrofit:1.0.4'

// DevWidget - 自定义 View UI 库
implementation 'io.github.afkt:DevWidgetX:1.2.2'

// DevEnvironment - Android 环境配置切换库
implementation 'io.github.afkt:DevEnvironment:1.1.4'
debugAnnotationProcessor 'io.github.afkt:DevEnvironmentCompiler:1.1.4' // kaptDebug
releaseAnnotationProcessor 'io.github.afkt:DevEnvironmentCompilerRelease:1.1.4' // kaptRelease
//annotationProcessor 'io.github.afkt:DevEnvironmentCompiler:1.1.4' // kapt

// DevJava - Java 工具类库 ( 不依赖 android api )
implementation 'io.github.afkt:DevJava:1.5.0' // 用于纯 Java 开发,如果依赖了 DevApp 则不需要依赖 DevJava

2.4.3

04 Jul 01:05

Choose a tag to compare

哈喽,大家好啊!

DevAppX 最新版本 2.4.3 发布啦,距离上次发版已有 10 个月了。

该开源项目首次提交到现在也接近 5 年了,项目已趋于稳定。

后续将调整为 6 - 12 个月发布一个版本,用于升级 Gradle、第三方库、官方库、Android 版本适配等相关升级变动。

修复 Bug、功能添加不在此时间范围内,视情况额外发布版本。

下个版本见,祝安好!

以下为版本更新内容

Version 2.4.3 (2023-07-01)

  • [Feature] 适配 Android 13 ( Tiramisu )

  • [Add] 新增 AppInfoUtils#getAllLauncherIconPackages、getAllLauncherIconPackageNames

  • [Add] 新增 AppUtils#launchApp2、launchAppInstallPermissionSettings、launchManageAppAllFilesAccessPermission

  • [Add] 新增 ClickUtils#getGlobalIntervalTime、getIntervalTime、getIntervalTime

  • [Add] 新增 LocationUtils#isLocationEnabled2

  • [Add] 新增 ForUtils#forList、forListIterator、forSet、forMap

更新所有第三方依赖库、Gradle 插件最新版本信息 ( 2023-07-01 )

同步更新其他库:( 更新内容具体查看各个库 CHANGELOG.md )

Dev 系列开发库全部 Lib Gradle

// DevApp - Android 工具类库
implementation 'io.github.afkt:DevAppX:2.4.3'

// DevAssist - 封装逻辑代码, 实现多个快捷功能辅助类、以及 Engine 兼容框架等
implementation 'io.github.afkt:DevAssist:1.3.9'

// DevBase - Base ( Activity、Fragment )、MVP、ViewBinding、ContentLayout 基类库
implementation 'io.github.afkt:DevBase:1.1.5'

// DevBaseMVVM - MVVM ( ViewDataBinding + ViewModel ) 基类库
implementation 'io.github.afkt:DevBaseMVVM:1.1.3'

// DevEngine - 第三方框架解耦、一键替换第三方库、同类库多 Engine 组件化混合使用
implementation 'io.github.afkt:DevEngine:1.1.1'

// DevHttpCapture - OkHttp 抓包工具库
implementation 'io.github.afkt:DevHttpCapture:1.1.4'

// DevHttpCaptureCompiler - OkHttp 抓包工具库 ( 可视化功能 )
debugImplementation 'io.github.afkt:DevHttpCaptureCompiler:1.1.4'
releaseImplementation 'io.github.afkt:DevHttpCaptureCompilerRelease:1.1.4'

// DevHttpManager - OkHttp 管理库 ( Retrofit 多 BaseUrl 管理、Progress 监听 )
implementation 'io.github.afkt:DevHttpManager:1.0.4'

// DevRetrofit - Retrofit + Kotlin Coroutines 封装
implementation 'io.github.afkt:DevRetrofit:1.0.3'

// DevWidget - 自定义 View UI 库
implementation 'io.github.afkt:DevWidgetX:1.2.1'

// DevEnvironment - Android 环境配置切换库
implementation 'io.github.afkt:DevEnvironment:1.1.3'
debugAnnotationProcessor 'io.github.afkt:DevEnvironmentCompiler:1.1.3' // kaptDebug
releaseAnnotationProcessor 'io.github.afkt:DevEnvironmentCompilerRelease:1.1.3' // kaptRelease
//annotationProcessor 'io.github.afkt:DevEnvironmentCompiler:1.1.3' // kapt

// DevJava - Java 工具类库 ( 不依赖 android api )
implementation 'io.github.afkt:DevJava:1.4.9' // 用于纯 Java 开发,如果依赖了 DevApp 则不需要依赖 DevJava

2.4.2

17 Sep 18:09

Choose a tag to compare

更新 DevAppX 2.4.2 版本

Version 2.4.2 (2022-09-18)

  • [Add] 新增 UriUtils#ofUri

  • [Add] 新增 NumberUtils#calculateUnitD、calculateUnitF

  • [Add] 新增 FormatUtils 工具类及 UnitSpanFormatter、ArgsFormatter 封装类

  • [Add] 新增部分通用 able 接口

更新所有第三方依赖库、Gradle 插件最新版本信息 ( 2022-09-18 )

同步更新其他库:( 更新内容具体查看各个库 CHANGELOG.md )

Dev 系列开发库全部 Lib Gradle

// DevApp - Android 工具类库
implementation 'io.github.afkt:DevAppX:2.4.2'

// DevAssist - 封装逻辑代码, 实现多个快捷功能辅助类、以及 Engine 兼容框架等
implementation 'io.github.afkt:DevAssist:1.3.8'

// DevBase - Base ( Activity、Fragment )、MVP、ViewBinding、ContentLayout 基类库
implementation 'io.github.afkt:DevBase:1.1.4'

// DevBaseMVVM - MVVM ( ViewDataBinding + ViewModel ) 基类库
implementation 'io.github.afkt:DevBaseMVVM:1.1.2'

// DevEngine - 第三方框架解耦、一键替换第三方库、同类库多 Engine 组件化混合使用
implementation 'io.github.afkt:DevEngine:1.1.0'

// DevHttpCapture - OkHttp 抓包工具库
implementation 'io.github.afkt:DevHttpCapture:1.1.3'

// DevHttpCaptureCompiler - OkHttp 抓包工具库 ( 可视化功能 )
debugImplementation 'io.github.afkt:DevHttpCaptureCompiler:1.1.3'
releaseImplementation 'io.github.afkt:DevHttpCaptureCompilerRelease:1.1.3'

// DevHttpManager - OkHttp 管理库 ( Retrofit 多 BaseUrl 管理、Progress 监听 )
implementation 'io.github.afkt:DevHttpManager:1.0.3'

// DevRetrofit - Retrofit + Kotlin Coroutines 封装
implementation 'io.github.afkt:DevRetrofit:1.0.2'

// DevWidget - 自定义 View UI 库
implementation 'io.github.afkt:DevWidgetX:1.2.0'

// DevEnvironment - Android 环境配置切换库
implementation 'io.github.afkt:DevEnvironment:1.1.2'
debugAnnotationProcessor 'io.github.afkt:DevEnvironmentCompiler:1.1.2' // kaptDebug
releaseAnnotationProcessor 'io.github.afkt:DevEnvironmentCompilerRelease:1.1.2' // kaptRelease
//annotationProcessor 'io.github.afkt:DevEnvironmentCompiler:1.1.2' // kapt

// DevJava - Java 工具类库 ( 不依赖 android api )
implementation 'io.github.afkt:DevJava:1.4.8' // 用于纯 Java 开发,如果依赖了 DevApp 则不需要依赖 DevJava

2.4.0

04 Jul 12:35

Choose a tag to compare

更新 DevAppX 2.4.0 版本

Version 2.4.0 (2022-07-04)

  • [Add] 新增 UriUtils#isAndroidResourceScheme、isFileScheme、isContentScheme、isUriScheme

  • [Add] 新增 StringUtils#equalsIgnoreCase、equalsIgnoreCaseNotNull

  • [Add] 新增 ValiToPhoneUtils 中国广电手机号码段、更新最新运营商号码段

  • [Add] 新增 DevFinal 部分常量值

更新所有第三方依赖库、Gradle 插件最新版本信息 ( 2022-07-04 )

同步更新其他库:( 更新内容具体查看各个库 CHANGELOG.md )

Dev 系列全部 Lib Gradle

// DevApp - Android 工具类库
implementation 'io.github.afkt:DevAppX:2.4.0'

// DevAssist - 封装逻辑代码, 实现多个快捷功能辅助类、以及 Engine 兼容框架等
implementation 'io.github.afkt:DevAssist:1.3.6'

// DevBase - Base ( Activity、Fragment )、MVP、ViewBinding、ContentLayout 基类库
implementation 'io.github.afkt:DevBase:1.1.3'

// DevBaseMVVM - MVVM ( ViewDataBinding + ViewModel ) 基类库
implementation 'io.github.afkt:DevBaseMVVM:1.1.1'

// DevEngine - 第三方框架解耦、一键替换第三方库、同类库多 Engine 组件化混合使用
implementation 'io.github.afkt:DevEngine:1.0.8'

// DevHttpCapture - OkHttp 抓包工具库
implementation 'io.github.afkt:DevHttpCapture:1.1.2'

// DevHttpCaptureCompiler - OkHttp 抓包工具库 ( 可视化功能 )
debugImplementation 'io.github.afkt:DevHttpCaptureCompiler:1.1.2'
releaseImplementation 'io.github.afkt:DevHttpCaptureCompilerRelease:1.1.2'

// DevHttpManager - OkHttp 管理库 ( Retrofit 多 BaseUrl 管理、Progress 监听 )
implementation 'io.github.afkt:DevHttpManager:1.0.2'

// DevRetrofit - Retrofit + Kotlin Coroutines 封装
implementation 'io.github.afkt:DevRetrofit:1.0.1'

// DevWidget - 自定义 View UI 库
implementation 'io.github.afkt:DevWidgetX:1.1.9'

// DevEnvironment - Android 环境配置切换库
implementation 'io.github.afkt:DevEnvironment:1.1.1'
debugAnnotationProcessor 'io.github.afkt:DevEnvironmentCompiler:1.1.1' // kaptDebug
releaseAnnotationProcessor 'io.github.afkt:DevEnvironmentCompilerRelease:1.1.1' // kaptRelease
//annotationProcessor 'io.github.afkt:DevEnvironmentCompiler:1.1.1' // kapt

// DevJava - Java 工具类库 ( 不依赖 android api )
implementation 'io.github.afkt:DevJava:1.4.6' // 用于纯 Java 开发,如果依赖了 DevApp 则不需要依赖 DevJava

2.3.9

25 Jun 18:51

Choose a tag to compare

更新 DevAppX 2.3.9 版本

同步更新其他库:( 更新内容具体查看各个库 CHANGELOG.md )

Dev 系列全部 Lib Gradle

// DevApp - Android 工具类库
implementation 'io.github.afkt:DevAppX:2.3.9'

// DevAssist - 封装逻辑代码, 实现多个快捷功能辅助类、以及 Engine 兼容框架等
implementation 'io.github.afkt:DevAssist:1.3.5'

// DevBase - Base ( Activity、Fragment )、MVP、ViewBinding、ContentLayout 基类库
implementation 'io.github.afkt:DevBase:1.1.2'

// DevBaseMVVM - MVVM ( ViewDataBinding + ViewModel ) 基类库
implementation 'io.github.afkt:DevBaseMVVM:1.1.0'

// DevEngine - 第三方框架解耦、一键替换第三方库、同类库多 Engine 组件化混合使用
implementation 'io.github.afkt:DevEngine:1.0.7'

// DevHttpCapture - OkHttp 抓包工具库
implementation 'io.github.afkt:DevHttpCapture:1.1.1'

// DevHttpCaptureCompiler - OkHttp 抓包工具库 ( 可视化功能 )
debugImplementation 'io.github.afkt:DevHttpCaptureCompiler:1.1.1'
releaseImplementation 'io.github.afkt:DevHttpCaptureCompilerRelease:1.1.1'

// DevHttpManager - OkHttp 管理库 ( Retrofit 多 BaseUrl 管理、Progress 监听 )
implementation 'io.github.afkt:DevHttpManager:1.0.1'

// DevRetrofit - Retrofit + Kotlin Coroutines 封装
implementation 'io.github.afkt:DevRetrofit:1.0.0'

// DevWidget - 自定义 View UI 库
implementation 'io.github.afkt:DevWidgetX:1.1.8'

// DevEnvironment - Android 环境配置切换库
implementation 'io.github.afkt:DevEnvironment:1.1.0'
debugAnnotationProcessor 'io.github.afkt:DevEnvironmentCompiler:1.1.0' // kaptDebug
releaseAnnotationProcessor 'io.github.afkt:DevEnvironmentCompilerRelease:1.1.0' // kaptRelease
//annotationProcessor 'io.github.afkt:DevEnvironmentCompiler:1.1.0' // kapt

// DevJava - Java 工具类库 ( 不依赖 android api )
implementation 'io.github.afkt:DevJava:1.4.5' // 用于纯 Java 开发,如果依赖了 DevApp 则不需要依赖 DevJava

新增 DevRetrofit - Retrofit + Kotlin Coroutines 封装库

DevRetrofit 是基于 Retrofit + Kotlin Coroutines 进行封装的网络层封装库,
针对 CoroutineScopeViewModelLifecycleLifecycleOwnerLifecycleOwner 实现类 ( ActivityFragment 等 ) 封装快捷扩展函数。

并对上述封装的请求方法扩展函数支持传入 LiveData方法体CallbackResultCallback

2.3.7

14 May 15:07

Choose a tag to compare

更新 DevAppX 2.3.7 版本

同步更新其他库:( 更新内容具体查看各个库 CHANGELOG.md )

Dev 系列全部 Lib Gradle

// DevApp - Android 工具类库
implementation 'io.github.afkt:DevAppX:2.3.7'

// DevAssist - 封装逻辑代码, 实现多个快捷功能辅助类、以及 Engine 兼容框架等
implementation 'io.github.afkt:DevAssist:1.3.4'

// DevBase - Base ( Activity、Fragment )、MVP、ViewBinding、ContentLayout 基类库
implementation 'io.github.afkt:DevBase:1.1.2'

// DevBaseMVVM - MVVM ( ViewDataBinding + ViewModel ) 基类库
implementation 'io.github.afkt:DevBaseMVVM:1.1.0'

// DevEngine - 第三方框架解耦、一键替换第三方库、同类库多 Engine 组件化混合使用
implementation 'io.github.afkt:DevEngine:1.0.6'

// DevHttpCapture - OkHttp 抓包工具库
implementation 'io.github.afkt:DevHttpCapture:1.1.1'

// DevHttpCaptureCompiler - OkHttp 抓包工具库 ( 可视化功能 )
debugImplementation 'io.github.afkt:DevHttpCaptureCompiler:1.1.1'
releaseImplementation 'io.github.afkt:DevHttpCaptureCompilerRelease:1.1.1'

// DevHttpManager - OkHttp 管理库 ( Retrofit 多 BaseUrl 管理、Progress 监听 )
implementation 'io.github.afkt:DevHttpManager:1.0.1'

// DevWidget - 自定义 View UI 库
implementation 'io.github.afkt:DevWidgetX:1.1.8'

// DevEnvironment - Android 环境配置切换库
implementation 'io.github.afkt:DevEnvironment:1.1.0'
debugAnnotationProcessor 'io.github.afkt:DevEnvironmentCompiler:1.1.0' // kaptDebug
releaseAnnotationProcessor 'io.github.afkt:DevEnvironmentCompilerRelease:1.1.0' // kaptRelease
//annotationProcessor 'io.github.afkt:DevEnvironmentCompiler:1.1.0' // kapt

// DevJava - Java 工具类库 ( 不依赖 android api )
implementation 'io.github.afkt:DevJava:1.4.4' // 用于纯 Java 开发,如果依赖了 DevApp 则不需要依赖 DevJava

新增 DevHttpManager OkHttp 管理库 ( Retrofit 多 BaseUrl 管理、Progress 监听 )

  • 支持 Retrofit 多 BaseUrl 管理及操作方法封装

  • 支持 Retrofit BaseUrl Reset 事件全局监听、各个模块单独监听回调

  • 支持全局 OkHttp Builder 创建方法,可进行全局管理

  • 针对多 Retrofit 管理封装 Operation 对象并支持组件化使用

  • 支持传参 Map 对多个 Retrofit 同时进行 BaseUrl Reset

  • 支持对 App 所有链接上传、下载进度监听

  • 基于 OkHttp 原生 Api 实现,不存在兼容问题

  • 侵入性低,使用本框架不需要更改历史上传、下载实现代码

  • 对外公开封装 Progress RequestBody、ResponseBody 类,支持自定义使用

  • 支持监听代码,不同实现方式切换,内部内存回收、监听通知方式不同

  • 针对多组件模块化封装,内置默认全局通用对象,也可传 Key 创建独立 Progress 管理操作对象