Skip to content

Fix/expo ios - #154

Merged
riderodd merged 2 commits into
mainfrom
fix/expo-ios
Sep 12, 2025
Merged

Fix/expo ios#154
riderodd merged 2 commits into
mainfrom
fix/expo-ios

Conversation

@riderodd

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings September 12, 2025 01:04
@riderodd
riderodd merged commit cbdf9eb into main Sep 12, 2025
2 of 7 checks passed
@riderodd
riderodd deleted the fix/expo-ios branch September 12, 2025 01:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes iOS-related issues in the Expo configuration plugin for react-native-vosk, specifically addressing resource file handling and Xcode project management.

  • Corrects the iOS root path calculation to use project root instead of platform project root
  • Replaces manual file copying and Xcode project manipulation with Expo's built-in utilities
  • Bumps the package version from 2.1.2 to 2.1.3

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
plugin/src/withVosk.ts Fixes iOS model resource handling by using IOSConfig utilities and correcting path resolution
package.json Version bump to 2.1.3

Comment thread plugin/src/withVosk.ts
configMod.modRequest.projectRoot,
relModelPath
);
const absSource = path.relative(iosRoot, relModelPath);

Copilot AI Sep 12, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The path.relative function returns a relative path from iosRoot to relModelPath, but the variable name absSource suggests it should be an absolute path. This will likely cause the fs.existsSync check on line 39 to fail when relModelPath is already an absolute path. Consider using path.resolve(configMod.modRequest.projectRoot, relModelPath) instead to create a proper absolute path.

Suggested change
const absSource = path.relative(iosRoot, relModelPath);
const absSource = path.resolve(iosRoot, relModelPath);

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants