Skip to content

Commit 58e110b

Browse files
authored
chore: make adapters unscoped packages (#970)
## Description Make resource fetchers unscoped packages ### Introduces a breaking change? - [ ] Yes - [x] No ### Type of change - [ ] Bug fix (change which fixes an issue) - [ ] New feature (change which adds functionality) - [x] Documentation update (improves or adds clarity to existing documentation) - [x] Other (chores, tests, code style improvements etc.) ### Tested on - [ ] iOS - [ ] Android ### Testing instructions <!-- Provide step-by-step instructions on how to test your changes. Include setup details if necessary. --> ### Screenshots <!-- Add screenshots here, if applicable --> ### Related issues Closes #891 ### Checklist - [ ] I have performed a self-review of my code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have updated the documentation accordingly - [ ] My changes generate no new warnings ### Additional notes <!-- Include any additional information, assumptions, or context that reviewers might need to understand this PR. -->
1 parent 4279ad4 commit 58e110b

File tree

29 files changed

+91
-91
lines changed

29 files changed

+91
-91
lines changed

.github/workflows/npm-publish-bare-resource-fetcher.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,4 @@ jobs:
118118
run: mv ${{ env.PACKAGE_DIR }}/${{ env.PACKAGE_NAME }} .
119119

120120
- name: Publish package to npm
121-
run: npm publish $PACKAGE_NAME --tag ${{ env.TAG }} --provenance --access public
121+
run: npm publish $PACKAGE_NAME --tag ${{ env.TAG }} --provenance

.github/workflows/npm-publish-expo-resource-fetcher.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,4 @@ jobs:
118118
run: mv ${{ env.PACKAGE_DIR }}/${{ env.PACKAGE_NAME }} .
119119

120120
- name: Publish package to npm
121-
run: npm publish $PACKAGE_NAME --tag ${{ env.TAG }} --provenance --access public
121+
run: npm publish $PACKAGE_NAME --tag ${{ env.TAG }} --provenance

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ React Native ExecuTorch is powering [Private Mind](https://privatemind.swmansion
8282
yarn add react-native-executorch
8383

8484
# If you use expo, please add these packages for resource fetching:
85-
yarn add @react-native-executorch/expo-resource-fetcher
85+
yarn add react-native-executorch-expo-resource-fetcher
8686
yarn add expo-file-system expo-asset
8787

8888
#if you use bare React Native project use these packages:
89-
yarn add @react-native-executorch/bare-resource-fetcher
89+
yarn add react-native-executorch-bare-resource-fetcher
9090
yarn add @dr.pogodin/react-native-fs @kesha-antonov/react-native-background-downloader
9191

9292
# Depending on the platform, choose either iOS or Android
@@ -104,7 +104,7 @@ import {
104104
Message,
105105
initExecutorch,
106106
} from 'react-native-executorch';
107-
import { ExpoResourceFetcher } from '@react-native-executorch/expo-resource-fetcher';
107+
import { ExpoResourceFetcher } from 'react-native-executorch-expo-resource-fetcher';
108108

109109
initExecutorch({
110110
resourceFetcher: ExpoResourceFetcher,

apps/bare_rn/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
useLLM,
1818
LLAMA3_2_1B_SPINQUANT,
1919
} from 'react-native-executorch';
20-
import { BareResourceFetcher } from '@react-native-executorch/bare-resource-fetcher';
20+
import { BareResourceFetcher } from 'react-native-executorch-bare-resource-fetcher';
2121
import { setConfig } from '@kesha-antonov/react-native-background-downloader';
2222
import { SafeAreaProvider, SafeAreaView } from 'react-native-safe-area-context';
2323

apps/bare_rn/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
"dependencies": {
1414
"@dr.pogodin/react-native-fs": "^2.36.2",
1515
"@kesha-antonov/react-native-background-downloader": "^4.4.5",
16-
"@react-native-executorch/bare-resource-fetcher": "workspace:*",
1716
"react": "19.1.0",
1817
"react-native": "0.81.5",
1918
"react-native-executorch": "workspace:*",
19+
"react-native-executorch-bare-resource-fetcher": "workspace:*",
2020
"react-native-safe-area-context": "^5.5.2"
2121
},
2222
"devDependencies": {

apps/computer-vision/app/_layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Drawer } from 'expo-router/drawer';
22
import { initExecutorch } from 'react-native-executorch';
3-
import { ExpoResourceFetcher } from '@react-native-executorch/expo-resource-fetcher';
3+
import { ExpoResourceFetcher } from 'react-native-executorch-expo-resource-fetcher';
44

55
import ColorPalette from '../colors';
66
import React, { useState } from 'react';

apps/computer-vision/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"lint": "eslint . --ext .ts,.tsx --fix"
1212
},
1313
"dependencies": {
14-
"@react-native-executorch/expo-resource-fetcher": "workspace:*",
1514
"@react-native/metro-config": "^0.81.5",
1615
"@react-navigation/drawer": "^7.8.1",
1716
"@react-navigation/native": "^7.1.28",
@@ -28,6 +27,7 @@
2827
"react-native": "0.81.5",
2928
"react-native-device-info": "^15.0.2",
3029
"react-native-executorch": "workspace:*",
30+
"react-native-executorch-expo-resource-fetcher": "workspace:*",
3131
"react-native-gesture-handler": "~2.28.0",
3232
"react-native-image-picker": "^7.2.2",
3333
"react-native-loading-spinner-overlay": "^3.0.1",

apps/computer-vision/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"noEmit": true,
1111
"paths": {
1212
"react-native-executorch": ["../../packages/react-native-executorch/src"],
13-
"@react-native-executorch/expo-resource-fetcher": [
13+
"react-native-executorch-expo-resource-fetcher": [
1414
"../../packages/expo-resource-fetcher/src"
1515
]
1616
}

apps/llm/app/_layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Drawer } from 'expo-router/drawer';
22
import { initExecutorch } from 'react-native-executorch';
3-
import { ExpoResourceFetcher } from '@react-native-executorch/expo-resource-fetcher';
3+
import { ExpoResourceFetcher } from 'react-native-executorch-expo-resource-fetcher';
44
import ColorPalette from '../colors';
55
import React, { useState } from 'react';
66
import { Text, StyleSheet, View } from 'react-native';

apps/llm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"lint": "eslint . --ext .ts,.tsx --fix"
1212
},
1313
"dependencies": {
14-
"@react-native-executorch/expo-resource-fetcher": "workspace:*",
1514
"@react-native/metro-config": "^0.81.6",
1615
"@react-navigation/drawer": "^7.8.1",
1716
"@react-navigation/native": "^7.1.28",
@@ -30,6 +29,7 @@
3029
"react-native-audio-api": "^0.8.2",
3130
"react-native-device-info": "^15.0.2",
3231
"react-native-executorch": "workspace:*",
32+
"react-native-executorch-expo-resource-fetcher": "workspace:*",
3333
"react-native-gesture-handler": "~2.28.0",
3434
"react-native-image-picker": "^7.2.2",
3535
"react-native-loading-spinner-overlay": "^3.0.1",

0 commit comments

Comments
 (0)