Commit Graph

79 Commits

Author SHA1 Message Date
github-actions[bot]
1e0d66cf7d chore: Auto update by pre-commit hooks
https://github.com/MaaAssistantArknights/MaaAssistantArknights/actions/runs/25763261294
[skip changelog]
2026-05-12 21:29:51 +00:00
Aliothmoon
c6f930a60d feat: support native android (#16179)
* feat: add android controller support

* feat: add android compile options and add core static options

* fix: add __ANDROID__ macro for Android platform

* fix: move switch break into macro conditional block

* ci: add Android CMake presets (arm64, x64)

* fix: add missing Android TouchMode handling

* fix: remove unnecessary pre-check in android

* fix: restore unnecessary modifications

* fix: unified use __ANDROID__

* refactor: use interpolate_swipe_with_pause in AndroidController

* feat: add Android crash logcat output and native backtrace

* feat: only copy once from external lib screencap

* feat: add Android JNI AttachThread/DetachThread to working_proc

* fix: break control in switch

* fix: update click interval & swipe interval

* ci: restore Android build job with MaaFramework download

* fix: remove thread attach

* ci: temporarily remove MaaAndroidNativeControlUnit.so

* feat(android-ctrl): SWIPE_WITH_PAUSE 由 InstanceOption DeploymentWithPause 控制

* feat: SWIPE_WITH_PAUSE 默认启用

* feat: add android compile options and add core static options

* feat: use maafw controll unit

* fix: minor adjustments

* refactor: adapt maafw android lib

* fix: remove screencap when connect

* chore: change maafw lib use

* feat: adapt maafw control unit click & click_key

* fix: address critical issues in Android native controller

- Restore InstanceOptionKey::ClientType case in set_instance_option,
  which was accidentally removed and broke client type setting on all platforms
- Enable libMaaAndroidNativeControlUnit.so copy step in CI (was commented out),
  so Android artifacts actually include the required control unit library
- Fail connect() early when screen_resolution is missing or invalid in config,
  preventing silent {0,0} resolution that would break swipe and screencap
- Check touch_down() return value in swipe() and abort on failure

* fix: correct bounds_check off-by-one and extract KEYCODE_ESCAPE constant

- bounds_check used <= which allowed coordinates equal to screen width/height
  (off-screen); use < to match the valid range [0, dimension-1]
- Extract magic number 111 into KEYCODE_ESCAPE constexpr in press_esc()

* fix: avoid heap allocation in noexcept terminate/signal handlers

format_signal_reason was returning std::string and using std::format in
its default branch. Called from noexcept custom_terminate_handler before
the outer try block, any allocation failure would throw std::bad_alloc,
triggering recursive std::terminate and aborting crash reporting.

- Change return type to const char* noexcept, returning string literals
- Replace std::format("Signal {}", sig) with "Unknown Signal" (only the
  four registered signals are ever passed, so this branch is unreachable)
- Change signal_info in custom_terminate_handler from std::string to
  const char*, eliminating all allocations on the pre-try path

* fix: suppress unused-variable warning for signal_reason on non-Android
2026-05-12 22:15:15 +08:00
srdr0p
1b1bc15aca feat: 支持腾讯应用宝 5.10.56.xx (#16292)
* feat(connection): 新增腾讯应用宝模拟器支持

在 WinAdapter 和 config.json 中添加应用宝(Androws)模拟器入口。
本次仅支持 ADB Input 方式和官方渠道。

同步更新各语言连接文档(zh/en/ja/ko/tw)及 UI 本地化字符串。

* feat(controller): 为腾讯应用宝新增多渠道与 Minitouch 支持

应用宝的应用与 DisplayId 绑定,需在 connect() 前确定包名。
新增 InstanceOptionKey::ClientType (= 6),经由
AsstSetInstanceOption -> Assistant::set_instance_option
-> Controller::set_client_type 传递渠道信息;
AdbController::connect 在建立连接时通过 ctrler()->get_client_type()
读取并写入 AdbConnectionContext,用于替换命令模板中的 [PackageName]。

引入 AdbConnectionContext 保存 ADB 连接信息供 Minitouch 使用,
并通过 eventId 标识所绑定的输入设备。
2026-04-26 23:48:24 +08:00
Frog Chen
1a13932f05 feat: AVD截图增强 (#15608)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-03-18 16:11:58 +08:00
github-actions[bot]
ecd4a33f8d chore: Auto update by pre-commit hooks
https://github.com/MaaAssistantArknights/MaaAssistantArknights/actions/runs/21118556393
[skip changelog]
2026-01-18 21:04:18 +00:00
MistEO
a11660cbac feat(PC): 支持 PC 端明日方舟 (#15407)
* feat(controller): 集成 MaaWin32ControlUnit 支持 Win32 窗口截图与控制

- 提取公共滑动插值逻辑到 SwipeHelper.hpp,重构 Minitouch/PlayTools 控制器
- 新增 Win32ControlUnitLoader 动态加载 MaaWin32ControlUnit.dll
- 新增 Win32Controller 实现 ControllerAPI,适配 touch_down/move/up 接口
- 添加 AsstAsyncAttachWindow 公开 API 用于绑定 Win32 窗口
- 添加 Win32 截图/输入方式的类型定义和枚举常量

* feat(api): 增加同步版本的 AsstAttachWindow 接口

模仿 AsstConnect 实现同步绑定 Win32 窗口的接口,方便简单场景下直接调用。
该接口标记为 deprecated,建议使用异步版本 AsstAsyncAttachWindow。

* fix: can build MaaCore

* feat: 完成整体适配

* feat(ci): 添加 MaaFramework Win32ControlUnit 下载步骤

使用 robinraju/release-downloader 从 MaaFramework 最新 release 下载
win-x64 版本并提取 MaaWin32ControlUnit 到构建产物中

* docs: 添加 Win32Controller 调试所需 MaaWin32ControlUnit 的说明

在开发文档的环境配置步骤中说明调试 Win32Controller 需要手动下载
MaaWin32ControlUnit.dll,并欢迎社区贡献自动下载脚本

* fix(i18n): 修改 UseAttachWindowWarning 措辞为"仅供尝鲜"

* fix: 小细节修复

* ci: fix maafw filename

* feat: PC 移至连接配置

* feat: 调整描述

* chore: 调整 PC 在连接配置中的顺序

* feat: 设置指引和开始唤醒界面 PC 选项绑定

---------

Co-authored-by: uye <99072975+ABA2396@users.noreply.github.com>
2026-01-18 21:17:59 +08:00
github-actions[bot]
a2f217db87 chore: Auto update by pre-commit hooks
https://github.com/MaaAssistantArknights/MaaAssistantArknights/actions/runs/20865488969
[skip changelog]
2026-01-09 21:04:51 +00:00
uye
1d23425744 rft: 重构自动战斗标签页逻辑, 拆分悖论模拟任务 (#15327)
* fix: 自动战斗切换至其他活动时不会取消战斗列表

* fix: 运行时禁止切换标签页

* fix: 调整悖论模拟检查顺序

* chore: 移除视频识别

* rft: 重构自动战斗选项页,增加列表混用与类型检查

* feat: 切换标签页时清空作业输入框

* chore: 添加注释

* refactor: 移除 CopilotItemViewModel 中的 Index 属性并更新相关逻辑 (#15328)

* rft: 重构拆分悖论模拟任务

* fix: stage_name

* Revert "refactor: 移除 CopilotItemViewModel 中的 Index 属性并更新相关逻辑 (#15328)"

This reverts commit bbdca4ebcb.

* fix: Wpf 自动战斗-战斗列表 拖动后index错误

* i18n: zh-tw

* i18n: KR

* i18n: EN

* i18n: JP

* style: 空格

---------

Co-authored-by: yali-hzy <48376189+yali-hzy@users.noreply.github.com>
Co-authored-by: status102 <102887808+status102@users.noreply.github.com>
Co-authored-by: HX3N <scarlet7518@gmail.com>
Co-authored-by: Constrat <56174894+Constrat@users.noreply.github.com>
2026-01-09 21:16:16 +08:00
MistEO
640eed10e2 refactor: use MaaUtils instead of Utils (#14579)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-11-02 23:19:38 +08:00
MistEO
5c0445d3ab refactor: 依赖大更新 (#13908)
Co-authored-by: status102 <102887808+status102@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-09-08 21:17:47 +08:00
uye
5fdd64a1eb feat: 新增返回 bgr byte[] 数据接口,大幅降低 peep 性能占用 2025-07-10 21:35:43 +08:00
status102
59f1ec7be4 Revert "rft: 任务执行期间Log Rotate增加检查,并上调阈值至64MiB (#11670)"
This reverts commit aa97deef9b.

Revert "fix: rotate_check 位置错误"

This reverts commit d9856d96ff.

Revert "chore: 单独为肉鸽添加日志检查"

This reverts commit 5f70c92f97.

Revert "chore: 移除过于消耗性能的检查"

This reverts commit 8198017f9c.

fix #11801
2025-02-08 19:20:44 +08:00
status102
aa97deef9b rft: 任务执行期间Log Rotate增加检查,并上调阈值至64MiB (#11670)
* fix: Log Rotate在任务执行期间不进行检查导致单体log文件过大

* fix: unsigned type

* perf: 加锁

* perf: 加锁优化

* perf: 上调log单文件大小至64MiB

* perf: 继续优化

* perf: 优化加锁

* fix: 64MB
2025-01-30 23:13:02 +08:00
pre-commit-ci[bot]
ce02c80498 chore: Auto update by pre-commit hooks [skip changelog] 2024-10-22 08:40:28 +00:00
dantmnf
002e4b781c feat: GPU acceleration (DX12/DirectML)
Co-authored-by: SherkeyXD <253294679@qq.com>
2024-06-14 18:26:41 +08:00
dantmnf
636c6931d9 fix: check before destroy callback 2024-06-11 23:42:17 +08:00
dantmnf
20a5574780 feat: Wine 支持 (#8960)
* feat: WineRuntimeInformation

* fix: system theme crash under wine

* refactor: toast notification

* feat: add destory callback

* feat: detect winegcc

* feat: use native MaaCore under Wine

* feat: libnotify integration

* chore: disable hardware accelration under Wine

* fix: distorted icon under Wine

* chore: use Environment.ProcessPath instead of cursed alternatives

* chore: don't filter *.exe when using native MaaCore

* chore: force Aero2 theme

* chore: allow build MaaWpfGui without Windows

You need to extract native .NET SDK on top of Windows .NET SDK to get a working WPF SDK.

* feat: fontconfig integration

* docs: run MaaWpfGui under Wine
2024-05-12 23:27:46 +08:00
ManicSteiner
f734464a52 feat: 返回桌面&模拟器返回桌面 2023-11-03 23:37:43 +08:00
MistEO
4f1bf344c4 feat: support GPU OCR 2023-10-11 17:44:18 +08:00
status102
758459f9c8 perf: Core不再缓存理智结果,Gui缓存理智读取结果,刷理智合并理智输出和战斗次数输出 2023-09-26 21:35:38 +08:00
zzyyyl
10f22a5a08 feat: 将理智数据用 object 而不是 array 存储 2023-09-25 19:18:51 +08:00
zzyyyl
65be3a5c4b fix: 修复理智数据的一系列问题 2023-09-25 15:19:50 +08:00
status102
e6035a6dae fix: 在Core检查理智获取数据合法性
fix #6519
2023-09-25 14:47:38 +08:00
status102
2a2a91ceed feat: 如果任务流程中勾选了刷理智,则在任务链结束时提供一个理智回满的预测时间 2023-09-20 17:18:19 +08:00
status102
9d455462f6 fix: 修复Status缓存跨任务清理在任务链正常完成情况下失效的错误 2023-09-18 10:09:56 +08:00
MistEO
49b84d5af8 fix: 修复start后 running 状态不变的问题 2023-07-02 23:43:29 +08:00
MistEO
8277fba8ee fix: 修复running不准确的问题 2023-06-29 23:17:14 +08:00
MistEO
b05d322b15 Revert "fix: 修复 stop 停止时机"
This reverts commit 418fbbb770.
2023-06-29 23:15:26 +08:00
MistEO
418fbbb770 fix: 修复 stop 停止时机 2023-06-29 22:45:39 +08:00
Horror Proton
0d78f38edc fix: workaround for destruction order issue
which creates empty files with random name on Linux

fix: https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/5255
2023-06-26 23:49:32 +08:00
MistEO
17d367c8e8 Revert "chore: 加入一些日志排查死锁问题"
This reverts commit 983a6cfb82.
2023-06-05 13:16:18 +08:00
MistEO
615d066f4f fix: 尝试修复类型错误 2023-06-04 19:57:49 +08:00
MistEO
983a6cfb82 chore: 加入一些日志排查死锁问题 2023-06-04 16:13:20 +08:00
MistEO
73d56485ff fix: typos 2023-05-25 20:40:04 +08:00
MistEO
742d0aa5b6 fix: 修复冒烟程序偶现死锁问题 2023-05-25 20:36:35 +08:00
MistEO
7dc0fd348d perf: 修改异步加载资源的方式 2023-05-02 15:16:07 +08:00
MistEO
0228097ad5 chore: 添加一些日志 2023-05-01 17:48:21 +08:00
MistEO
e7e35f80d2 chore: 改一些日志 2023-04-30 19:46:50 +08:00
MistEO
69fdd29f35 chore: 改一些日志 2023-04-28 15:14:34 +08:00
MistEO
5c2e41d3dc revert: #4360 2023-04-28 02:52:47 +08:00
MistEO
8186589685 style: Core 全局格式化 2023-04-27 23:15:03 +08:00
罗家欣
4b2557782e 更名operBox 2023-04-20 10:56:29 +08:00
罗家欣
464629e1f2 优化逻辑,debug存图 2023-04-19 13:19:29 +08:00
GD-GK
400ecd5c8a Merge branch 'dev' into dev 2023-04-18 15:46:41 +08:00
罗家欣
0d50f9ab8c 干员识别,fix 2023-04-18 15:32:19 +08:00
Horror Proton
5f7a79acb0 feat: revert using std::function in append_async_c 2023-04-18 00:43:24 +08:00
Horror Proton
86654334c8 feat: make sure async func args listed explicitly 2023-04-18 00:43:24 +08:00
Horror Proton
7778c43195 perf: reduce amout of mutex in Assistant 2023-04-18 00:43:24 +08:00
罗家欣
6293ac572c 干员识别 2023-04-17 15:54:10 +08:00
MistEO
68d55c3ee1 perf: 再次优化外部调用等待函数 2023-04-13 01:11:47 +08:00