Skip to content

Commit

Permalink
fix: ios ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Naturalclar committed Nov 26, 2024
1 parent a6ad8cb commit 777f8d0
Show file tree
Hide file tree
Showing 4 changed files with 1,107 additions and 42 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,7 @@ jobs:
- name: Install Dependencies
run: yarn
- name: Install Podfiles
run: cd example && yarn pod
- name: Set node binary
run: echo "export NODE_BINARY=$(which node)" > ./ios/.xcode.env
run: cd example && npx pod-install
- name: Build example app
run: yarn ios --no-packager
# windows:
Expand Down
41 changes: 41 additions & 0 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "Example",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"build:android": "npm run mkdist && react-native bundle --entry-file index.js --platform android --dev true --bundle-output dist/main.android.jsbundle --assets-dest dist/res",
"build:ios": "npm run mkdist && react-native bundle --entry-file index.js --platform ios --dev true --bundle-output dist/main.ios.jsbundle --assets-dest dist",
"ios": "react-native run-ios",
"mkdist": "node -e \"require('node:fs').mkdirSync('dist', { recursive: true, mode: 0o755 })\"",
"start": "react-native start",
"test": "jest"
},
"dependencies": {
"@react-native-clipboard/clipboard": "1.15.0",
"react": "18.3.1",
"react-native": "0.76.3"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.3",
"@babel/runtime": "^7.25.0",
"@react-native-community/cli": "15.0.1",
"@react-native-community/cli-platform-android": "15.0.1",
"@react-native-community/cli-platform-ios": "15.0.1",
"@react-native/babel-preset": "0.76.3",
"@react-native/metro-config": "0.76.3",
"@react-native/typescript-config": "0.76.3",
"@rnx-kit/metro-config": "^2.0.0",
"@types/react": "^18.2.6",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.6.3",
"jest": "^29.6.3",
"react-native-test-app": "^4.0.4",
"react-test-renderer": "18.3.1",
"typescript": "5.0.4"
},
"engines": {
"node": ">=18"
}
}
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
"name": "@react-native-clipboard/clipboard",
"version": "1.15.0",
"description": "React Native Clipboard API for macOS, iOS, Android, and Windows",
"keywords": ["Clipboard", "getString", "react-native", "setString"],
"keywords": [
"Clipboard",
"getString",
"react-native",
"setString"
],
"homepage": "https://github.com/react-native-clipboard/clipboard#readme",
"bugs": {
"url": "https://github.com/react-native-clipboard/clipboard/issues"
Expand Down Expand Up @@ -88,5 +93,7 @@
}
},
"packageManager": "[email protected]",
"workspaces": ["example"]
"workspaces": [
"example"
]
}
Loading

0 comments on commit 777f8d0

Please sign in to comment.