Commit 98fa8e66 authored by Wei Han's avatar Wei Han

Update README.md

parent 106bf6c9
# react-native-qms-plugin # to update/create new xcframework
defect management QMS plugin ## Run in framework/QmsPluginFramework path
xcodebuild archive \
-scheme QmsPluginFramework \
-destination "generic/platform=iOS" \
-archivePath ./build/ios_devices.xcarchive \
SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES
## Installation xcodebuild archive \
-scheme QmsPluginFramework \
-destination "generic/platform=iOS Simulator" \
-archivePath ./build/ios_simulators.xcarchive \
SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES
xcodebuild -create-xcframework \
-framework ./build/ios_devices.xcarchive/Products/Library/Frameworks/QmsPluginFramework.framework \
-framework ./build/ios_simulators.xcarchive/Products/Library/Frameworks/QmsPluginFramework.framework \
-output ./QmsPluginFramework.xcframework
```sh ## To use in test app
npm install react-native-qms-plugin
```
1. add this line under dependencies in testApp's package.json
"QmsPlugin": "git+http://convep.ddns.me:20000/WeiHan/weihan-plugin.git",
## Usage 2. then run yarn install
3. replace the ios, src, package.json and QmsPlugin.podspec folders/files in testApp's node_modules with updated folders/files from this git
```js 4. import the package
import { multiply } from 'react-native-qms-plugin'; - import {showPluginUI} from 'QmsPlugin';
// ... 5. call the function
\ No newline at end of file
const result = multiply(3, 7);
```
## Contributing
- [Development workflow](CONTRIBUTING.md#development-workflow)
- [Sending a pull request](CONTRIBUTING.md#sending-a-pull-request)
- [Code of conduct](CODE_OF_CONDUCT.md)
## License
MIT
---
Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment