Skip to content

Commit 58932be

Browse files
committed
Make work on iOS
1 parent e5ea7e5 commit 58932be

File tree

9 files changed

+181
-153
lines changed

9 files changed

+181
-153
lines changed

Cargo.lock

Lines changed: 23 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ default = ["all-mods", "ffi"]
128128
all-mods = ["mod-hfst", "mod-cg3", "mod-divvun", "mod-speech", "mod-ssml", "mod-jq"]
129129
mod-hfst = ["hfst"]
130130
mod-cg3 = ["cg3"]
131-
mod-divvun = []
132-
mod-speech = ["divvun-speech", "mod-hfst"]
131+
mod-divvun = ["mod-cg3", "mod-hfst"]
132+
mod-speech = ["divvun-speech", "mod-hfst", "mod-cg3"]
133133
mod-ssml = ["ssml-parser"]
134134
mod-jq = ["jaq-core", "jaq-std", "jaq-json"]
135135
ffi = []

build/ui.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export async function buildUi(target?: string, debug = false) {
6565

6666
const xcconfigPath = "src-tauri/gen/apple/build.xcconfig";
6767
const xcconfigContent = Object.entries(env)
68-
.map(([key, value]) => `${key} = "${value}"`)
68+
.map(([key, value]) => `${key} = ${value}`)
6969
.join("\n");
7070

7171
await Deno.writeTextFile(xcconfigPath, xcconfigContent);
@@ -76,7 +76,7 @@ export async function buildUi(target?: string, debug = false) {
7676

7777
switch (platform) {
7878
case "ios":
79-
buildArgs.push("ios", "build");
79+
buildArgs.push("ios", "build", "--export-method", "debugging");
8080
break;
8181
case "android":
8282
buildArgs.push("android", "build");

playground/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
66
<title>Divvun Runtime Playground</title>
77
</head>
88

playground/src-tauri/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ serde_json = { workspace = true }
3333
tokio = { workspace = true }
3434
anyhow = { workspace = true }
3535
futures-util = { workspace = true }
36-
divvun-runtime = { path = "../.." }
36+
divvun-runtime = { path = "../..", default-features = false, features = ["mod-hfst", "mod-cg3", "mod-divvun", "mod-ssml", "mod-jq"] }
3737
syntax-highlight = { path = "../../crates/syntax-highlight", features = ["html"] }
3838
tracing = { workspace = true }
3939
tracing-subscriber = { workspace = true }
@@ -42,3 +42,6 @@ fluent = { workspace = true }
4242
fluent-bundle = { workspace = true }
4343
fluent-syntax = { workspace = true }
4444
facet = { workspace = true }
45+
46+
[target.'cfg(not(target_os = "ios"))'.dependencies]
47+
divvun-runtime = { path = "../..", features = ["mod-speech"] }
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>NSPrivacyAccessedAPITypes</key>
6+
<array>
7+
<dict>
8+
<key>NSPrivacyAccessedAPIType</key>
9+
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
10+
<key>NSPrivacyAccessedAPITypeReasons</key>
11+
<array>
12+
<string>C617.1</string>
13+
</array>
14+
</dict>
15+
</array>
16+
</dict>
17+
</plist>

0 commit comments

Comments
 (0)