Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
17 changes: 17 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,25 @@ nodeLinker: node-modules
# a React 19-compatible peer range, bump it in docs/package.json and
# remove this filter — we'd rather follow upstream than carry a local
# suppression.
#
# The root workspace declares `expo-router` as a devDependency only to
# force Yarn to hoist it into the root node_modules alongside
# babel-preset-expo. babel-preset-expo calls require.resolve('expo-router')
# from its own location to decide whether to register the expo-router Babel
# plugin; if the two packages live in different node_modules folders (which
# happens when expo-router ends up per-app and babel-preset-expo is hoisted),
# process.env.EXPO_ROUTER_APP_ROOT never gets replaced and Metro fails to
# bundle expo-router/_ctx.ios.js. Because the root workspace doesn't actually
# execute expo-router code, it legitimately doesn't provide its peers — each
# app that consumes expo-router declares them directly. The pattern below
# silences the resulting YN0002 lines about the ROOT workspace only;
# unmet peer warnings from any other workspace still surface.
logFilters:
- pattern: '*@signalwire/docusaurus-theme-llms-txt*'
level: discard
- pattern: "react-native-executorch-monorepo@workspace:. doesn't provide*requested by expo-router*"
level: discard
- code: YN0086
level: discard

yarnPath: .yarn/releases/yarn-4.1.1.cjs
2 changes: 1 addition & 1 deletion apps/bare-rn/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ require Pod::Executable.execute_command('node', ['-p',
{paths: [process.argv[1]]},
)', __dir__]).strip

platform :ios, min_ios_version_supported
platform :ios, '17.0'
prepare_react_native_project!

linkage = ENV['USE_FRAMEWORKS']
Expand Down
8 changes: 4 additions & 4 deletions apps/bare-rn/ios/bare-rn.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
CURRENT_PROJECT_VERSION = 1;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = "bare-rn/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -291,7 +291,7 @@
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = 1;
INFOPLIST_FILE = "bare-rn/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -360,7 +360,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
LD_RUNPATH_SEARCH_PATHS = (
/usr/lib/swift,
"$(inherited)",
Expand Down Expand Up @@ -429,7 +429,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
LD_RUNPATH_SEARCH_PATHS = (
/usr/lib/swift,
"$(inherited)",
Expand Down
3 changes: 3 additions & 0 deletions apps/computer-vision/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
{
"android": {
"minSdkVersion": 26
},
"ios": {
"deploymentTarget": "17.0"
}
}
]
Expand Down
8 changes: 8 additions & 0 deletions apps/llm/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@
"androidForegroundService": true,
"androidFSTypes": ["mediaPlayback"]
}
],
[
"expo-build-properties",
{
"ios": {
"deploymentTarget": "17.0"
}
}
]
],
"newArchEnabled": true,
Expand Down
24 changes: 13 additions & 11 deletions apps/llm/app/voice_chat/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,7 @@ function VoiceChatScreen() {
useState<STTModelSources>(WHISPER_TINY_EN);
const [error, setError] = useState<string | null>(null);

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

const { setGlobalGenerating } = useContext(GeneratingContext);

Expand All @@ -92,7 +86,7 @@ function VoiceChatScreen() {
AudioManager.setAudioSessionOptions({
iosCategory: 'playAndRecord',
iosMode: 'spokenAudio',
iosOptions: ['allowBluetooth', 'defaultToSpeaker'],
iosOptions: ['allowBluetoothHFP', 'defaultToSpeaker'],
});
AudioManager.requestRecordingPermissions();
}, []);
Expand All @@ -106,9 +100,17 @@ function VoiceChatScreen() {
setIsRecording(true);
setLiveTranscription('');

recorder.onAudioReady(({ buffer }) => {
speechToText.streamInsert(buffer.getChannelData(0));
});
const sampleRate = 16000;
recorder.onAudioReady(
{
sampleRate,
bufferLength: 0.1 * sampleRate,
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;
3 changes: 2 additions & 1 deletion apps/llm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@react-navigation/native": "^7.1.28",
"expo": "^54.0.27",
"expo-brightness": "~14.0.8",
"expo-build-properties": "~1.0.10",
"expo-calendar": "~15.0.8",
"expo-constants": "~18.0.11",
"expo-document-picker": "~13.0.3",
Expand All @@ -26,7 +27,7 @@
"metro-config": "^0.81.5",
"react": "19.1.0",
"react-native": "0.81.5",
"react-native-audio-api": "^0.8.2",
"react-native-audio-api": "0.12.0",
"react-native-device-info": "^15.0.2",
"react-native-executorch": "workspace:*",
"react-native-executorch-expo-resource-fetcher": "workspace:*",
Expand Down
8 changes: 8 additions & 0 deletions apps/speech/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@
"androidForegroundService": true,
"androidFSTypes": ["mediaPlayback", "microphone"]
}
],
[
"expo-build-properties",
{
"ios": {
"deploymentTarget": "17.0"
}
}
]
]
}
Expand Down
1 change: 1 addition & 0 deletions apps/speech/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"@react-native/metro-config": "^0.84.0",
"buffer": "^6.0.3",
"expo": "^54.0.27",
"expo-build-properties": "~1.0.10",
"expo-font": "~14.0.10",
"expo-status-bar": "~3.0.9",
"metro-config": "^0.81.5",
Expand Down
12 changes: 11 additions & 1 deletion apps/text-embeddings/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@
"web": {
"favicon": "./assets/favicon.png"
},
"plugins": ["expo-router"]
"plugins": [
"expo-router",
[
"expo-build-properties",
{
"ios": {
"deploymentTarget": "17.0"
}
}
]
]
}
}
1 change: 1 addition & 0 deletions apps/text-embeddings/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"@react-navigation/drawer": "^7.8.1",
"@react-navigation/native": "^7.1.28",
"expo": "^54.0.27",
"expo-build-properties": "~1.0.10",
"expo-constants": "~18.0.11",
"expo-linking": "~8.0.10",
"expo-router": "~6.0.17",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"eslint-plugin-jsdoc": "^62.7.1",
"eslint-plugin-markdown": "^5.1.0",
"eslint-plugin-prettier": "^5.0.1",
"expo-router": "~6.0.17",
"prettier": "^3.3.3",
"prettier-plugin-jsdoc": "^1.3.0",
"typescript": "~5.9.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 18.1;
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
Expand Down Expand Up @@ -318,7 +318,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 18.1;
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Pod::Spec.new do |s|
s.license = package["license"]
s.authors = package["author"]

