Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
5de6f9f
build(deps): bump the all-updates group across 9 directories with 33 …
dependabot[bot] Mar 10, 2026
b353694
fix: revert eslint to ^8.57.0 to avoid flat config migration requirement
msluszniak Mar 10, 2026
295f23a
fix: scope lint to src/**/*.{ts,tsx} to avoid linting compiled JS art…
msluszniak Mar 10, 2026
e8c7735
fix: update react-native-audio-api usage for v0.11.6 API changes
msluszniak Mar 10, 2026
8c013af
fix: resolve yarn peer dependency warnings
msluszniak Mar 10, 2026
67ed2fc
fix: pin react-native to 0.83.2 for Expo SDK 55 compatibility
msluszniak Mar 10, 2026
f331929
fix: remove wrapWithAudioAPIMetroConfig removed in react-native-audio…
msluszniak Mar 10, 2026
ce4f1d3
fix: add react-dom@19.2.4 to expo-router apps
msluszniak Mar 10, 2026
6d155eb
fix: use cache-hit output to guard expo prebuild, not directory exist…
msluszniak Mar 11, 2026
0f12821
fix: use literal paths in Android CI expo prebuild cache key
msluszniak Mar 11, 2026
d59abe1
fix: remove restore-keys from Android expo prebuild cache
msluszniak Mar 11, 2026
cdf9c6a
fix: download react-native-audio-api prebuilt binaries before pod ins…
msluszniak Mar 11, 2026
3b8c4c9
fix: make AudioRecorder a module-level singleton, use local eslint/pr…
msluszniak Mar 11, 2026
d1dec3e
fix: add config plugin to set REACT_NATIVE_NODE_MODULES_DIR for react…
msluszniak Mar 11, 2026
d5a8e29
fix: upgrade expo-document-picker to SDK 55 compatible version (~55.0.8)
msluszniak Mar 11, 2026
a9ff08a
fix: revert withReactNativeImagePickerFix to use withProjectBuildGradle
msluszniak Mar 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .github/workflows/build-android-llm-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,18 @@ jobs:
npm install -g @expo/cli
echo "$(npm prefix -g)/bin" >> $GITHUB_PATH
- name: Cache Expo prebuild
id: expo-prebuild-cache
uses: actions/cache@v4
with:
path: ${{ env.WORKING_DIRECTORY }}/android
key: ${{ runner.os }}-expo-android-${{ hashFiles('${{ env.WORKING_DIRECTORY }}/app.json', '${{ env.WORKING_DIRECTORY }}/package.json') }}
restore-keys: |
${{ runner.os }}-expo-android-
key: ${{ runner.os }}-expo-android-${{ hashFiles('apps/llm/app.json', 'apps/llm/package.json') }}
- name: Generate native Android project
working-directory: ${{ env.WORKING_DIRECTORY }}
run: |
if [ ! -d "android" ]; then
if [ "${{ steps.expo-prebuild-cache.outputs.cache-hit }}" != 'true' ]; then
npx expo prebuild --platform android --no-install
else
echo "Android project exists, skipping prebuild"
echo "Exact cache hit, skipping prebuild"
fi
- name: Cache Gradle
uses: actions/cache@v4
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/build-ios-llm-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,24 @@ jobs:
npm install -g @expo/cli
echo "$(npm prefix -g)/bin" >> $GITHUB_PATH
- name: Cache Expo prebuild
id: expo-prebuild-cache
uses: actions/cache@v4
with:
path: apps/llm/ios
key: ${{ runner.os }}-expo-ios-${{ hashFiles('apps/llm/app.json', 'apps/llm/package.json') }}
- name: Generate native iOS project
working-directory: apps/llm
run: |
if [ ! -d "ios" ]; then
if [ "${{ steps.expo-prebuild-cache.outputs.cache-hit }}" != 'true' ]; then
npx expo prebuild --platform ios --no-install
else
echo "iOS project exists, skipping prebuild"
echo "Exact cache hit, skipping prebuild"
fi
- name: Download react-native-audio-api prebuilt binaries
working-directory: node_modules/react-native-audio-api
run: |
chmod +x scripts/download-prebuilt-binaries.sh
scripts/download-prebuilt-binaries.sh ios
- name: Install CocoaPods dependencies
working-directory: apps/llm/ios
run: |
Expand Down
5 changes: 5 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ compressionLevel: mixed

