Skip to content

Commit 66d4fc2

Browse files
6.4.2 - 新增 console.setTouchable / 修复 ocr 区域参数 / 原生化 bridges
1 parent 770d727 commit 66d4fc2

File tree

256 files changed

+2391
-2124
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

256 files changed

+2391
-2124
lines changed

README.md

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
[Auto.js](https://github.com/hyb1996/Auto.js) 是一款 Android 平台支持 [无障碍服务](https://developer.android.com/guide/topics/ui/accessibility/service?hl=zh-cn) 的 JavaScript 自动化工具软件.
3131

32-
Auto.js 由 [hyb1996](https://github.com/hyb1996)`2017/01/27` 初次发布, 于 `2020/03/13` 停止维护, 最终版本名称为 `4.1.1 alpha2`.
32+
Auto.js 由 [hyb1996](https://github.com/hyb1996)`2017/01/27` 初次发布, 于 `2020/03/13` 停止维护, 最终版本名称为 `4.1.1 Alpha2`, 构建版本号为 `461`.
3333

3434
AutoJs6 在 Auto.js 最终项目的基础上, 于 `2021/12/01` 进行二次开发, 继续保持开源免费.
3535

@@ -131,6 +131,25 @@ AutoJs6 在 Auto.js 最终项目的基础上, 于 `2021/12/01` 进行二次开
131131

132132
[comment]: <> "Version history only shows last 3 versions"
133133

134+
# v6.4.2
135+
136+
###### 2023/11/15
137+
138+
* `新增` dialogs.build() 选项参数属性 inputSingleLine
139+
* `新增` console.setTouchable 方法 _[`issue #122`](http://issues.autojs6.com/122)_
140+
* `修复` ocr 模块部分方法无法识别区域参数的问题 _[`issue #162`](http://issues.autojs6.com/162)_ _[`issue #175`](http://issues.autojs6.com/175)_
141+
* `修复` Android 7.x 发现新版本时无法获取版本详情的问题
142+
* `修复` Android 14 申请截图权限时导致应用崩溃的问题
143+
* `修复` 主页抽屉快速切换 "浮动按钮" 开关时可能导致应用崩溃的问题
144+
* `修复` 使用菜单关闭浮动按钮时重启应用后浮动按钮可能依然显示的问题
145+
* `修复` 安卓 13 及以上系统设置页面选择并切换 AutoJs6 语言后无法生效的问题
146+
* `修复` 构建工具初次构建时无法自动完成 OpenCV 资源部署的问题
147+
* `优化` 原生化 bridges 模块以提升脚本执行效率 (Ref to [aiselp](https://github.com/aiselp/AutoX/commit/7c41af6d2b9b36d00440a9c8b7e971d025f98327))
148+
* `优化` 重构无障碍服务相关代码以增强无障碍服务的功能稳定性 (实验性) _[`issue #167`](http://issues.autojs6.com/167)_
149+
* `优化` UiObject 和 UiObjectCollection 的打印输出格式
150+
* `优化` 构建工具在构建环境 Gradle JDK 版本不满足要求时作出升级提示
151+
* `优化` 部分依赖或本地库版本调整 _[`CHANGELOG.md`](http://project.autojs6.com/blob/master/app/src/main/assets/doc/CHANGELOG.md#v642)_
152+
134153
# v6.4.1
135154

136155
###### 2023/11/02
@@ -192,27 +211,6 @@ AutoJs6 在 Auto.js 最终项目的基础上, 于 `2021/12/01` 进行二次开
192211
* `优化` 适配 VSCode 插件 1.0.7
193212
* `优化` 部分依赖或本地库版本调整 _[`CHANGELOG.md`](http://project.autojs6.com/blob/master/app/src/main/assets/doc/CHANGELOG.md#v640)_
194213

195-
# v6.3.3
196-
197-
###### 2023/07/21
198-
199-
* `新增` 代码编辑器的代码注释功能 (by [抠脚本人](https://github.com/little-alei)) _[`pr #98`](http://pr.autojs6.com/98)_
200-
* `新增` auto.stateListener 用于无障碍服务连接状态监听 (by [抠脚本人](https://github.com/little-alei)) _[`pr #98`](http://pr.autojs6.com/98)_
201-
* `新增` UiObject 类型添加 nextSibling / lastChild / offset 等方法 (参阅 项目文档 > [控件节点](https://docs.autojs6.com/#/uiObjectType))
202-
* `修复` VSCode 插件在脚本字符总长度超过四位十进制数时无法解析数据的问题 _[`issue #91`](http://issues.autojs6.com/91)_ _[`issue #93`](http://issues.autojs6.com/93)_ _[`issue #100`](http://issues.autojs6.com/100)_ _[`issue #109`](http://issues.autojs6.com/109)_
203-
* `修复` VSCode 插件无法正常保存文件的问题 _[`issue #92`](http://issues.autojs6.com/91)_ _[`issue #94`](http://issues.autojs6.com/93)_
204-
* `修复` 浮动按钮菜单项 "管理无障碍服务" 点击后可能未发生页面跳转的问题
205-
* `修复` runtime.requestPermissions 方法丢失的问题 _[`issue #104`](http://issues.autojs6.com/104)_
206-
* `修复` events.emitter 不支持 MainThreadProxy 参数的问题 _[`issue #103`](http://issues.autojs6.com/103)_
207-
* `修复` 在 _[`pr #78`](http://pr.autojs6.com/78)_ 中存在的代码编辑器无法格式化代码的问题
208-
* `修复` 使用 JavaAdapter 时导致 ClassLoader 调用栈溢出的问题 _[`issue #99`](http://issues.autojs6.com/99)_ _[`issue #110`](http://issues.autojs6.com/110)_
209-
* `优化` 调整模块作用域 (by [aiselp](https://github.com/aiselp)) _[`pr #75`](http://pr.autojs6.com/75)_ _[`pr #78`](http://pr.autojs6.com/78)_
210-
* `优化` 移除发行版本应用启动时的签名校验 (by [LZX284](https://github.com/LZX284)) _[`pr #81`](http://pr.autojs6.com/81)_
211-
* `优化` 在 _[`pr #98`](http://pr.autojs6.com/98)_ 基础上的编辑器代码注释功能的行为, 样式及光标位置处理
212-
* `优化` 在 _[`pr #98`](http://pr.autojs6.com/98)_ 基础上添加代码注释菜单项
213-
* `优化` 适配 VSCode 插件 1.0.6
214-
* `优化` UiObject#parent 方法增加级数参数支持 (参阅 项目文档 > [控件节点](https://docs.autojs6.com/#/uiObjectType))
215-
216214
##### 更多版本历史可参阅
217215

218216
* [CHANGELOG.md](http://changelog.autojs6.com)
@@ -229,12 +227,12 @@ AutoJs6 在 Auto.js 最终项目的基础上, 于 `2021/12/01` 进行二次开
229227

230228
#### Android Studio 准备
231229

232-
下载 `Android Studio Hedgehog | 2023.1.1 RC 2` 版本 (按需选择其一):
230+
下载 `Android Studio Hedgehog | 2023.1.1 RC 3` 版本 (按需选择其一):
233231

234-
- [android-studio-2023.1.1.24-windows.exe](https://redirector.gvt1.com/edgedl/android/studio/install/2023.1.1.24/android-studio-2023.1.1.24-windows.exe) (1.1 GB)
235-
- [android-studio-2023.1.1.24-windows.zip](https://redirector.gvt1.com/edgedl/android/studio/ide-zips/2023.1.1.24/android-studio-2023.1.1.24-windows.zip) (1.1 GB)
232+
- [android-studio-2023.1.1.25-windows.exe](https://redirector.gvt1.com/edgedl/android/studio/install/2023.1.1.25/android-studio-2023.1.1.25-windows.exe) (1.1 GB)
233+
- [android-studio-2023.1.1.25-windows.zip](https://redirector.gvt1.com/edgedl/android/studio/ide-zips/2023.1.1.25/android-studio-2023.1.1.25-windows.zip) (1.1 GB)
236234

237-
>: 上述版本发布时间为 20231030 日. 如需下载其他版本, 或上述链接已失效, 可访问 [Android Studio 发行版本归档](https://developer.android.com/studio/archive?hl=en) 页面.
235+
>: 上述版本发布时间为 2023119 日. 如需下载其他版本, 或上述链接已失效, 可访问 [Android Studio 发行版本归档](https://developer.android.com/studio/archive?hl=en) 页面.
238236

239237
安装或解压上述文件, 运行 Android Studio 软件 (如 `"D:\android-studio\bin\studio64.exe"`).
240238

@@ -401,11 +399,12 @@ Gradle
401399
- Update badges like [ android studio / rhino / ... ]
402400
- Update android studio download links and version names
403401
- Remove the part like [ alpha / beta / ... ] of VERSION_NAME in version.properties
404-
- Update dependencies information for Android Gradle Plugin in the top-level build.gradle.kts
405-
- Update dependencies TypeScript declarations.
402+
- Update dependencies TypeScript declarations if needed.
406403
- Re-generate documentation by running the python script
407404
- Check the two-way versions for AutoJs6 and VSCode ext, then publish the ext to Microsoft
408405
- Run Gradle task "app:assembleInrtRelease"
409406
- Build APK to determine the final VERSION_BUILD field
407+
- Run Gradle task "app:appendDigestToReleasedFiles"
410408
- Commit and push to GitHub
409+
- Publish the latest release with signed APKs
411410
)

app/build.gradle.kts

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ dependencies /* AppCompat */ {
178178
// implementation("androidx.appcompat:appcompat") {
179179
// version {
180180
// strictly("1.4.2")
181-
// because("version 1.5.0 duplicates some classes")
181+
// because("Version 1.5.0 duplicates some classes")
182182
// }
183183
// }
184184
//
@@ -200,7 +200,7 @@ dependencies /* Material Dialogs */ {
200200
val configuration: (ExternalModuleDependency).() -> Unit = {
201201
version {
202202
prefer("0.9.6.0")
203-
because("not ready to update to version 3.3.0 yet")
203+
because("Not ready to update to version 3.3.0 yet")
204204
}
205205
}
206206
configuration.let {
@@ -234,18 +234,24 @@ dependencies /* View */ {
234234
dependencies /* GitHub API */ {
235235
implementation(files("$rootDir/libs/github-api-1.306.jar"))
236236

237-
implementation("commons-io:commons-io:2.14.0")
237+
implementation("commons-io:commons-io") {
238+
because("Compatibility for Android API Level < 26 (Android 8.0) [O]")
239+
version {
240+
strictly("2.8.0")
241+
because("Exception on newer versions: 'NoClassDefFoundError: org.apache.commons.io.IOUtils'")
242+
}
243+
}
238244

239245
implementation("com.fasterxml.jackson.core:jackson-databind") {
240-
because("compatibility for Android API Level < 26 (Android 8.0) [O]")
241-
version /* as of Oct 12, 2023 */ {
242-
strictly("2.14.3")
243-
because("Exception on 2.15.x: 'IllegalArgumentException: Unsupported class file major version 63'")
246+
because("Compatibility for Android API Level < 26 (Android 8.0) [O]")
247+
version {
248+
strictly("2.13.3")
249+
because("Exception on 2.14.x: 'No virtual method getParameterCount()I in class Ljava/lang/reflect/Method'")
244250
}
245251
}
246252

247253
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.3") {
248-
because("compatibility of java.time.* for Android API Level < 26 (Android 8.0) [O]")
254+
because("Compatibility of java.time.* for Android API Level < 26 (Android 8.0) [O]")
249255
}
250256
}
251257

@@ -488,22 +494,13 @@ android {
488494
javaCompileOptions {
489495
annotationProcessorOptions {
490496
mapOf(
491-
"resourcePackageName" to (this@defaultConfig.applicationId
492-
?: this@Build_gradle.applicationId),
497+
"resourcePackageName" to (this@defaultConfig.applicationId ?: this@Build_gradle.applicationId),
493498
"androidManifestFile" to ("$projectDir/src/main/AndroidManifest.xml")
494499
).let { arguments(it) }
495500
}
496501
}
497-
buildConfigField(
498-
"String",
499-
"VERSION_DATE",
500-
"\"${Utils.getDateString("MMM d, yyyy", "GMT+08:00")}\""
501-
)
502-
buildConfigField(
503-
"String",
504-
"VSCODE_EXT_REQUIRED_VERSION",
505-
"\"${versions.vscodeExtRequiredVersion}\""
506-
)
502+
buildConfigField("String", "VERSION_DATE", "\"${Utils.getDateString("MMM d, yyyy", "GMT+08:00")}\"")
503+
buildConfigField("String", "VSCODE_EXT_REQUIRED_VERSION", "\"${versions.vscodeExtRequiredVersion}\"")
507504
}
508505

509506
applicationVariants.all {

0 commit comments

Comments
 (0)