Skip to content

Conversation

@mszhangopopop
Copy link
Contributor

@mszhangopopop mszhangopopop commented Sep 11, 2025

新增 Filza 对中文路径的兼容,新增 iOS 14 警告弹窗兼容以解决在 iOS 14 系统上选择 deb文件进行注入时没有反应

中文路径未经过 URL 编码,导致在调用 Filza 打开时无法正确解析并跳转到目标 dylib 文件
为添加一个兼容iOS 14系统的警告框,解决在 iOS 14 系统上选择注入 deb 文件进行注入时没有反应
@mszhangopopop mszhangopopop changed the title 优化 Filza 对中文路径的兼容,新增 iOS 14 警告框兼容,解决在 iOS 14 系统上选择 deb文件进行注入时没有反应 兼容中文路径跳转 Filza & 改进 alert 弹窗交互 Sep 11, 2025
@Lessica
Copy link
Owner

Lessica commented Sep 11, 2025

试了下,就算是原本的实现,中文路径似乎没有问题?

@Lessica
Copy link
Owner

Lessica commented Sep 11, 2025

告警弹窗我更倾向于 iOS 14 上面直接不弹了(但是把导入逻辑补充上去)。反正没多少用户,省得写不同的 .alert。

@Lessica
Copy link
Owner

Lessica commented Sep 11, 2025

其他的变更另起一个分支 / PR 进行提交吧。不要在一个 PR 里面提交太多内容。

@Lessica
Copy link
Owner

Lessica commented Sep 11, 2025

  1. Filza 中文路径处理:
func openInFilza(_ url: URL) {
    guard let filzaURL else {
        return
    }

    let fileURL: URL
    if #available(iOS 16, *) {
        fileURL = filzaURL.appending(path: url.path)
    } else {
        fileURL = URL(string: filzaURL.absoluteString + (url.path.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""))!
    }

    UIApplication.shared.open(fileURL)
}
  1. iOS 14 导入 .deb 的弹窗已绕过,改为直接导入(不弹窗)。

上述两个问题修复已经合入主分支。

@Lessica
Copy link
Owner

Lessica commented Sep 11, 2025

其他的提交没太看明白。建议按各功能单独提交 PR,包括代码和适当说明(方便 Review),谢谢!

@mszhangopopop
Copy link
Contributor Author

其它的不用管搞错了。。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants