diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..c4f4301
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,31 @@
+# Changelog
+
+## 2.1.4 (2025-09-12)
+
+* chore: add changelog.md ([12de6fa](https://github.com/riderodd/react-native-vosk/commit/12de6fa))
+* chore: release 0.3.2 (#80) ([37ec42a](https://github.com/riderodd/react-native-vosk/commit/37ec42a)), closes [#80](https://github.com/riderodd/react-native-vosk/issues/80)
+* chore: updated release it deps (#105) ([b73429c](https://github.com/riderodd/react-native-vosk/commit/b73429c)), closes [#105](https://github.com/riderodd/react-native-vosk/issues/105)
+* chore(deps-dev): bump @react-native/metro-config from 0.76.1 to 0.79.2 (#118) ([a14e95a](https://github.com/riderodd/react-native-vosk/commit/a14e95a)), closes [#118](https://github.com/riderodd/react-native-vosk/issues/118)
+* fix: correct iOS model path handling in withVosk plugin ([d648952](https://github.com/riderodd/react-native-vosk/commit/d648952))
+* fix: Fix format rate error on iOS (#104) ([d8fe8b0](https://github.com/riderodd/react-native-vosk/commit/d8fe8b0)), closes [#104](https://github.com/riderodd/react-native-vosk/issues/104)
+* fix: yarn lockfile (#155) ([507e67d](https://github.com/riderodd/react-native-vosk/commit/507e67d)), closes [#155](https://github.com/riderodd/react-native-vosk/issues/155)
+* #67: replace file:// in name path, have a more descriptive log (#79) ([4e756da](https://github.com/riderodd/react-native-vosk/commit/4e756da)), closes [#67](https://github.com/riderodd/react-native-vosk/issues/67) [#79](https://github.com/riderodd/react-native-vosk/issues/79)
+* Add Expo support for react-native-vosk (#151) ([fec6fb9](https://github.com/riderodd/react-native-vosk/commit/fec6fb9)), closes [#151](https://github.com/riderodd/react-native-vosk/issues/151)
+* Create dependabot.yml (#71) ([8634eba](https://github.com/riderodd/react-native-vosk/commit/8634eba)), closes [#71](https://github.com/riderodd/react-native-vosk/issues/71)
+* fix crashes (#143) ([cc9ea78](https://github.com/riderodd/react-native-vosk/commit/cc9ea78)), closes [#143](https://github.com/riderodd/react-native-vosk/issues/143)
+* Fix Expo plugin configuration and dependencies (#152) ([3fa62f7](https://github.com/riderodd/react-native-vosk/commit/3fa62f7)), closes [#152](https://github.com/riderodd/react-native-vosk/issues/152)
+* Fix/expo ios (#154) ([cbdf9eb](https://github.com/riderodd/react-native-vosk/commit/cbdf9eb)), closes [#154](https://github.com/riderodd/react-native-vosk/issues/154)
+* Fix/update version (#106) ([eeebd52](https://github.com/riderodd/react-native-vosk/commit/eeebd52)), closes [#106](https://github.com/riderodd/react-native-vosk/issues/106)
+* Try to make expo plugin works (#153) ([b54f844](https://github.com/riderodd/react-native-vosk/commit/b54f844)), closes [#153](https://github.com/riderodd/react-native-vosk/issues/153)
+* Update dependabot.yml (#72) ([4013cf3](https://github.com/riderodd/react-native-vosk/commit/4013cf3)), closes [#72](https://github.com/riderodd/react-native-vosk/issues/72)
+* Update issue templates (#76) ([9e4ac88](https://github.com/riderodd/react-native-vosk/commit/9e4ac88)), closes [#76](https://github.com/riderodd/react-native-vosk/issues/76)
+* Update to TurboModules with breaking changes (#150) ([4869ff0](https://github.com/riderodd/react-native-vosk/commit/4869ff0)), closes [#150](https://github.com/riderodd/react-native-vosk/issues/150)
+* Update Vosk Android library and model loading method (#149) ([3248919](https://github.com/riderodd/react-native-vosk/commit/3248919)), closes [#149](https://github.com/riderodd/react-native-vosk/issues/149)
+* docs: add Copilot Coding Agent onboarding instructions (#148) ([1881c34](https://github.com/riderodd/react-native-vosk/commit/1881c34)), closes [#148](https://github.com/riderodd/react-native-vosk/issues/148)
+
+
+### BREAKING CHANGE
+
+* the model is not searched in the android project by default anymore
+
+* chore: release 1.0.0
diff --git a/package.json b/package.json
index 6c0dd83..15a9941 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "react-native-vosk",
- "version": "2.1.3",
+ "version": "2.1.4",
"description": "Speech recognition module for react native using Vosk library",
"types": "lib/typescript/src/index.d.ts",
"main": "lib/commonjs/index.js",
@@ -124,6 +124,7 @@
},
"plugins": {
"@release-it/conventional-changelog": {
+ "infile": "CHANGELOG.md",
"preset": {
"name": "angular"
}
diff --git a/plugin/src/withVosk.ts b/plugin/src/withVosk.ts
index 0d277e1..4a42904 100644
--- a/plugin/src/withVosk.ts
+++ b/plugin/src/withVosk.ts
@@ -31,11 +31,14 @@ const withVosk: ConfigPlugin = (config, props) => {
if (models.length) {
withXcodeProject(config, (configMod) => {
const project = configMod.modResults;
- const iosRoot = configMod.modRequest.projectRoot; // /ios
+ const iosRoot = configMod.modRequest.platformProjectRoot; // /ios
IOSConfig.XcodeUtils.ensureGroupRecursively(project, 'Resources');
models.forEach((relModelPath: string) => {
- const absSource = path.relative(iosRoot, relModelPath);
+ const absSource = path.join(
+ configMod.modRequest.projectRoot,
+ relModelPath
+ );
if (!fs.existsSync(absSource)) {
console.warn(
'[react-native-vosk] iOS model path not found: ' + absSource
@@ -43,7 +46,7 @@ const withVosk: ConfigPlugin = (config, props) => {
return;
}
IOSConfig.XcodeUtils.addResourceFileToGroup({
- filepath: absSource,
+ filepath: path.relative(iosRoot, absSource),
groupName: 'Resources',
project,
isBuildFile: true,