Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mateusz1913/vision-camera-plugin-builder
Native boilerplate for Vision Camera plugins
https://github.com/mateusz1913/vision-camera-plugin-builder
android builder ios plugin react-native vision-camera
Last synced: 4 days ago
JSON representation
Native boilerplate for Vision Camera plugins
- Host: GitHub
- URL: https://github.com/mateusz1913/vision-camera-plugin-builder
- Owner: mateusz1913
- License: mit
- Created: 2022-06-30T19:08:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-06T15:59:47.000Z (5 months ago)
- Last Synced: 2024-08-09T23:06:34.936Z (3 months ago)
- Topics: android, builder, ios, plugin, react-native, vision-camera
- Language: TypeScript
- Homepage:
- Size: 7.23 MB
- Stars: 66
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vision Camera Plugin Builder
## 🚀 Usage
```sh
npx vision-camera-plugin-builder@latest ios
``````sh
npx vision-camera-plugin-builder@latest android
```After generating native files, cli will output additional post-setup info
### Supported versions
| vision-camera-plugin-builder | react-native-vision-camera
| --- | --- |
| >= 0.8.0 | 4.0.0+ |
| >= 0.7.0 | 3.8.0+ |
| >= 0.5.0 | 3.5.0+ |
| >= 0.3.0 | 3.0.0+ |
| < 0.3.0 | 2.0.0+ |### Library use case
For `vision-camera-`, it generates:
- Android - inside Android source set:
```
├── android/src/main/
│ ├──
│ ├── ├── Plugin.(java|kt)
│ ├── PluginPackage.(java|kt)
```
- iOS - inside iOS library's source code folder:
```
├── ios
│ ├──
│ ├── ├── Plugin.(m|mm)
│ ├── ├── Plugin.Swift (if Swift selected)
```In case of library use case the CLI will output how to proceed with additional steps for library's `.podspec` and `build.gradle` files
### Application use case
For local usage inside application, it generates:
- Android - inside Android source set:
```
├── android/src/main/
│ ├──
│ ├── ├── Plugin.(java|kt)
│ ├── ├── PluginPackage.(java|kt)
```
- iOS - inside iOS library's source code folder:
```
├── ios
│ ├──
│ ├── ├── Plugin.(m|mm)
│ ├── ├── Plugin.Swift (if Swift selected)
```In case of application use case the CLI will output how to proceed with additional steps for Android application linking of the plugin's package
## ⚙️ Options
| Flag | Input | Description |
| ---- | ----- | ----------- |
| --projectPath (iOS only) | [string] | Path to .xcodeproj file |
| --manifestPath (Android only) | [string] | Path to project's Android Manifest file |
| --pluginName | [string] | Name of the plugin |
| --methodName | [string] | Name of plugin's exported method |
| --lang | [choices] | "Kotlin" or "Java" for Android & "Swift" or "ObjC" or "ObjCPP" for iOS |## License
MIT