Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Resolutions & Move to Yarn #185

Merged
merged 1 commit into from
Dec 18, 2023
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
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
with:
node-version: 18.14.0
- name: Install dependencies
run: npm ci
run: yarn install --frozen-lockfile
- name: Build typedocs
run: npm run typedoc
- name: Deploy
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
- name: Install dependencies
run: npm ci
run: yarn install --frozen-lockfile
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v3
# Note: this triggers `prepare` which compiles the types.
- run: npm ci
- run: yarn install --frozen-lockfile
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ Use the [XMTP React Native example app](example) as a tool to start building an
Follow the [React Native guide](https://reactnative.dev/docs/environment-setup) to set up a CLI environment.

```bash
npm install
yarn
cd example
npm install --force
npm run [ios or android]
yarn
yarn run [ios or android]
```

## Install in a managed Expo project
Expand All @@ -41,10 +41,10 @@ npx expo prebuild

For bare React Native projects, [install and configure the `expo` package](https://docs.expo.dev/bare/installing-expo-modules/) before continuing.

### Add the package to your npm dependencies
### Add the package to your yarn dependencies

```bash
npm i @xmtp/react-native-sdk
yarn i @xmtp/react-native-sdk
```

### Configure for iOS
Expand All @@ -55,7 +55,7 @@ In the `ios` directory, update your `Podfile` file as follows:
- Add this line: `pod 'secp256k1.swift', :modular_headers => true`. This is required for web3.swift.

```bash
npm pod-install
npx pod-install
```

### Configure for Android
Expand Down
7 changes: 4 additions & 3 deletions example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ Follow the [React Native guide](https://reactnative.dev/docs/environment-setup)
To use the example app, run:

```bash
npm install
yarn
cd example
npm install --force
npm run [ios or android]
yarn
npx pod-install
yarn run [ios or android]
```

## Run example app unit tests on local emulators
Expand Down
1 change: 0 additions & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "xmtp-react-native-sdk-example",
"version": "1.0.0",
"scripts": {
"preinstall": "npm install --package-lock-only --ignore-scripts && npx npm-force-resolutions",
"start": "expo start --dev-client",
"android": "expo run:android",
"ios": "expo run:ios",
Expand Down
9,194 changes: 9,194 additions & 0 deletions example/yarn.lock

Large diffs are not rendered by default.

Loading
Loading