Skip to content

Commit 770d727

Browse files
6.4.1 - GitHub Actions 支持; 修复屏幕宽高返回数据; 优化构建工具自适应性
1 parent 702522a commit 770d727

File tree

155 files changed

+810
-589
lines changed

Some content is hidden

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

155 files changed

+810
-589
lines changed

.github/workflows/android.yml

Lines changed: 41 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -11,39 +11,44 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v3
15-
- name: set up JDK 20
16-
uses: actions/setup-java@v3
17-
with:
18-
java-version: '20'
19-
distribution: 'temurin'
20-
cache: gradle
21-
22-
- name: Grant execute permission for gradlew
23-
run: chmod +x gradlew
24-
- name: Build with Gradle
25-
run: ./gradlew assembleRelease
26-
27-
- name: Upload arm64 artifacts
28-
id: upload-arm64-apk
29-
uses: actions/upload-artifact@v3
30-
with:
31-
name: release-arm64-apk
32-
path: app/build/outputs/apk/app/release/*arm64-v8a.apk
33-
continue-on-error: true
34-
35-
- name: Upload armv7 artifacts
36-
id: upload-armv7-apk
37-
uses: actions/upload-artifact@v3
38-
with:
39-
name: release-armv7-apk
40-
path: app/build/outputs/apk/app/release/*-v7a.apk
41-
continue-on-error: true
42-
43-
- name: Upload universl artifacts
44-
id: upload-universal-apk
45-
uses: actions/upload-artifact@v3
46-
with:
47-
name: release-universal-apk
48-
path: app/build/outputs/apk/app/release/*universal.apk
49-
continue-on-error: true
14+
- uses: actions/checkout@v3
15+
16+
- name: Set up JDK 20
17+
uses: actions/setup-java@v3
18+
with:
19+
java-version: '20'
20+
distribution: 'temurin'
21+
cache: gradle
22+
23+
- name: Grant execute permission for gradlew
24+
run: chmod +x gradlew
25+
26+
- name: Build with Gradle (assembleInrtRelease)
27+
run: ./gradlew assembleInrtRelease
28+
29+
- name: Build with Gradle (assembleAppRelease)
30+
run: ./gradlew assembleAppRelease
31+
32+
- name: Upload arm64 artifacts
33+
id: upload-arm64-apk
34+
uses: actions/upload-artifact@v3
35+
with:
36+
name: release-arm64-apk
37+
path: app/build/outputs/apk/app/release/*-arm64-v8a.apk
38+
continue-on-error: true
39+
40+
- name: Upload armv7 artifacts
41+
id: upload-armv7-apk
42+
uses: actions/upload-artifact@v3
43+
with:
44+
name: release-armv7-apk
45+
path: app/build/outputs/apk/app/release/*-v7a.apk
46+
continue-on-error: true
47+
48+
- name: Upload universal artifacts
49+
id: upload-universal-apk
50+
uses: actions/upload-artifact@v3
51+
with:
52+
name: release-universal-apk
53+
path: app/build/outputs/apk/app/release/*-universal.apk
54+
continue-on-error: true

README.md

Lines changed: 28 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,26 @@ AutoJs6 在 Auto.js 最终项目的基础上, 于 `2021/12/01` 进行二次开
131131

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

134+
# v6.4.1
135+
136+
###### 2023/11/02
137+
138+
* `修复` 构建工具无法自适应未知平台的问题 (by [TonyJiangWJ](https://github.com/TonyJiangWJ)) _[`pr #158`](http://pr.autojs6.com/158)_
139+
* `修复` 脚本退出时可能导致应用崩溃的问题 _[`issue #159`](http://issues.autojs6.com/159)_
140+
* `修复` http 模块获取响应对象的 body.contentType 返回值类型错误 _[`issue #142`](http://issues.autojs6.com/142)_
141+
* `修复` device.widthdevice.height 返回数据不正确的问题 _[`issue #160`](http://issues.autojs6.com/160)_
142+
* `修复` 代码编辑器长按删除时可能导致应用崩溃的问题 (试修) _[`issue #156`](http://issues.autojs6.com/156)_
143+
* `修复` 代码编辑器反向选择文本后进行常规操作可能导致应用崩溃的问题
144+
* `修复` 部分设备长按 AutoJs6 应用图标无法显示快捷方式菜单的问题
145+
* `修复` 部分设备打包项目时点击确认按钮无响应的问题
146+
* `修复` app.sendBroadcastapp.startActivity 无法使用简称参数的问题
147+
* `修复` floaty 模块 JsWindow#setPosition 等方法首次调用时的功能异常
148+
* `优化` 增加 Termux 相关权限以支持 Intent 调用 Termux 执行 ADB 命令 _[`issue #136`](http://issues.autojs6.com/136)_
149+
* `优化` http 模块获取的响应对象可重复使用 body.string() 及 body.bytes() 方法
150+
* `优化` 增加 GitHub Actions 自动打包支持 (by [TonyJiangWJ](https://github.com/TonyJiangWJ)) _[`pr #158`](http://pr.autojs6.com/158)_
151+
* `优化` 构建工具自适应 Temurin 平台
152+
* `优化` 部分依赖或本地库版本调整 _[`CHANGELOG.md`](http://project.autojs6.com/blob/master/app/src/main/assets/doc/CHANGELOG.md#v641)_
153+
134154
# v6.4.0
135155

136156
###### 2023/10/30
@@ -193,40 +213,6 @@ AutoJs6 在 Auto.js 最终项目的基础上, 于 `2021/12/01` 进行二次开
193213
* `优化` 适配 VSCode 插件 1.0.6
194214
* `优化` UiObject#parent 方法增加级数参数支持 (参阅 项目文档 > [控件节点](https://docs.autojs6.com/#/uiObjectType))
195215

196-
# v6.3.2
197-
198-
###### 2023/07/06
199-
200-
* `新增` crypto 模块 (参阅 项目文档 > [密文](https://docs.autojs6.com/#/crypto)) _[`issue #70`](http://issues.autojs6.com/70)_
201-
* `新增` UI 模式增加 textswitcher / viewswitcher / viewflipper / numberpicker / video / search 等控件
202-
* `新增` 日志活动页面增加复制及导出日志等功能 _[`issue #76`](http://issues.autojs6.com/76)_
203-
* `新增` 客户端模式增加 IP 地址历史记录功能
204-
* `修复` 客户端模式自动连接或服务端模式自动开启后可能无法显示 IP 地址信息的问题
205-
* `修复` 客户端模式及服务端模式连接后在切换语言或夜间模式时连接断开且无法再次连接的问题
206-
* `修复` 客户端模式输入目标地址时无法使用自定义端口的问题
207-
* `修复` 客户端模式输入目标地址时某些字符将导致 AutoJs6 崩溃的问题
208-
* `修复` VSCode 插件远程命令可能出现解析失败造成命令无法响应的问题 (试修)
209-
* `修复` Android 7.x 发现新版本时无法获取版本详情的问题
210-
* `修复` images.pixel 无法获取无障碍服务截图的像素色值的问题 _[`issue #73`](http://issues.autojs6.com/73)_
211-
* `修复` UI 模式 Android 原生控件 (大写字母开头) 无法使用预置控件属性的问题
212-
* `修复` runtime.loadDex/loadJar 加载多个文件时仅第一个文件生效的问题 _[`issue #88`](http://issues.autojs6.com/88)_
213-
* `修复` 部分设备安装应用后启动器仅显示文档图标的问题 (试修) _[`issue #85`](http://issues.autojs6.com/85)_
214-
* `优化` 适配 VSCode 插件 1.0.5
215-
* `优化` 支持 cheerio 模块 (Ref to [aiselp](https://github.com/aiselp/AutoX/commit/7176f5ad52d6904383024fb700bf19af75e22903)) _[`issue #65`](http://issues.autojs6.com/65)_
216-
* `优化` JsWebSocket 实例支持使用 rebuild 方法重新重建实例并建立连接 _[`issue #69`](http://issues.autojs6.com/69)_
217-
* `优化` base64 模块支持 number 数组及 Java 字节数组作为主要参数的编解码
218-
* `优化` 增加对 JavaMail for Android 的支持 _[`issue #71`](http://issues.autojs6.com/71)_
219-
* `优化` 获取版本更新信息时使用 Blob 数据类型以增强无代理网络环境适应性
220-
* `优化` 客户端模式连接过程中在主页抽屉副标题显示目标 IP 地址
221-
* `优化` 客户端模式输入目标地址时支持对不合法的输入进行提示
222-
* `优化` 客户端模式支持使用软键盘回车键建立连接
223-
* `优化` 服务端模式开启后保持常开状态 (除非手动关闭或应用进程结束) _[`issue #64`](http://issues.autojs6.com/64#issuecomment-1596990158)_
224-
* `优化` 实现 AutoJs6 与 VSCode 插件的双向版本检测并提示异常检测结果 _[`issue #89`](http://issues.autojs6.com/89)_
225-
* `优化` 增加短信数据读取权限 (android.permission.READ_SMS) (默认关闭)
226-
* `优化` findMultiColors 方法内部实现 (by [LYS86](https://github.com/LYS86)) _[`pr #72`](http://pr.autojs6.com/72)_
227-
* `优化` runtime.loadDex/loadJar/load 支持按目录级别加载或同时加载多个文件
228-
* `优化` 部分依赖或本地库版本调整 _[`CHANGELOG.md`](http://project.autojs6.com/blob/master/app/src/main/assets/doc/CHANGELOG.md#v632)_
229-
230216
##### 更多版本历史可参阅
231217

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

244230
#### Android Studio 准备
245231

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

248-
- [android-studio-2023.1.1.23-windows.exe](https://redirector.gvt1.com/edgedl/android/studio/install/2023.1.1.23/android-studio-2023.1.1.23-windows.exe) (1.1 GB)
249-
- [android-studio-2023.1.1.23-windows.zip](https://redirector.gvt1.com/edgedl/android/studio/ide-zips/2023.1.1.23/android-studio-2023.1.1.23-windows.zip) (1.1 GB)
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)
250236

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

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

@@ -385,13 +371,13 @@ Gradle
385371

386372
| 贡献人员 | 提交数 | 最近提交 |
387373
|:-----------------------------------------------------:|:-------------------------------------------------------------------------------:|:------------:|
374+
| [TonyJiangWJ](https://github.com/TonyJiangWJ) | [4](https://github.com/SuperMonster003/AutoJs6/commits?author=TonyJiangWJ) | `2023/10/31` |
388375
| [LZX284](https://github.com/LZX284) (Ai) | [13](https://github.com/SuperMonster003/AutoJs6/commits?author=LZX284) | `2023/10/09` |
389-
| [TonyJiangWJ](https://github.com/TonyJiangWJ) | [3](https://github.com/SuperMonster003/AutoJs6/commits?author=TonyJiangWJ) | `2023/08/29` |
390376
| [little-alei](https://github.com/little-alei) (抠脚本人) | [12](https://github.com/SuperMonster003/AutoJs6/commits?author=little-alei) | `2023/07/12` |
391377
| [aiselp](https://github.com/aiselp) | [6](https://github.com/SuperMonster003/AutoJs6/pulls?q=is%3Apr+author%3Aaiselp) | `2023/06/14` |
392378
| [LYS86](https://github.com/LYS86) (LYS) | [2](https://github.com/SuperMonster003/AutoJs6/commits?author=LYS86) | `2023/06/03` |
393379

394-
数据更新于 `2023/10/25`.
380+
数据更新于 `2023/10/31`.
395381

396382
数据条目按 `最近提交` 降序排序.
397383

@@ -411,7 +397,7 @@ Gradle
411397
- README.md
412398
- Latest changelog was synchronized by which in CHANGELOG.md
413399
- Changelog entries are not more than three
414-
- The summary of the latest changelog for committing to Git
400+
- The summary of the latest changelog for committing to Git [ DO NOT commit or push ]
415401
- Update badges like [ android studio / rhino / ... ]
416402
- Update android studio download links and version names
417403
- Remove the part like [ alpha / beta / ... ] of VERSION_NAME in version.properties
@@ -421,4 +407,5 @@ Gradle
421407
- Check the two-way versions for AutoJs6 and VSCode ext, then publish the ext to Microsoft
422408
- Run Gradle task "app:assembleInrtRelease"
423409
- Build APK to determine the final VERSION_BUILD field
410+
- Commit and push to GitHub
424411
)

app/build.gradle.kts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ dependencies /* Unclassified */ {
113113
implementation(project(":libs:jackpal.androidterm-1.0.70"))
114114

115115
// Dex
116-
implementation(files("$rootDir/libs/com.android.dx-1.7.0.jar"))
116+
implementation(files("$rootDir/libs/com.android.dx-1.14.jar"))
117117

118118
// OpenCV
119119
implementation(project(":libs:org.opencv-4.8.0"))
@@ -649,17 +649,11 @@ class Versions(filePath: String) {
649649
private val javaVersionRaw = properties["JAVA_VERSION"] as String
650650
private var javaVersionInfoSuffix = ""
651651
private val javaVersionCeilMap = mapOf(
652-
"as" to mapOf(
653-
/* Empty so far. */
654-
),
655652
"idea" to mapOf(
656653
"2023.2" to javaVersionMinSuggested, /* Aug 17, 2023. */
657654
"2023.1" to javaVersionMinSuggested, /* Aug 17, 2023. */
658655
"2022.3" to javaVersionMinSuggested, /* Aug 17, 2023. */
659656
),
660-
"unknown" to mapOf(
661-
/* Empty for unknown. */
662-
)
663657
)
664658

665659
val javaVersion: JavaVersion by lazy {
@@ -681,7 +675,7 @@ class Versions(filePath: String) {
681675
val platformVersion = gradle.extra["platformVersion"] as String
682676
val platformType = gradle.extra["platformType"] as String
683677

684-
javaVersionCeilMap[platformType]!![platformVersion]?.let { ceil: Int ->
678+
javaVersionCeilMap[platformType]?.get(platformVersion)?.let { ceil: Int ->
685679
if (niceVersionInt > ceil) {
686680
niceVersionInt = ceil
687681
javaVersionInfoSuffix += " [coerced]"

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@
109109

110110
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
111111

112+
<uses-permission android:name="com.termux.permission.RUN_COMMAND" />
113+
112114
<!-- Dangerous permission witch should be treated carefully. -->
113115

114116
<!-- <uses-permission android:name="android.permission.READ_CONTACTS" />-->
@@ -230,8 +232,6 @@
230232
<activity
231233
android:name="org.autojs.autojs.ui.doc.DocumentationActivity"
232234
android:exported="true"
233-
android:label="@string/text_app_shortcut_docs_long_label"
234-
android:taskAffinity="org.autojs.autojs.ui.doc.DocumentationActivity"
235235
android:theme="@style/AppTheme.FullScreen">
236236

237237
<intent-filter>

app/src/main/assets/doc/CHANGELOG.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,31 @@
44

55
******
66

7+
# v6.4.1
8+
9+
###### 2023/11/02
10+
11+
* `修复` 构建工具无法自适应未知平台的问题 (by [TonyJiangWJ](https://github.com/TonyJiangWJ)) _[`pr #158`](http://pr.autojs6.com/158)_
12+
* `修复` 脚本退出时可能导致应用崩溃的问题 _[`issue #159`](http://issues.autojs6.com/159)_
13+
* `修复` http 模块获取响应对象的 body.contentType 返回值类型错误 _[`issue #142`](http://issues.autojs6.com/142)_
14+
* `修复` device.width 及 device.height 返回数据不正确的问题 _[`issue #160`](http://issues.autojs6.com/160)_
15+
* `修复` 代码编辑器长按删除时可能导致应用崩溃的问题 (试修) _[`issue #156`](http://issues.autojs6.com/156)_
16+
* `修复` 代码编辑器反向选择文本后进行常规操作可能导致应用崩溃的问题
17+
* `修复` 部分设备长按 AutoJs6 应用图标无法显示快捷方式菜单的问题
18+
* `修复` 部分设备打包项目时点击确认按钮无响应的问题
19+
* `修复` app.sendBroadcast 及 app.startActivity 无法使用简称参数的问题
20+
* `修复` floaty 模块 JsWindow#setPosition 等方法首次调用时的功能异常
21+
* `优化` 增加 Termux 相关权限以支持 Intent 调用 Termux 执行 ADB 命令 _[`issue #136`](http://issues.autojs6.com/136)_
22+
* `优化` http 模块获取的响应对象可重复使用 body.string() 及 body.bytes() 方法
23+
* `优化` 增加 GitHub Actions 自动打包支持 (by [TonyJiangWJ](https://github.com/TonyJiangWJ)) _[`pr #158`](http://pr.autojs6.com/158)_
24+
* `优化` 构建工具自适应 Temurin 平台
25+
* `依赖` 升级 Android dx 版本 1.11 -> 1.14
26+
727
# v6.4.0
828

929
###### 2023/10/30
1030

11-
* `新增` ocr 模块支持 Paddle Lite 引擎 (by [TonyJiangWJ](https://github.com/TonyJiangWJ)) _[`pr #120`](http://pr.autojs6.com/120)_
31+
* `新增` ocr 模块支持 Paddle Lite 引擎 (by [TonyJiangWJ](https://github.com/TonyJiangWJ)) _[`pr #120`](http://pr.autojs6.com/120)_
1232
* `新增` 打包功能支持内置插件与外部插件两种打包方式 (by [LZX284](https://github.com/LZX284)) _[`pr #151`](http://pr.autojs6.com/151)_
1333
* `新增` WebSocket 模块 (参阅 项目文档 > [WebSocket](https://docs.autojs6.com/#/webSocketType))
1434
* `新增` barcode / qrcode 模块 (参阅 项目文档 > [条码](https://docs.autojs6.com/#/barcode) / [二维码](https://docs.autojs6.com/#/qrcode))
@@ -18,7 +38,7 @@
1838
* `新增` 支持在安卓系统设置页面选择并切换应用语言 (安卓 13 及以上)
1939
* `新增` 支持设置页面添加或长按应用图标激活 [应用快捷方式](https://developer.android.com/guide/topics/ui/shortcuts?hl=zh-cn) , 可启动文档和设置等页面
2040
* `修复` 重新合并部分 PR (by [aiselp](https://github.com/aiselp)) 以解决部分脚本无法正常结束运行的问题 _[`pr #75`](http://pr.autojs6.com/75)_ _[`pr #78`](http://pr.autojs6.com/78)_
21-
* `修复` 打包应用无法使用 AutoJs6 新增 API 的问题 (by [LZX284](https://github.com/LZX284)) _[`pr #151`](http://pr.autojs6.com/151)_
41+
* `修复` 打包应用无法使用 AutoJs6 新增 API 的问题 (by [LZX284](https://github.com/LZX284)) _[`pr #151`](http://pr.autojs6.com/151)_ _[`issue #149`](http://issues.autojs6.com/149)_
2242
* `修复` 打包应用在系统夜间模式下的样式异常
2343
* `修复` VSCode 插件保存文件到本地时文件扩展名信息丢失的问题
2444
* `修复` 使用协程特性运行项目产生未捕获异常致使应用崩溃的问题

app/src/main/assets/docs/404.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5-
<title>页面不存在 | AutoJs6 文档 - 6.4.0</title>
5+
<title>页面不存在 | AutoJs6 文档 - 6.4.1</title>
66
<link rel="stylesheet" href="assets/fonts.css">
77
<link rel="stylesheet" href="assets/style.css">
88
<link rel="stylesheet" href="assets/sh.css">
@@ -160,7 +160,7 @@
160160

161161
<div id="column1" data-id="404" class="interior">
162162
<header>
163-
<h1>AutoJs6 文档 - 6.4.0</h1>
163+
<h1>AutoJs6 文档 - 6.4.1</h1>
164164
<div id="gtoc">
165165
<p class="index">
166166
<a href="index.html" name="toc">索引</a> |

app/src/main/assets/docs/activity.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5-
<title>活动 (Activity) | AutoJs6 文档 - 6.4.0</title>
5+
<title>活动 (Activity) | AutoJs6 文档 - 6.4.1</title>
66
<link rel="stylesheet" href="assets/fonts.css">
77
<link rel="stylesheet" href="assets/style.css">
88
<link rel="stylesheet" href="assets/sh.css">
@@ -160,7 +160,7 @@
160160

161161
<div id="column1" data-id="activity" class="interior">
162162
<header>
163-
<h1>AutoJs6 文档 - 6.4.0</h1>
163+
<h1>AutoJs6 文档 - 6.4.1</h1>
164164
<div id="gtoc">
165165
<p class="index">
166166
<a href="index.html" name="toc">索引</a> |

0 commit comments

Comments
 (0)