iOS porting: Config pull and push scripts; Terminal works; voice input with Siri works

This commit is contained in:
James Babcock committed 2026-09-08 12:41:02 -07:00
1 parent b07ae0b479
commit 319d3dc44b
21 files changed
+339 -9

No files matched your search

+3 -1
View File
@@ -326,7 +326,9 @@ export class G2MirrorClient {
*/
submitInput(text: string): void {
if (this.phase !== "attached") return;
const textByteLength = new java.lang.String(text).getBytes("UTF-8").length;
const textByteLength = global.isIOS
? NSString.stringWithString(text).lengthOfBytesUsingEncoding(NSUTF8StringEncoding)
: new java.lang.String(text).getBytes("UTF-8").length;
this.send({
type: "input",
data: encodeBase64Utf8(`${text}\r`),