s.platforms = { :ios => min_ios_version_supported }
s.platforms = { :ios => '17.0' }
s.source = { :git => "https://github.com/software-mansion/react-native-executorch.git", :tag => "#{s.version}" }


Expand Down
16 changes: 11 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11793,6 +11793,7 @@ __metadata:
"@types/react": "npm:~19.1.10"
expo: "npm:^54.0.27"
expo-brightness: "npm:~14.0.8"
expo-build-properties: "npm:~1.0.10"
expo-calendar: "npm:~15.0.8"
expo-constants: "npm:~18.0.11"
expo-document-picker: "npm:~13.0.3"
Expand All @@ -11803,7 +11804,7 @@ __metadata:
metro-config: "npm:^0.81.5"
react: "npm:19.1.0"
react-native: "npm:0.81.5"
react-native-audio-api: "npm:^0.8.2"
react-native-audio-api: "npm:0.12.0"
react-native-device-info: "npm:^15.0.2"
react-native-executorch: "workspace:*"
react-native-executorch-expo-resource-fetcher: "workspace:*"
Expand Down Expand Up @@ -14360,15 +14361,17 @@ __metadata:
languageName: node
linkType: hard

"react-native-audio-api@npm:^0.8.2":
version: 0.8.4
resolution: "react-native-audio-api@npm:0.8.4"
"react-native-audio-api@npm:0.12.0":
version: 0.12.0
resolution: "react-native-audio-api@npm:0.12.0"
dependencies:
semver: "npm:^7.7.3"
peerDependencies:
react: "*"
react-native: "*"
bin:
setup-rn-audio-api-web: scripts/setup-rn-audio-api-web.js
checksum: 10/35cae9ba8509c90ef625c448b5fbc40d9c8b80c3dd470f5bff9c298b2784132cec8d7370c8f2f69d1a8d586d5b91f2c4eb7b8e412bfd008729ceaf27f44550be
checksum: 10/3328a36649c30ea24a6c957f89c8f97969f06f530a72147eb2c59d7332b8ce5b1a2a34dd95f2a6cd2f8b279505161e1117d1329bfd5101167971c0189e5ab5f3
languageName: node
linkType: hard

Expand Down Expand Up @@ -14483,6 +14486,7 @@ __metadata:
eslint-plugin-jsdoc: "npm:^62.7.1"
eslint-plugin-markdown: "npm:^5.1.0"
eslint-plugin-prettier: "npm:^5.0.1"
expo-router: "npm:~6.0.17"
prettier: "npm:^3.3.3"
prettier-plugin-jsdoc: "npm:^1.3.0"
typescript: "npm:~5.9.2"
Expand Down Expand Up @@ -15690,6 +15694,7 @@ __metadata:
"@types/react": "npm:~19.1.10"
buffer: "npm:^6.0.3"
expo: "npm:^54.0.27"
expo-build-properties: "npm:~1.0.10"
expo-font: "npm:~14.0.10"
expo-status-bar: "npm:~3.0.9"
metro-config: "npm:^0.81.5"
Expand Down Expand Up @@ -16145,6 +16150,7 @@ __metadata:
"@react-navigation/native": "npm:^7.1.28"
"@types/react": "npm:~19.1.10"
expo: "npm:^54.0.27"
expo-build-properties: "npm:~1.0.10"
expo-constants: "npm:~18.0.11"
expo-linking: "npm:~8.0.10"
expo-router: "npm:~6.0.17"
Expand Down
Loading