enableGlobalCache: false

logFilters:
- code: YN0002
pattern: "react-native-executorch-monorepo@* doesn't provide *"
level: discard

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.1.1.cjs
38 changes: 20 additions & 18 deletions apps/computer-vision/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,33 @@
"lint": "eslint . --ext .ts,.tsx --fix"
},
"dependencies": {
"@expo/log-box": "55.0.7",
"@react-native-executorch/expo-resource-fetcher": "workspace:*",
"@react-native/metro-config": "^0.81.5",
"@react-native/metro-config": "^0.84.1",
"@react-navigation/drawer": "^7.8.1",
"@react-navigation/native": "^7.1.28",
"@shopify/react-native-skia": "2.4.21",
"expo": "^54.0.27",
"expo-build-properties": "~1.0.10",
"expo-constants": "~18.0.11",
"expo-font": "~14.0.10",
"expo-linking": "~8.0.10",
"expo-router": "~6.0.17",
"expo-status-bar": "~3.0.9",
"metro-config": "^0.81.5",
"react": "19.1.0",
"react-native": "0.81.5",
"@shopify/react-native-skia": "2.5.1",
"expo": "^55.0.5",
"expo-build-properties": "~55.0.9",
"expo-constants": "~55.0.7",
"expo-font": "~55.0.4",
"expo-linking": "~55.0.7",
"expo-router": "~55.0.4",
"expo-status-bar": "~55.0.4",
"metro-config": "^0.84.2",
"react": "19.2.4",
"react-dom": "19.2.4",
"react-native": "0.83.2",
"react-native-device-info": "^15.0.2",
"react-native-executorch": "workspace:*",
"react-native-gesture-handler": "~2.28.0",
"react-native-image-picker": "^7.2.2",
"react-native-gesture-handler": "~2.30.0",
"react-native-image-picker": "^8.2.1",
"react-native-loading-spinner-overlay": "^3.0.1",
"react-native-nitro-image": "^0.12.0",
"react-native-nitro-modules": "^0.33.9",
"react-native-nitro-image": "^0.13.0",
"react-native-nitro-modules": "^0.35.0",
"react-native-reanimated": "~4.2.2",
"react-native-safe-area-context": "~5.6.0",
"react-native-screens": "~4.16.0",
"react-native-safe-area-context": "~5.7.0",
"react-native-screens": "~4.24.0",
"react-native-svg": "15.15.3",
"react-native-svg-transformer": "^1.5.3",
"react-native-vision-camera": "5.0.0-beta.2",
Expand Down
1 change: 1 addition & 0 deletions apps/llm/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
}
],
"expo-router",
"./plugins/withReactNativeImagePickerFix",
[
"react-native-audio-api",
{
Expand Down
21 changes: 9 additions & 12 deletions apps/llm/app/voice_chat/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ import DeviceInfo from 'react-native-device-info';
import { useIsFocused } from '@react-navigation/native';
import { GeneratingContext } from '../../context';

const recorder = new AudioRecorder();

export default function VoiceChatScreenWrapper() {
const isFocused = useIsFocused();

Expand All @@ -37,14 +39,6 @@ function VoiceChatScreen() {
const [isRecording, setIsRecording] = useState(false);
const [liveTranscription, setLiveTranscription] = useState('');

const [recorder] = useState(
() =>
new AudioRecorder({
sampleRate: 16000,
bufferLengthInSamples: 1600,
})
);

const { setGlobalGenerating } = useContext(GeneratingContext);

const llm = useLLM({ model: QWEN3_0_6B_QUANTIZED });
Expand All @@ -60,7 +54,7 @@ function VoiceChatScreen() {
AudioManager.setAudioSessionOptions({
iosCategory: 'playAndRecord',
iosMode: 'spokenAudio',
iosOptions: ['allowBluetooth', 'defaultToSpeaker'],
iosOptions: ['allowBluetoothHFP', 'defaultToSpeaker'],
});
AudioManager.requestRecordingPermissions();
}, []);
Expand All @@ -74,9 +68,12 @@ function VoiceChatScreen() {
setIsRecording(true);
setLiveTranscription('');

recorder.onAudioReady(({ buffer }) => {
speechToText.streamInsert(buffer.getChannelData(0));
});
recorder.onAudioReady(
{ sampleRate: 16000, bufferLength: 1600, channelCount: 1 },
({ buffer }) => {
speechToText.streamInsert(buffer.getChannelData(0));
}
);
recorder.start();

let finalResult = '';
Expand Down
5 changes: 1 addition & 4 deletions apps/llm/metro.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
const { getDefaultConfig } = require('expo/metro-config');
const {
wrapWithAudioAPIMetroConfig,
} = require('react-native-audio-api/metro-config');

const config = getDefaultConfig(__dirname);

Expand All @@ -19,4 +16,4 @@ config.resolver = {

config.resolver.assetExts.push('pte');

module.exports = wrapWithAudioAPIMetroConfig(config);
module.exports = config;
40 changes: 21 additions & 19 deletions apps/llm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,39 +11,41 @@
"lint": "eslint . --ext .ts,.tsx --fix"
},
"dependencies": {
"@expo/log-box": "55.0.7",
"@react-native-executorch/expo-resource-fetcher": "workspace:*",
"@react-native/metro-config": "^0.81.6",
"@react-native/metro-config": "^0.84.1",
"@react-navigation/drawer": "^7.8.1",
"@react-navigation/native": "^7.1.28",
"expo": "^54.0.27",
"expo-brightness": "~14.0.8",
"expo-calendar": "~15.0.8",
"expo-constants": "~18.0.11",
"expo-document-picker": "~13.0.3",
"expo-font": "~14.0.10",
"expo-linking": "~8.0.10",
"expo-router": "~6.0.17",
"expo-status-bar": "~3.0.9",
"metro-config": "^0.81.5",
"react": "19.1.0",
"react-native": "0.81.5",
"react-native-audio-api": "^0.8.2",
"expo": "^55.0.5",
"expo-brightness": "~55.0.8",
"expo-calendar": "~55.0.9",
"expo-constants": "~55.0.7",
"expo-document-picker": "~55.0.8",
"expo-font": "~55.0.4",
"expo-linking": "~55.0.7",
"expo-router": "~55.0.4",
"expo-status-bar": "~55.0.4",
"metro-config": "^0.84.2",
"react": "19.2.4",
"react-dom": "19.2.4",
"react-native": "0.83.2",
"react-native-audio-api": "^0.11.6",
"react-native-device-info": "^15.0.2",
"react-native-executorch": "workspace:*",
"react-native-gesture-handler": "~2.28.0",
"react-native-gesture-handler": "~2.30.0",
"react-native-image-picker": "^7.2.2",
"react-native-loading-spinner-overlay": "^3.0.1",
"react-native-markdown-display": "^7.0.2",
"react-native-reanimated": "~4.1.1",
"react-native-safe-area-context": "~5.6.0",
"react-native-screens": "~4.16.0",
"react-native-reanimated": "~4.2.2",
"react-native-safe-area-context": "~5.7.0",
"react-native-screens": "~4.24.0",
"react-native-svg": "15.15.3",
"react-native-svg-transformer": "^1.5.3",
"react-native-worklets": "0.7.4"
},
"devDependencies": {
"@babel/core": "^7.29.0",
"@types/react": "~19.1.10"
"@types/react": "~19.2.14"
},
"private": true
}
22 changes: 22 additions & 0 deletions apps/llm/plugins/withReactNativeImagePickerFix.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const { withProjectBuildGradle } = require('@expo/config-plugins');

/**
* In a Yarn workspace monorepo, react-native is hoisted to the repo root.
* react-native-image-picker reads REACT_NATIVE_NODE_MODULES_DIR from
* rootProject.ext, so it must be set in the root android/build.gradle.
*/
module.exports = function withReactNativeImagePickerFix(config) {
return withProjectBuildGradle(config, (mod) => {
if (!mod.modResults.contents.includes('REACT_NATIVE_NODE_MODULES_DIR')) {
mod.modResults.contents = mod.modResults.contents.replace(
/^(allprojects\s*\{)/m,
`ext {
REACT_NATIVE_NODE_MODULES_DIR = new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).parentFile.absolutePath
}

$1`
);
}
return mod;
});
};
16 changes: 8 additions & 8 deletions apps/speech/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
},
"dependencies": {
"@react-native-executorch/expo-resource-fetcher": "workspace:*",
"@react-native/metro-config": "^0.84.0",
"@react-native/metro-config": "^0.84.1",
"buffer": "^6.0.3",
"expo": "^54.0.27",
"expo-font": "~14.0.10",
"expo-status-bar": "~3.0.9",
"metro-config": "^0.81.5",
"react": "19.1.0",
"react-native": "0.81.5",
"expo": "^55.0.5",
"expo-font": "~55.0.4",
"expo-status-bar": "~55.0.4",
"metro-config": "^0.84.2",
"react": "19.2.4",
"react-native": "0.83.2",
"react-native-audio-api": "0.11.5",
"react-native-device-info": "^15.0.2",
"react-native-executorch": "workspace:*",
Expand All @@ -31,7 +31,7 @@
},
"devDependencies": {
"@babel/core": "^7.29.0",
"@types/react": "~19.1.10"
"@types/react": "~19.2.14"
},
"private": true
}
22 changes: 12 additions & 10 deletions apps/text-embeddings/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,30 @@
"lint": "eslint . --ext .ts,.tsx --fix"
},
"dependencies": {
"@expo/log-box": "55.0.7",
"@react-native-executorch/expo-resource-fetcher": "workspace:*",
"@react-navigation/drawer": "^7.8.1",
"@react-navigation/native": "^7.1.28",
"expo": "^54.0.27",
"expo-constants": "~18.0.11",
"expo-linking": "~8.0.10",
"expo-router": "~6.0.17",
"expo-status-bar": "~3.0.9",
"react": "19.1.0",
"react-native": "0.81.5",
"expo": "^55.0.5",
"expo-constants": "~55.0.7",
"expo-linking": "~55.0.7",
"expo-router": "~55.0.4",
"expo-status-bar": "~55.0.4",
"react": "19.2.4",
"react-dom": "19.2.4",
"react-native": "0.83.2",
"react-native-executorch": "workspace:*",
"react-native-gesture-handler": "~2.30.0",
"react-native-image-picker": "^7.2.2",
"react-native-image-picker": "^8.2.1",
"react-native-reanimated": "~4.2.2",
"react-native-safe-area-context": "~5.7.0",
"react-native-screens": "~4.16.0",
"react-native-screens": "~4.24.0",
"react-native-svg": "15.15.3",
"react-native-worklets": "0.7.4"
},
"devDependencies": {
"@babel/core": "^7.29.0",
"@types/react": "~19.1.10"
"@types/react": "~19.2.14"
},
"private": true
}
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"typecheck": "tsc"
},
"dependencies": {
"@docsearch/core": "^4.4.0",
"@docsearch/core": "^4.6.0",
"@docsearch/css": "^4.6.0",
"@docsearch/sidepanel": "^4.6.0",
"@docusaurus/core": "^3.9.2",
Expand All @@ -31,7 +31,7 @@
"@mui/material": "^7.3.7",
"@signalwire/docusaurus-plugin-llms-txt": "2.0.0-alpha.7",
"@signalwire/docusaurus-theme-llms-txt": "1.0.0-alpha.9",
"@swmansion/t-rex-ui": "^1.2.2",
"@swmansion/t-rex-ui": "^1.3.0",
"clsx": "^2.1.0",
"copy-text-to-clipboard": "^3.2.2",
"prism-react-renderer": "^2.1.0",
Expand Down
Loading
Loading