@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 03:37 UTC

main
js 26 lines 916 Bytes
Raw
1 // @ts-check
2 const fs = require("node:fs");
3 const path = require("node:path");
4
5 // Include the major version, which Expo ignores, to prevent OTAs reaching older store binaries.
6 const appConfig = fs.readFileSync(path.join(__dirname, "app.config.ts"), "utf8");
7 const version =
8 process.env.T3CODE_MOBILE_VERSION ??
9 appConfig.match(/^ {2}version: repoEnv\.T3CODE_MOBILE_VERSION \?\? "([^"]+)"/m)?.[1];
10 const majorVersion = version?.match(/^(\d+)\./)?.[1];
11 if (!majorVersion) {
12 throw new Error("fingerprint.config.js could not read the app version from app.config.ts");
13 }
14
15 module.exports = {
16 nativeModuleSourceType: "files",
17 extraSources: [
18 { type: "contents", id: "appMajorVersion", contents: majorVersion },
19 // Expo skips symlinks when hashing local modules.
20 {
21 type: "file",
22 filePath: "../../native/apple-speech/AppleSpeechEngine.swift",
23 reasons: ["appleSpeech"],
24 },
25 ],
26 };