mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-20 17:11:17 -08:00
chore(call): vendor the native call plugin and its iOS frameworks
This commit is contained in:
1 parent
3e3ae9a59f
commit
6442510033
25 files changed
+402
-13
No files matched your search
@@ -461,6 +461,10 @@ jobs:
|
||||
shell: bash
|
||||
run: mise -y run tauri:setup:ios
|
||||
|
||||
- name: Download iOS frameworks
|
||||
shell: bash
|
||||
run: pnpm ios:frameworks
|
||||
|
||||
- name: Symlink icons to the ios folder
|
||||
shell: bash
|
||||
run: mise run icons:symlink --write --force
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
!.slim/deepwork/
|
||||
!.slim/deepwork/**
|
||||
|
||||
# BEGIN oh-my-opencode-slim worktrees
|
||||
!.slim/
|
||||
!.slim/worktrees.json
|
||||
!.slim/worktrees/
|
||||
!.slim/worktrees/**
|
||||
# END oh-my-opencode-slim worktrees
|
||||
@@ -17,6 +17,7 @@
|
||||
"typecheck": "tsc",
|
||||
"tauri": "tauri",
|
||||
"tauri:cef": "node scripts/tauri.js cef",
|
||||
"ios:frameworks": "node scripts/download-ios-frameworks.js",
|
||||
"tauri:wry": "node scripts/tauri.js wry",
|
||||
"test": "vitest",
|
||||
"test:ui": "vitest --ui",
|
||||
@@ -46,6 +47,7 @@
|
||||
"@choochmeque/tauri-plugin-sharekit-api": "0.4.0-rc.5",
|
||||
"@fontsource-variable/nunito": "5.2.7",
|
||||
"@fontsource/space-mono": "5.2.9",
|
||||
"@livekit/components-react": "2.9.23",
|
||||
"@lottiefiles/dotlottie-react": "^0.12.0",
|
||||
"@noble/hashes": "^2.2.0",
|
||||
"@phosphor-icons/react": "^2.1.10",
|
||||
@@ -96,6 +98,7 @@
|
||||
"leaflet": "1.9.4",
|
||||
"linkify-react": "^4.3.3",
|
||||
"linkifyjs": "^4.3.3",
|
||||
"livekit-client": "2.21.0",
|
||||
"marked": "^18.0.5",
|
||||
"matrix-js-sdk": "42.0.0",
|
||||
"matrix-widget-api": "^1.17.0",
|
||||
|
||||
Generated
+161
@@ -43,6 +43,9 @@ importers:
|
||||
'@fontsource/space-mono':
|
||||
specifier: 5.2.9
|
||||
version: 5.2.9
|
||||
'@livekit/components-react':
|
||||
specifier: 2.9.23
|
||||
version: 2.9.23([email protected](@types/[email protected]))([email protected]([email protected]))([email protected])([email protected])
|
||||
'@lottiefiles/dotlottie-react':
|
||||
specifier: ^0.12.0
|
||||
version: 0.12.3([email protected])
|
||||
@@ -193,6 +196,9 @@ importers:
|
||||
linkifyjs:
|
||||
specifier: ^4.3.3
|
||||
version: 4.3.3
|
||||
livekit-client:
|
||||
specifier: 2.21.0
|
||||
version: 2.21.0(@types/[email protected])
|
||||
marked:
|
||||
specifier: ^18.0.5
|
||||
version: 18.0.5
|
||||
@@ -952,6 +958,9 @@ packages:
|
||||
resolution: {integrity: sha512-ctxtJ/eA+t+6q2++vj5j7FYX3nRu311q1wfYH3xjlLOsczhlhxAg2FWNUXhpGvAw3BWo1xBcvOV6/YLc2r5FJw==}
|
||||
hasBin: true
|
||||
|
||||
'@bufbuild/[email protected]':
|
||||
resolution: {integrity: sha512-wJ8ReQbHxsAfXhrf9ixl0aYbZorRuOWpBNzm8pL8ftmSxQx/wnJD5Eg861NwJU/czy2VXFIebCeZnZrI9rktIQ==}
|
||||
|
||||
'@choochmeque/[email protected]':
|
||||
resolution: {integrity: sha512-TSuf8HQ4Ayp9IKKB5v2yTdgKMa/I0bqbcACj0IZ46CSpzn/HKner/BKG7rM8tGOarEcyBd/VXnDhK5cJA/YMtw==}
|
||||
|
||||
@@ -1405,6 +1414,15 @@ packages:
|
||||
resolution: {integrity: sha512-bsxD8WLS5lIj7aaoCx1YJkktqYj5vlBUE6HWzu2Q51ksrGJ0H737ECCKlFU7Yf8Br45z9t99frBp/J7kzbMPAg==}
|
||||
engines: {node: ^20.19.0 || ^22.13.0 || ^23.5.0 || >=24.0.0, npm: '>=10'}
|
||||
|
||||
'@floating-ui/[email protected]':
|
||||
resolution: {integrity: sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ==}
|
||||
|
||||
'@floating-ui/[email protected]':
|
||||
resolution: {integrity: sha512-9gZSAI5XM36880PPMm//9dfiEngYoC6Am2izES1FF406YFsjvyBMmeJ2g4SAju3xWwtuynNRFL2s9hgxpLI5SQ==}
|
||||
|
||||
'@floating-ui/[email protected]':
|
||||
resolution: {integrity: sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==}
|
||||
|
||||
'@fontsource-variable/[email protected]':
|
||||
resolution: {integrity: sha512-2N8QhatkyKgSUbAGZO2FYLioxA32+RyI1EplVLawbpkGjUeui9Qg9VMrpkCaik1ydjFjfLV+kzQ0cGEsMrMenQ==}
|
||||
|
||||
@@ -1626,6 +1644,32 @@ packages:
|
||||
'@kwsites/[email protected]':
|
||||
resolution: {integrity: sha512-m9/5YGR18lIwxSFDwfE3oA7bWuq9kdau6ugN4H2rJeyhFQZcG9AgSHkQtSD15a8WvTgfz9aikZMrKPHvbpqFiw==}
|
||||
|
||||
'@livekit/[email protected]':
|
||||
resolution: {integrity: sha512-6OKP/1Ok2fCZewDLKd3SzaTb7KvfZl/6hjggI+TgUdhp0Y7HBg3+tHA7YmhZRc0BO8wIyVy4VgTPn7qkLHt2nQ==}
|
||||
engines: {node: '>=18'}
|
||||
peerDependencies:
|
||||
livekit-client: ^2.20.1
|
||||
tslib: ^2.6.2
|
||||
|
||||
'@livekit/[email protected]':
|
||||
resolution: {integrity: sha512-clO+0g/u3YBpuOvnAjUSAJBH/o7w+RpUAseswjiSML9rHrXlTUhwBNm8LPk+qN5GOU3A6lzsNnFYVpUHUBVOkg==}
|
||||
engines: {node: '>=18'}
|
||||
peerDependencies:
|
||||
'@livekit/krisp-noise-filter': ^0.2.12 || ^0.3.0 || ^0.4.0
|
||||
livekit-client: ^2.20.1
|
||||
react: '>=18'
|
||||
react-dom: '>=18'
|
||||
tslib: ^2.6.2
|
||||
peerDependenciesMeta:
|
||||
'@livekit/krisp-noise-filter':
|
||||
optional: true
|
||||
|
||||
'@livekit/[email protected]':
|
||||
resolution: {integrity: sha512-EsshAucklmpuUAfkABPxJNhzj9v2sG7JuzFDL4ML1oJQSV14sqrpTYnsaOudMAw9yOaW53NU3QQTlUQoRs4czw==}
|
||||
|
||||
'@livekit/[email protected]':
|
||||
resolution: {integrity: sha512-L1uggNQAqyY21smQY8AllyOYbcv9Me9TaxwuLytL1R8ck9nbYPmQLNwEDi3pOFGAMa5F8I2nUi2Jc59W5awxlA==}
|
||||
|
||||
'@lottiefiles/[email protected]':
|
||||
resolution: {integrity: sha512-b0k0Lakj2hmhyIkwJSpKySh6xoelpgWRaijyrCb6fraOCnzuitKglVTtYs0VWf72rk+2aSmC/0IK8j8wruVfOw==}
|
||||
peerDependencies:
|
||||
@@ -3105,6 +3149,9 @@ packages:
|
||||
'@types/[email protected]':
|
||||
resolution: {integrity: sha512-cmUpB+dPN955PxBEuXE3f6lKO1hHiIGYJA46IVF3BJpNsZGvtBDcRnlrHYHtOH/B6vtDOyl2kZ2ShAu3mgc27Q==}
|
||||
|
||||
'@types/[email protected]':
|
||||
resolution: {integrity: sha512-mUMZLK3NvwRLcAAT9qmcK+9p7tpU2FHdDsntR3YI4+GY88XrgG4XiE7u1Q2LAN2/FZOz/tdMDC3GQCR4T8nFuw==}
|
||||
|
||||
'@types/[email protected]':
|
||||
resolution: {integrity: sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==}
|
||||
|
||||
@@ -4336,6 +4383,9 @@ packages:
|
||||
resolution: {integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==}
|
||||
hasBin: true
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-N8acGzVsQy6M/fjFcxtysNc4Q379TcM5dM/qKkNtsHFji88yANnXTr7BLeP75iPnFwBfQzM/jg2BZ9+HZrHCZA==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-dnuKfU/GLi8B28RRMjQ3AfoN7kfzP8o41+AX2FmITZqEMY8PHnjABq+VkEooomLwYaGjda+pgy0yFSjaHX/ZPg==}
|
||||
engines: {node: '>=12.20.0'}
|
||||
@@ -4506,6 +4556,11 @@ packages:
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-P8aEP5U/D1/IlTY2OeYsErdwh9bGuLE30NcXtKEjgdHcahveQoQwM2yZNsioQHsWFz0P7KKudisbrzCgR0sDHg==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-RBUhPkV/sl1nzl8lokVlK5uATPwn0AlsudCBZXissw/kDl9yz8ac4pNJ43iPpMVoHOeBYH/BZ3vUC1adqa/zFQ==}
|
||||
peerDependencies:
|
||||
'@types/dom-mediacapture-record': ^1
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==}
|
||||
engines: {node: '>=10'}
|
||||
@@ -4522,6 +4577,10 @@ packages:
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-hP3I3kCrDIMuRwAwHltphhDM1r8i55H33GgqjXbrisuJhF4kRhW1dNuxsRklp4bXl8DSdLaNLuiL4A/LWRfxvg==}
|
||||
engines: {node: '>= 0.6.0'}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-HgMmCqIJSAKqo68l0rS2AanEWfkxaZ5wNiEFb5ggm08lDs9Xl2KxBlX3PTcaD2chBM1gXAYf491/M2Rv8Jwayg==}
|
||||
engines: {node: '>= 0.6.0'}
|
||||
@@ -5045,6 +5104,9 @@ packages:
|
||||
engines: {node: '>=18.0.0', npm: '>=8.0.0'}
|
||||
hasBin: true
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-wtZlHyOje6OZTGqAoaDKxFkgRtkF9CnHAVnCHKfuj200wAgL+bSJhdsCD2l0Qx/2ekEXjPWcyKkfGb5CPboslg==}
|
||||
engines: {node: '>=0.4'}
|
||||
@@ -5076,10 +5138,17 @@ packages:
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-49oNpRjWRvnU8NyGVmUaYG4jtTkNonFZI86MmGRDqBphEK2EXT9gdEUoQPZhuBM8yWHxCWbobltqYO5M4XrUvQ==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-KrOH82c/W+GYQ0LHqtr3caRpM3ITglq3ljGUIb8LTki7ByacJZ9z+piSGiwZDsRyhQbYBOBJgr2k6X4BZXi3Kw==}
|
||||
hasBin: true
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-gfYVRGxjHkGF2NPeUWHw5u6T/KGFtS5/drPms73gaSuMaVHKCY3lpLnGDfswVQO0kddeePoti09AwhYP4zA8dQ==}
|
||||
hasBin: true
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-xZocWwfyp4hkbN4hLWxMjmv2Q8aNa9MhmOZ7L9aCZPT+dZsgRr6wZRrSYE3HTdyk/2pZKPSgqI7ns7Een1xMSA==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==}
|
||||
hasBin: true
|
||||
@@ -5425,6 +5494,9 @@ packages:
|
||||
resolution: {integrity: sha512-phPGCwqr2+Qo0fwniCE8e4pKnGu/yFb5nD5Y8bf0EEeiI5GklnACYA9GFy/DrAeRrKHXvHn+1SUsOWgJp6RO+g==}
|
||||
engines: {node: '>= 0.4'}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-g/KzbYKbH5C2vPkaXGu8DJlHrGKHLsM25Zg9WuC9pMGfuvT+X25tZQWo5fK1BjBm8+UrVE9LDCvaY0CQk+fXDA==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==}
|
||||
engines: {node: '>=14.17'}
|
||||
@@ -5503,6 +5575,12 @@ packages:
|
||||
peerDependencies:
|
||||
react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-I4diPp9Cq6ieSUH2wu+fDAVQO43xwtulo+fKEidHUwZPnYImbtkTjzIJYcDcJqxgmX31GVqNFURodvcgHcW0pA==}
|
||||
engines: {node: '>=16.15.0'}
|
||||
peerDependencies:
|
||||
react: ^16.8.0 || ^17 || ^18 || ^19 || ^19.0.0-rc
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
|
||||
|
||||
@@ -5713,6 +5791,10 @@ packages:
|
||||
resolution: {integrity: sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==}
|
||||
engines: {node: '>=20'}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-CHbl2ZQbxx164IgWRgzJno4hWtM4tFbRam1QfI3Yxhs3w/DvqluVxVWeXs3oL5/fbGkSNLKo0Ty5MgUWceNhog==}
|
||||
engines: {node: '>=6.0.0', npm: '>=3.10.0'}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw==}
|
||||
engines: {node: '>=20'}
|
||||
@@ -6632,6 +6714,8 @@ snapshots:
|
||||
dependencies:
|
||||
css-tree: 3.2.1
|
||||
|
||||
'@bufbuild/[email protected]': {}
|
||||
|
||||
'@choochmeque/[email protected]':
|
||||
dependencies:
|
||||
'@tauri-apps/api': 2.11.1
|
||||
@@ -6915,6 +6999,17 @@ snapshots:
|
||||
|
||||
'@faker-js/[email protected]': {}
|
||||
|
||||
'@floating-ui/[email protected]':
|
||||
dependencies:
|
||||
'@floating-ui/utils': 0.2.12
|
||||
|
||||
'@floating-ui/[email protected]':
|
||||
dependencies:
|
||||
'@floating-ui/core': 1.8.0
|
||||
'@floating-ui/utils': 0.2.12
|
||||
|
||||
'@floating-ui/[email protected]': {}
|
||||
|
||||
'@fontsource-variable/[email protected]': {}
|
||||
|
||||
'@fontsource/[email protected]': {}
|
||||
@@ -7096,6 +7191,32 @@ snapshots:
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@livekit/[email protected]([email protected](@types/[email protected]))([email protected])':
|
||||
dependencies:
|
||||
'@floating-ui/dom': 1.7.6
|
||||
livekit-client: 2.21.0(@types/[email protected])
|
||||
loglevel: 1.9.1
|
||||
rxjs: 7.8.2
|
||||
tslib: 2.8.1
|
||||
|
||||
'@livekit/[email protected]([email protected](@types/[email protected]))([email protected]([email protected]))([email protected])([email protected])':
|
||||
dependencies:
|
||||
'@livekit/components-core': 0.12.14([email protected](@types/[email protected]))([email protected])
|
||||
clsx: 2.1.1
|
||||
events: 3.3.0
|
||||
jose: 6.2.4
|
||||
livekit-client: 2.21.0(@types/[email protected])
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1([email protected])
|
||||
tslib: 2.8.1
|
||||
usehooks-ts: 3.1.1([email protected])
|
||||
|
||||
'@livekit/[email protected]': {}
|
||||
|
||||
'@livekit/[email protected]':
|
||||
dependencies:
|
||||
'@bufbuild/protobuf': 1.10.1
|
||||
|
||||
'@lottiefiles/[email protected]([email protected])':
|
||||
dependencies:
|
||||
'@lottiefiles/dotlottie-web': 0.40.1
|
||||
@@ -8151,6 +8272,8 @@ snapshots:
|
||||
'@types/node': 24.13.2
|
||||
'@types/ssh2': 1.15.5
|
||||
|
||||
'@types/[email protected]': {}
|
||||
|
||||
'@types/[email protected]': {}
|
||||
|
||||
'@types/[email protected]': {}
|
||||
@@ -9554,6 +9677,8 @@ snapshots:
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected](@babel/[email protected])(@babel/[email protected])(@types/[email protected])([email protected]):
|
||||
optionalDependencies:
|
||||
'@babel/core': 7.29.7
|
||||
@@ -9699,6 +9824,19 @@ snapshots:
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected](@types/[email protected]):
|
||||
dependencies:
|
||||
'@livekit/mutex': 1.1.1
|
||||
'@livekit/protocol': 1.50.4
|
||||
'@types/dom-mediacapture-record': 1.0.22
|
||||
events: 3.3.0
|
||||
jose: 6.2.4
|
||||
loglevel: 1.9.2
|
||||
sdp-transform: 2.15.0
|
||||
tslib: 2.8.1
|
||||
typed-emitter: 2.1.0
|
||||
webrtc-adapter: 9.0.6
|
||||
|
||||
[email protected]:
|
||||
dependencies:
|
||||
p-locate: 5.0.0
|
||||
@@ -9711,6 +9849,8 @@ snapshots:
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
@@ -10360,6 +10500,10 @@ snapshots:
|
||||
'@rollup/rollup-win32-x64-msvc': 4.62.0
|
||||
fsevents: 2.3.3
|
||||
|
||||
[email protected]:
|
||||
dependencies:
|
||||
tslib: 2.8.1
|
||||
|
||||
[email protected]:
|
||||
dependencies:
|
||||
call-bind: 1.0.9
|
||||
@@ -10397,8 +10541,12 @@ snapshots:
|
||||
dependencies:
|
||||
compute-scroll-into-view: 3.1.1
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
@@ -10875,6 +11023,10 @@ snapshots:
|
||||
possible-typed-array-names: 1.1.0
|
||||
reflect.getprototypeof: 1.0.10
|
||||
|
||||
[email protected]:
|
||||
optionalDependencies:
|
||||
rxjs: 7.8.2
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
@@ -10937,6 +11089,11 @@ snapshots:
|
||||
dependencies:
|
||||
react: 18.3.1
|
||||
|
||||
[email protected]([email protected]):
|
||||
dependencies:
|
||||
lodash.debounce: 4.0.8
|
||||
react: 18.3.1
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
@@ -11090,6 +11247,10 @@ snapshots:
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]:
|
||||
dependencies:
|
||||
sdp: 3.2.2
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected](@noble/[email protected]):
|
||||
|
||||
@@ -0,0 +1,128 @@
|
||||
#!/usr/bin/env node
|
||||
//MISE description="Download and verify the iOS XCFrameworks used by tauri-plugin-livekit-mobile"
|
||||
// Downloads pinned iOS frameworks into src-tauri/Frameworks.
|
||||
import { createHash } from 'node:crypto';
|
||||
import { spawnSync } from 'node:child_process';
|
||||
import { existsSync } from 'node:fs';
|
||||
import { mkdir, mkdtemp, readFile, rename, rm, writeFile } from 'node:fs/promises';
|
||||
import process from 'node:process';
|
||||
import { dirname, join, resolve } from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { PrefixedLogger } from './utils/console-style.js';
|
||||
|
||||
const __dirname = dirname(fileURLToPath(import.meta.url));
|
||||
const log = new PrefixedLogger('[ios-frameworks]');
|
||||
|
||||
const FRAMEWORKS_DIR = resolve(__dirname, '../src-tauri/Frameworks');
|
||||
const MANIFEST_PATH = join(FRAMEWORKS_DIR, '.manifest.json');
|
||||
|
||||
const FRAMEWORKS = [
|
||||
{
|
||||
name: 'LiveKitWebRTC',
|
||||
url: 'https://github.com/livekit/webrtc-xcframework/releases/download/144.7559.11/LiveKitWebRTC.xcframework.zip',
|
||||
sha256: '07c5caf718058af3c528dcabd257298c40e5a8527e4fb9f47c48336ba5899853',
|
||||
},
|
||||
{
|
||||
name: 'RustLiveKitUniFFI',
|
||||
url: 'https://github.com/livekit/livekit-uniffi-xcframework/releases/download/0.0.6/RustLiveKitUniFFI.xcframework.zip',
|
||||
sha256: '0d3f2ce159a224c728f8b131068d53bbf9b13d968cda0edc68a6a2290f2651ed',
|
||||
},
|
||||
];
|
||||
|
||||
function sha256Hex(buffer) {
|
||||
return createHash('sha256').update(buffer).digest('hex');
|
||||
}
|
||||
|
||||
async function readManifest() {
|
||||
try {
|
||||
return JSON.parse(await readFile(MANIFEST_PATH, 'utf8'));
|
||||
} catch {
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
||||
async function writeManifest(manifest) {
|
||||
await writeFile(MANIFEST_PATH, `${JSON.stringify(manifest, null, 2)}\n`);
|
||||
}
|
||||
|
||||
function findExtractor() {
|
||||
for (const tool of ['ditto', 'unzip']) {
|
||||
if (!spawnSync(tool, ['--help'], { stdio: 'ignore' }).error) return tool;
|
||||
}
|
||||
throw new Error('Neither ditto nor unzip is available to extract XCFramework archives');
|
||||
}
|
||||
|
||||
function extractZip(zipPath, destination) {
|
||||
const tool = findExtractor();
|
||||
const args =
|
||||
tool === 'ditto' ? ['-x', '-k', zipPath, destination] : ['-q', zipPath, '-d', destination];
|
||||
const result = spawnSync(tool, args, { stdio: 'inherit' });
|
||||
if (result.status !== 0) {
|
||||
throw new Error(`${tool} failed to extract ${zipPath} (exit ${result.status})`);
|
||||
}
|
||||
}
|
||||
|
||||
async function provision(framework, manifest) {
|
||||
const { name, url, sha256 } = framework;
|
||||
const target = join(FRAMEWORKS_DIR, `${name}.xcframework`);
|
||||
|
||||
if (manifest[name] === sha256 && existsSync(join(target, 'Info.plist'))) {
|
||||
log.info(`${name}.xcframework already installed (verified), skipping`);
|
||||
return;
|
||||
}
|
||||
|
||||
log.info(`Downloading ${name} from ${url}`);
|
||||
const response = await fetch(url, { redirect: 'follow' });
|
||||
if (!response.ok) {
|
||||
throw new Error(`Failed to download ${name}: HTTP ${response.status} ${response.statusText}`);
|
||||
}
|
||||
const zipBuffer = Buffer.from(await response.arrayBuffer());
|
||||
|
||||
const actual = sha256Hex(zipBuffer);
|
||||
if (actual !== sha256) {
|
||||
throw new Error(
|
||||
`Checksum mismatch for ${name}: expected ${sha256}, got ${actual}. Refusing to install.`
|
||||
);
|
||||
}
|
||||
log.info(`Verified SHA-256 for ${name}`);
|
||||
|
||||
// Verify and unpack before replacing an existing framework.
|
||||
const tempDir = await mkdtemp(join(FRAMEWORKS_DIR, '.tmp-'));
|
||||
try {
|
||||
const zipPath = join(tempDir, `${name}.zip`);
|
||||
await writeFile(zipPath, zipBuffer);
|
||||
extractZip(zipPath, tempDir);
|
||||
|
||||
const extracted = join(tempDir, `${name}.xcframework`);
|
||||
if (!existsSync(join(extracted, 'Info.plist'))) {
|
||||
throw new Error(
|
||||
`Downloaded archive for ${name} did not contain ${name}.xcframework; refusing to install.`
|
||||
);
|
||||
}
|
||||
|
||||
if (existsSync(target)) {
|
||||
await rename(target, join(tempDir, '__replaced__'));
|
||||
}
|
||||
await rename(extracted, target);
|
||||
} finally {
|
||||
await rm(tempDir, { recursive: true, force: true });
|
||||
}
|
||||
|
||||
manifest[name] = sha256;
|
||||
await writeManifest(manifest);
|
||||
log.info(`Installed ${name}.xcframework`);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
await mkdir(FRAMEWORKS_DIR, { recursive: true });
|
||||
const manifest = await readManifest();
|
||||
for (const framework of FRAMEWORKS) {
|
||||
// oxlint-disable-next-line no-await-in-loop
|
||||
await provision(framework, manifest);
|
||||
}
|
||||
}
|
||||
|
||||
main().catch((error) => {
|
||||
log.error(error instanceof Error ? error.message : String(error));
|
||||
process.exitCode = 1;
|
||||
});
|
||||
@@ -2,3 +2,6 @@
|
||||
# will have compiled files and executables
|
||||
/target/
|
||||
/gen/schemas
|
||||
|
||||
# Downloaded by scripts/download-ios-frameworks.js (pinned, checksummed binaries)
|
||||
/Frameworks/
|
||||
Generated
+15
@@ -5424,6 +5424,7 @@ dependencies = [
|
||||
"tauri-plugin-fs",
|
||||
"tauri-plugin-global-shortcut",
|
||||
"tauri-plugin-http",
|
||||
"tauri-plugin-livekit-mobile",
|
||||
"tauri-plugin-log",
|
||||
"tauri-plugin-notifications",
|
||||
"tauri-plugin-opener",
|
||||
@@ -6730,6 +6731,20 @@ dependencies = [
|
||||
"urlpattern",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tauri-plugin-livekit-mobile"
|
||||
version = "0.2.0"
|
||||
source = "git+https://github.com/SableClient/tauri-plugin-livekit-mobile.git?rev=94530182a86a344f562e288ca419a8f34ba4c87d#94530182a86a344f562e288ca419a8f34ba4c87d"
|
||||
dependencies = [
|
||||
"base64 0.22.1",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"tauri",
|
||||
"tauri-plugin",
|
||||
"thiserror 2.0.19",
|
||||
"tokio",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tauri-plugin-log"
|
||||
version = "2.9.0"
|
||||
|
||||
@@ -124,6 +124,7 @@ tauri-plugin-notifications = { git = "https://github.com/SableClient/tauri-plugi
|
||||
] }
|
||||
tauri-plugin-edge-to-edge = { git = "https://github.com/SableClient/tauri-plugin-edge-to-edge.git", rev = "33c6116c27be28c06df5a9d02231ecc5fdeb93c5" }
|
||||
tauri-plugin-sharekit = { git = "https://github.com/Choochmeque/tauri-plugin-sharekit", rev = "9f2b4c5d8a4f0ab910d900ba234ed8bae0ab854b" }
|
||||
tauri-plugin-livekit-mobile = { git = "https://github.com/SableClient/tauri-plugin-livekit-mobile.git", rev = "94530182a86a344f562e288ca419a8f34ba4c87d" }
|
||||
|
||||
[target.'cfg(target_os = "ios")'.dependencies]
|
||||
objc2 = "0.6"
|
||||
|
||||
@@ -10,5 +10,10 @@
|
||||
<string>Sable needs camera access for video calls.</string>
|
||||
<key>NSMicrophoneUsageDescription</key>
|
||||
<string>Sable needs microphone access for voice and video calls.</string>
|
||||
<key>UIBackgroundModes</key>
|
||||
<array>
|
||||
<string>audio</string>
|
||||
<string>voip</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -7,6 +7,7 @@
|
||||
"core:window:allow-set-badge-count",
|
||||
"deep-link:default",
|
||||
"edge-to-edge:default",
|
||||
"livekit-mobile:default",
|
||||
"notifications:default",
|
||||
"sharekit:default"
|
||||
]
|
||||
|
||||
@@ -61,6 +61,11 @@ android {
|
||||
)
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
// tauri-plugin-livekit-mobile requires it: LiveKit/WebRTC call java.time
|
||||
// APIs that only exist from API 26, and minSdk here is 24.
|
||||
isCoreLibraryDesugaringEnabled = true
|
||||
}
|
||||
kotlinOptions {
|
||||
jvmTarget = "1.8"
|
||||
}
|
||||
@@ -73,11 +78,24 @@ rust {
|
||||
rootDirRel = "../../../"
|
||||
}
|
||||
|
||||
// tink (via the unifiedpush connector) pulls protobuf-java, which collides with
|
||||
// the protobuf-javalite livekit-android is generated against: its Timestamp
|
||||
// extends GeneratedMessage rather than GeneratedMessageLite, so livekit's
|
||||
// classes fail dex verification at runtime. tink-android shades its own
|
||||
// protobuf and needs none, which leaves javalite as the only protobuf.
|
||||
configurations.all {
|
||||
resolutionStrategy.dependencySubstitution {
|
||||
substitute(module("com.google.crypto.tink:tink"))
|
||||
.using(module("com.google.crypto.tink:tink-android:1.18.0"))
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("androidx.webkit:webkit:1.14.0")
|
||||
implementation("androidx.appcompat:appcompat:1.7.1")
|
||||
implementation("androidx.activity:activity-ktx:1.10.1")
|
||||
implementation("com.google.android.material:material:1.12.0")
|
||||
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.5")
|
||||
testImplementation("junit:junit:4.13.2")
|
||||
androidTestImplementation("androidx.test.ext:junit:1.1.4")
|
||||
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.0")
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
android:launchMode="singleTask"
|
||||
android:label="@string/main_activity_title"
|
||||
android:name="moe.sable.client.MainActivity"
|
||||
android:supportsPictureInPicture="true"
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
@@ -14,6 +14,9 @@ allprojects {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
// livekit-android pulls com.github.davidliu:audioswitch, published only
|
||||
// on JitPack.
|
||||
maven { setUrl("https://jitpack.io") }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>aps-environment</key>
|
||||
<string>development</string>
|
||||
<key>com.apple.security.application-groups</key>
|
||||
<array>
|
||||
<string>group.moe.sable.client</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>com.apple.security.application-groups</key>
|
||||
<array>
|
||||
<string>group.moe.sable.client</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -60,9 +60,7 @@ targets:
|
||||
# APPLICATION_EXTENSION_API_ONLY must stay unset: NO fails Xcode's
|
||||
# validation, YES breaks UIApplication.open in ShareViewController.
|
||||
SKIP_INSTALL: YES
|
||||
{{#if apple.development-team}}
|
||||
DEVELOPMENT_TEAM: {{apple.development-team}}
|
||||
{{/if}}
|
||||
DEVELOPMENT_TEAM: PK66NJM372
|
||||
{{app.name}}_iOS:
|
||||
type: application
|
||||
platform: iOS
|
||||
@@ -107,7 +105,6 @@ targets:
|
||||
- UIInterfaceOrientationLandscapeRight
|
||||
CFBundleShortVersionString: {{apple.bundle-version-short}}
|
||||
CFBundleVersion: "{{apple.bundle-version}}"
|
||||
UIBackgroundModes: [audio, voip]
|
||||
NSPhotoLibraryAddUsageDescription: Sable saves images you download to your photo library.
|
||||
# Mirrors plugins.deep-link in tauri.conf.json: the plugin only patches
|
||||
# these in when cargo reruns its build script, so a fresh `tauri ios
|
||||
@@ -121,10 +118,6 @@ targets:
|
||||
{{this.key}}: {{this.value}}{{/each}}
|
||||
entitlements:
|
||||
path: {{app.name}}_iOS/{{app.name}}_iOS.entitlements
|
||||
properties:
|
||||
aps-environment: development
|
||||
com.apple.security.application-groups:
|
||||
- group.{{app.identifier}}
|
||||
scheme:
|
||||
environmentVariables:
|
||||
RUST_BACKTRACE: full
|
||||
|
||||
@@ -355,6 +355,7 @@ pub fn run() {
|
||||
#[cfg(mobile)]
|
||||
let builder = builder
|
||||
.plugin(tauri_plugin_edge_to_edge::init())
|
||||
.plugin(tauri_plugin_livekit_mobile::init())
|
||||
.plugin(tauri_plugin_sharekit::init());
|
||||
|
||||
#[cfg(target_os = "android")]
|
||||
|
||||
@@ -24,7 +24,13 @@
|
||||
},
|
||||
"iOS": {
|
||||
"template": "src-tauri/ios-project.yml",
|
||||
"frameworks": ["AudioToolbox", "Photos"]
|
||||
"minimumSystemVersion": "16.0",
|
||||
"frameworks": [
|
||||
"AudioToolbox",
|
||||
"Photos",
|
||||
"Frameworks/LiveKitWebRTC.xcframework",
|
||||
"Frameworks/RustLiveKitUniFFI.xcframework"
|
||||
]
|
||||
},
|
||||
"linux": {
|
||||
"deb": {
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"identifier": "moe.sable.client.local"
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Auto-generated TypeScript bindings for Tauri commands
|
||||
* Generated by tauri-typegen v0.5.0
|
||||
* Generated at: 2026-07-31T11:14:58.599659+00:00
|
||||
* Generated at: 2026-07-30T16:36:15.050428+00:00
|
||||
* Generator: none
|
||||
*
|
||||
* Do not edit manually - regenerate using: cargo tauri-typegen generate
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Auto-generated TypeScript bindings for Tauri commands
|
||||
* Generated by tauri-typegen v0.5.0
|
||||
* Generated at: 2026-07-31T11:14:58.602356+00:00
|
||||
* Generated at: 2026-07-30T16:36:15.051835+00:00
|
||||
* Generator: none
|
||||
*
|
||||
* Do not edit manually - regenerate using: cargo tauri-typegen generate
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Auto-generated TypeScript bindings for Tauri commands
|
||||
* Generated by tauri-typegen v0.5.0
|
||||
* Generated at: 2026-07-31T11:14:58.603222+00:00
|
||||
* Generated at: 2026-07-30T16:36:15.052085+00:00
|
||||
* Generator: none
|
||||
*
|
||||
* Do not edit manually - regenerate using: cargo tauri-typegen generate
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Auto-generated TypeScript bindings for Tauri commands
|
||||
* Generated by tauri-typegen v0.5.0
|
||||
* Generated at: 2026-07-31T11:14:58.596290+00:00
|
||||
* Generated at: 2026-07-30T16:36:15.048780+00:00
|
||||
* Generator: none
|
||||
*
|
||||
* Do not edit manually - regenerate using: cargo tauri-typegen generate
|
||||
|
||||
Reference in new issue
Block a user