Skip to content

Commit

Permalink
6.3.1 - 新增发布通知权限 / WS 实例创建; 修复 floaty 模块异常 / 安卓 7.x 异常; UI 模式增强; 迁移至 …
Browse files Browse the repository at this point in the history
…View Binding
  • Loading branch information
SuperMonster003 committed May 26, 2023
1 parent 31ebd5b commit 1755ae3
Show file tree
Hide file tree
Showing 511 changed files with 12,610 additions and 11,106 deletions.
53 changes: 36 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,38 @@

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

# v6.3.1

###### 2023/05/26

* `新增` 发布通知权限及主页抽屉开关 _[`issue #55`](http://issues.autojs6.com/55)_
* `新增` UI 模式支持简单的 Android 布局解析 (参阅 示例代码 > 布局 > 简单安卓布局)
* `新增` UI 模式增加 console / imagebutton / ratingbar / switch / textclock / togglebutton 等控件
* `新增` UI 模式控件的颜色色值支持 [OmniColor](https://docs.autojs6.com/#/omniTypes?id=omnicolor) 类型 (如 color="orange")
* `新增` UI 模式的控件完全支持 attr 方法设置控件属性 (如 ui.text.attr('color', 'blue'))
* `新增` UI 模式控件支持布尔类型属性值的缺省形式 (如 clickable="true" 可简写为 clickable 或 isClickable)
* `新增` button 控件支持 isColored 及 isBorderless 布尔类型属性
* `新增` console.resetGlobalLogConfig 方法用于重置全局日志配置
* `新增` web.newWebSocket 方法用于创建 Web Socket 实例 (参阅 项目文档 > [万维网](https://docs.autojs6.com/#/web?id=m-newwebsocket))
* `修复` 文件管理器的文件夹排序异常
* `修复` floaty 模块构建的浮动窗口无法调节样式及位置的问题 _[`issue #60`](http://issues.autojs6.com/60)_
* `修复` floaty 模块构建的浮动窗口与系统状态栏重叠的问题
* `修复` http.postMultipart 方法功能异常 _[`issue #56`](http://issues.autojs6.com/56)_
* `修复` Android 7.x 无法运行任何脚本的问题 _[`issue #61`](http://issues.autojs6.com/61)_
* `修复` sign.property 文件不存在时无法构建项目的问题
* `修复` 高版本系统 AutoJs6 置于后台时可能因无前台通知权限而崩溃的问题 (API >= 33)
* `修复` 调用 console.show 方法后日志窗口点击 FAB 按钮无法清空日志的问题
* `修复` 脚本编辑器调试时出现的 prototype 空指针异常
* `修复` 脚本编辑器运行脚本时在缓存文件夹运行临时脚本而非先保存再在原始位置运行以避免可能的脚本内容丢失问题
* `修复` 调整布局层次分析的层级色条宽度避免层级过多时控件名称无法显示的问题 _[`issue #46`](http://issues.autojs6.com/46)_
* `优化` 布局分析浮动窗口增加退出按钮以关闭窗口 _[`issue #63`](http://issues.autojs6.com/63)_
* `优化` 脚本绝对路径使用简称形式以缩减文本长度并增加可读性
* `优化`Error 替换为 Exception 避免出现异常时 AutoJs6 应用崩溃
* `优化` 视图 (View) 绑定方式由 ButterKnife 迁移至 View Binding _[`issue #48`](http://issues.autojs6.com/48)_
* `优化` 服务端模式非正常关闭时将于 AutoJs6 启动时自动开启 _[`issue #64`](http://issues.autojs6.com/64)_
* `优化` 客户端模式非正常关闭时将于 AutoJs6 启动时按最近一次的历史地址自动连接
* `优化` 部分依赖或本地库版本调整 _[`CHANGELOG.md`](http://project.autojs6.com/blob/master/app/src/main/assets/doc/CHANGELOG.md#v631)_

# v6.3.0

###### 2023/04/29
Expand Down Expand Up @@ -259,19 +291,6 @@
* `优化` 重新设计 colors 全局对象并增加 HSV / HSL 等色彩模式支持 (参阅 项目文档 > [颜色](https://docs.autojs6.com/#/color))
* `优化` 部分依赖或本地库版本调整 _[`CHANGELOG.md`](http://project.autojs6.com/blob/master/app/src/main/assets/doc/CHANGELOG.md#v620)_

# v6.1.1

###### 2022/05/31

* `新增` 检查更新/下载更新/更新提示功能 (参阅 设置页面) (暂不支持安卓 7.x 系统)
* `修复` 应用在安卓 10 系统无法读写外部存储的问题 _[`issue #17`](http://issues.autojs6.com/17)_
* `修复` 编辑器页面长按时可能导致应用崩溃的问题 _[`issue #18`](http://issues.autojs6.com/18)_
* `修复` 编辑器页面长按菜单 "删除行""复制行" 功能无效的问题
* `修复` 编辑器页面选项菜单中 "粘贴" 功能缺失的问题
* `优化` 部分异常消息字符串资源化 (en / zh)
* `优化` 调整内容未保存对话框的按钮布局并增加颜色区分
* `优化` 部分依赖或本地库版本调整 _[`CHANGELOG.md`](http://project.autojs6.com/blob/master/app/src/main/assets/doc/CHANGELOG.md#v611)_

##### 更多版本历史可参阅

* [CHANGELOG.md](http://changelog.autojs6.com)
Expand All @@ -297,12 +316,12 @@

#### Android Studio 准备

下载 `Android Studio Flamingo | 2022.2.1` 版本 (按需选择其一):
下载 `Android Studio Flamingo | 2022.2.1 Patch 2` 版本 (按需选择其一):

- [android-studio-2022.2.1.18-windows.exe](https://redirector.gvt1.com/edgedl/android/studio/install/2022.2.1.18/android-studio-2022.2.1.18-windows.exe) (1.0 GB)
- [android-studio-2022.2.1.18-windows.zip](https://redirector.gvt1.com/edgedl/android/studio/ide-zips/2022.2.1.18/android-studio-2022.2.1.18-windows.zip) (1.0 GB)
- [android-studio-2022.2.1.20-windows.exe](https://redirector.gvt1.com/edgedl/android/studio/install/2022.2.1.20/android-studio-2022.2.1.20-windows.exe) (1.0 GB)
- [android-studio-2022.2.1.20-windows.zip](https://redirector.gvt1.com/edgedl/android/studio/ide-zips/2022.2.1.20/android-studio-2022.2.1.20-windows.zip) (1.0 GB)

>: 如需下载其他版本, 或上述链接已失效, 可前往 [Android Studio 发行版本归档](https://developer.android.com/studio/archive) 页面.
>: 上述版本发布时间为 2023524 日. 如需下载其他版本, 或上述链接已失效, 可访问 [Android Studio 发行版本归档](https://developer.android.com/studio/archive) 页面.

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

Expand Down
47 changes: 25 additions & 22 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ plugins {

dependencies /* Unclassified */ {
// LeakCanary
debugImplementation("com.squareup.leakcanary:leakcanary-android:2.10")
debugImplementation("com.squareup.leakcanary:leakcanary-android:2.11")

// Android supports
implementation("androidx.cardview:cardview:1.0.0")
implementation("androidx.multidex:multidex:2.0.1")
implementation("com.google.android.material:material:1.8.0")
implementation("com.google.android.material:material:1.9.0")

// SwipeRefreshLayout
implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0")
Expand Down Expand Up @@ -60,10 +60,10 @@ dependencies /* Unclassified */ {
implementation(project(":libs:com.tencent.bugly.crashreport-4.0.4"))

// OkHttp
implementation("com.squareup.okhttp3:okhttp:5.0.0-alpha.9")
implementation("com.squareup.okhttp3:okhttp:5.0.0-alpha.11")

// Webkit
implementation("androidx.webkit:webkit:1.6.1")
implementation("androidx.webkit:webkit:1.7.0")

// Gson
implementation("com.google.code.gson:gson:2.10.1")
Expand All @@ -76,6 +76,7 @@ dependencies /* Unclassified */ {
implementation("log4j:log4j:1.2.17")

// Preference
implementation("androidx.preference:preference:1.2.0")
implementation("androidx.preference:preference-ktx:1.2.0")

// RootShell
Expand Down Expand Up @@ -138,10 +139,6 @@ dependencies /* Annotations */ {
// JCIP Annotations
implementation("net.jcip:jcip-annotations:1.0")

// ButterKnife
kapt("com.jakewharton:butterknife-compiler:10.2.3")
implementation("com.jakewharton:butterknife:10.2.3")

// EventBus
implementation("org.greenrobot:eventbus:3.3.1")
}
Expand Down Expand Up @@ -218,7 +215,7 @@ dependencies /* GitHub API */ {
}

dependencies /* MLKit */ {
implementation("com.google.mlkit:text-recognition-chinese:16.0.0-beta6")
implementation("com.google.mlkit:text-recognition-chinese:16.0.0")
}

dependencies /* Auto.js Extensions */ {
Expand Down Expand Up @@ -319,21 +316,27 @@ android {
}

buildTypes {
arrayOf(
val proguardFiles = arrayOf(
getDefaultProguardFile("proguard-android.txt"),
"proguard-rules.pro",
).let { proguardFiles ->
getByName("release") {
isMinifyEnabled = false
proguardFiles(*proguardFiles)
signingConfig = takeIf { sign.isValid }?.let { signingConfigs.getByName("release") }
}
getByName("debug") {
isMinifyEnabled = getByName("release").isMinifyEnabled
proguardFiles(*proguardFiles)
signingConfig = getByName("release").signingConfig
}
)
val niceSigningConfig = takeIf { sign.isValid }?.let {
signingConfigs.getByName("release")
}
getByName("release") {
isMinifyEnabled = false
proguardFiles(*proguardFiles)
niceSigningConfig?.let { signingConfig = it }
}
getByName("debug") {
isMinifyEnabled = getByName("release").isMinifyEnabled
proguardFiles(*proguardFiles)
niceSigningConfig?.let { signingConfig = it }
}
}

buildFeatures {
viewBinding = true
}

defaultConfig {
Expand All @@ -348,7 +351,7 @@ android {
).let { arguments(it) }
}
}
buildConfigField("String", "VERSION_DATE", "\"${Utils.getDateString("MMM dd, yyyy", "GMT+08:00")}\"")
buildConfigField("String", "VERSION_DATE", "\"${Utils.getDateString("MMM d, yyyy", "GMT+08:00")}\"")
}

applicationVariants.all {
Expand Down
2 changes: 2 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
-keep class org.greenrobot.eventbus.** { *; }
-keep class * extends c
-keepattributes *Annotation*
-keepattributes SourceFile,LineNumberTable
# Event bus
-keepclassmembers class ** {
@org.greenrobot.eventbus.Subscribe <methods>;
Expand Down Expand Up @@ -108,6 +109,7 @@

-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
public <init>(android.content.Context, android.util.AttributeSet, int, int);
}
# Google Play Services library
-keep class * extends java.util.ListResourceBundle {
Expand Down
35 changes: 19 additions & 16 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@

<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />

<!-- To allow posting notifications on Android 13. -->
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>

<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />

<uses-permission
Expand Down Expand Up @@ -122,7 +125,7 @@
</activity>

<activity
android:name="org.autojs.autojs.ui.main.MainActivity_"
android:name="org.autojs.autojs.ui.main.MainActivity"
android:launchMode="singleTask"
android:theme="@style/AppTheme.FullScreen" />

Expand Down Expand Up @@ -151,44 +154,44 @@
</provider>

<activity
android:name="org.autojs.autojs.ui.edit.EditActivity_"
android:name="org.autojs.autojs.ui.edit.EditActivity"
android:configChanges="orientation|keyboardHidden|screenSize|locale"
android:launchMode="standard"
android:multiprocess="true"
android:taskAffinity="org.autojs.autojs.edit"
android:theme="@style/EditorTheme" />

<activity
android:name="org.autojs.autojs.ui.settings.AboutActivity_"
android:name="org.autojs.autojs.ui.settings.AboutActivity"
android:theme="@style/AppTheme.Settings" />

<activity
android:name="org.autojs.autojs.ui.settings.SettingsActivity_"
android:name="org.autojs.autojs.ui.settings.PreferencesActivity"
android:theme="@style/AppTheme.Settings" />

<activity
android:name="org.autojs.autojs.ui.settings.DeveloperOptionsActivity_"
android:name="org.autojs.autojs.ui.settings.DeveloperOptionsActivity"
android:theme="@style/AppTheme.Settings" />

<activity android:name="org.autojs.autojs.ui.error.ErrorReportActivity" />

<activity
android:name="org.autojs.autojs.external.tasker.TaskerScriptEditActivity_"
android:name="org.autojs.autojs.external.tasker.TaskerScriptEditActivity"
android:configChanges="orientation|keyboardHidden|screenSize|locale" />

<activity
android:name="org.autojs.autojs.ui.project.BuildActivity_"
android:name="org.autojs.autojs.ui.project.BuildActivity"
android:configChanges="orientation|keyboardHidden|screenSize|locale" />

<activity android:name="org.autojs.autojs.ui.project.ProjectConfigActivity_" />
<activity android:name="org.autojs.autojs.ui.project.ProjectConfigActivity" />

<activity android:name="org.autojs.autojs.ui.log.LogActivity_" />
<activity android:name="org.autojs.autojs.ui.log.LogActivity" />

<activity
android:name="org.autojs.autojs.ui.doc.DocumentationActivity_"
android:name="org.autojs.autojs.ui.doc.DocumentationActivity"
android:label="@string/docs_app_name"
android:icon="@drawable/ic_docs_app"
android:taskAffinity="org.autojs.autojs.ui.doc.DocumentationActivity_"
android:taskAffinity="org.autojs.autojs.ui.doc.DocumentationActivity"
android:theme="@style/AppTheme.FullScreen"
android:exported="true">

Expand All @@ -202,16 +205,16 @@

</activity>

<activity android:name="org.autojs.autojs.ui.shortcut.AppsIconSelectActivity_" />
<activity android:name="org.autojs.autojs.ui.shortcut.AppsIconSelectActivity" />

<activity android:name="org.autojs.autojs.ui.timing.TimedTaskSettingActivity_" />
<activity android:name="org.autojs.autojs.ui.timing.TimedTaskSettingActivity" />

<activity
android:name="org.autojs.autojs.ui.shortcut.ShortcutCreateActivity"
android:theme="@style/AppTheme.Transparent" />

<activity
android:name="org.autojs.autojs.external.widget.ScriptWidgetSettingsActivity_"
android:name="org.autojs.autojs.external.widget.ScriptWidgetSettingsActivity"
android:exported="false">

<intent-filter>
Expand All @@ -234,7 +237,7 @@

<service android:name="org.autojs.autojs.external.ScriptExecutionIntentService" />

<activity android:name="org.autojs.autojs.external.tasker.TaskPrefEditActivity_" />
<activity android:name="org.autojs.autojs.external.tasker.TaskPrefEditActivity" />

<service
android:name="org.autojs.autojs.external.tile.LayoutBoundsTile"
Expand Down Expand Up @@ -275,7 +278,7 @@
android:exported="true"
android:icon="@drawable/autojs6_material"
android:label="@string/app_name"
android:targetActivity="org.autojs.autojs.external.tasker.TaskPrefEditActivity_"
android:targetActivity="org.autojs.autojs.external.tasker.TaskPrefEditActivity"
tools:ignore="ExportedActivity">

<intent-filter>
Expand Down
38 changes: 37 additions & 1 deletion app/src/main/assets/doc/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,42 @@

******

# v6.3.1

###### 2023/05/26

* `新增` 发布通知权限及主页抽屉开关 _[`issue #55`](http://issues.autojs6.com/55)_
* `新增` UI 模式支持简单的 Android 布局解析 (参阅 示例代码 > 布局 > 简单安卓布局)
* `新增` UI 模式增加 console / imagebutton / ratingbar / switch / textclock / togglebutton 等控件
* `新增` UI 模式控件的颜色色值支持 [OmniColor](https://docs.autojs6.com/#/omniTypes?id=omnicolor) 类型 (如 color="orange")
* `新增` UI 模式的控件完全支持 attr 方法设置控件属性 (如 ui.text.attr('color', 'blue'))
* `新增` UI 模式控件支持布尔类型属性值的缺省形式 (如 clickable="true" 可简写为 clickable 或 isClickable)
* `新增` button 控件支持 isColored 及 isBorderless 布尔类型属性
* `新增` console.resetGlobalLogConfig 方法用于重置全局日志配置
* `新增` web.newWebSocket 方法用于创建 Web Socket 实例 (参阅 项目文档 > [万维网](https://docs.autojs6.com/#/web?id=m-newwebsocket))
* `修复` 文件管理器的文件夹排序异常
* `修复` floaty 模块构建的浮动窗口无法调节样式及位置的问题 _[`issue #60`](http://issues.autojs6.com/60)_
* `修复` floaty 模块构建的浮动窗口与系统状态栏重叠的问题
* `修复` http.postMultipart 方法功能异常 _[`issue #56`](http://issues.autojs6.com/56)_
* `修复` Android 7.x 无法运行任何脚本的问题 _[`issue #61`](http://issues.autojs6.com/61)_
* `修复` sign.property 文件不存在时无法构建项目的问题
* `修复` 高版本系统 AutoJs6 置于后台时可能因无前台通知权限而崩溃的问题 (API >= 33)
* `修复` 调用 console.show 方法后日志窗口点击 FAB 按钮无法清空日志的问题
* `修复` 脚本编辑器调试时出现的 prototype 空指针异常
* `修复` 脚本编辑器运行脚本时在缓存文件夹运行临时脚本而非先保存再在原始位置运行以避免可能的脚本内容丢失问题
* `修复` 调整布局层次分析的层级色条宽度避免层级过多时控件名称无法显示的问题 _[`issue #46`](http://issues.autojs6.com/46)_
* `优化` 布局分析浮动窗口增加退出按钮以关闭窗口 _[`issue #63`](http://issues.autojs6.com/63)_
* `优化` 脚本绝对路径使用简称形式以缩减文本长度并增加可读性
* `优化` 将 Error 替换为 Exception 避免出现异常时 AutoJs6 应用崩溃
* `优化` 视图 (View) 绑定方式由 ButterKnife 迁移至 View Binding _[`issue #48`](http://issues.autojs6.com/48)_
* `优化` 服务端模式非正常关闭时将于 AutoJs6 启动时自动开启 _[`issue #64`](http://issues.autojs6.com/64)_
* `优化` 客户端模式非正常关闭时将于 AutoJs6 启动时按最近一次的历史地址自动连接
* `优化` 升级 Leakcanary 版本 2.10 -> 2.11
* `优化` 升级 Android Material 版本 1.8.0 -> 1.9.0
* `优化` 升级 Androidx WebKit 版本 1.6.1 -> 1.7.0
* `优化` 升级 Okhttp3 版本 3.10.0 -> 5.0.0-alpha.9 -> 5.0.0-alpha.11
* `优化` 升级 MLKit Text Recognition Chinese 版本 16.0.0-beta6 -> 16.0.0

# v6.3.0

###### 2023/04/29
Expand Down Expand Up @@ -347,7 +383,7 @@
* `新增` 主页抽屉底部增加重启应用按钮
* `新增` 主页抽屉增加忽略电池优化/显示在其他应用上层等开关
* `修复` 应用初始安装后部分区域主题颜色渲染异常的问题
* `修复` sign.property 不存在时无法 build 的问题
* `修复` sign.property 文件不存在时无法构建项目的问题
* `修复` 定时任务面板一次性任务的月份存取错误
* `修复` 应用设置页面开关颜色不随主题变更的问题
* `修复` 无法识别打包插件及打包插件下载地址无效的问题
Expand Down
Loading

0 comments on commit 1755ae3

Please sign in to comment.