Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

fix(ios): enable single-scene lifecycle for system sharing

Gus99031ecba19f
diff --git a/scripts/ci/file-save.test.ts b/scripts/ci/file-save.test.ts
index 3facdbcc8..25b94b025 100644
--- a/scripts/ci/file-save.test.ts
+++ b/scripts/ci/file-save.test.ts
@@ -35,6 +35,12 @@ describe("native file save boundary", () => {
expect(read("plugins/file-save/android/src/main/java/ai/alook/plugin/filesave/FileSavePlugin.kt")).toContain('source.name == args.attemptId + ".partial"')
expect(read("plugins/file-save/ios/Sources/FileSavePlugin.swift")).toContain('source.lastPathComponent == args.attemptId + ".partial"')
})
+ it("enables the single-scene lifecycle without replacing Tao scene configuration", () => {
+ const project = read("gen/apple/project.yml")
+ expect(project).toMatch(/^ {8}UIApplicationSceneManifest:\n {10}UIApplicationSupportsMultipleScenes: false$/m)
+ expect(project.match(/UIApplicationSceneManifest:/g)).toHaveLength(1)
+ expect(project).not.toMatch(/UIScene(Configuration|DelegateClassName|StoryboardFile)/)
+ })
it("anchors the system share sheet only on iPad and preserves its source rectangle", () => {
const plugin = read("plugins/file-save/ios/Sources/FileSavePlugin.swift")
const configuration = plugin.slice(plugin.indexOf("if presenter.traitCollection.userInterfaceIdiom"), plugin.indexOf("presenter.present(picker"))
diff --git a/src/desktop/src-tauri/gen/apple/project.yml b/src/desktop/src-tauri/gen/apple/project.yml
index ad9c0714d..0b86dd748 100644
--- a/src/desktop/src-tauri/gen/apple/project.yml
+++ b/src/desktop/src-tauri/gen/apple/project.yml
@@ -41,6 +41,8 @@ targets:
properties:
ITSAppUsesNonExemptEncryption: false
LSRequiresIPhoneOS: true
+ UIApplicationSceneManifest:
+ UIApplicationSupportsMultipleScenes: false
UILaunchStoryboardName: LaunchScreen
UIRequiredDeviceCapabilities: [arm64, metal]
UISupportedInterfaceOrientations: