0.7.0 • Published 4 months ago

vision-camera-plugin-builder v0.7.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Vision Camera Plugin Builder

🚀 Usage

npx vision-camera-plugin-builder@latest ios
npx vision-camera-plugin-builder@latest android

After generating native files, cli will output additional post-setup info

Supported versions

vision-camera-plugin-builderreact-native-vision-camera
>= 0.7.03.8.0+
>= 0.5.03.5.0+
>= 0.3.03.0.0+
< 0.3.02.0.0+

Library use case

For vision-camera-<pluginName>, it generates:

  • Android - inside Android source set:
    ├── android/src/main/<packageName>
    │   ├── <pluginName>
    │   ├──   ├── <pluginName>Plugin.(java|kt)
    │   ├── <pluginName>PluginPackage.(java|kt)
  • iOS - inside iOS library's source code folder:
    ├── ios
    │   ├── <pluginName>
    │   ├──   ├── <pluginName>Plugin.(m|mm)
    │   ├──   ├── <pluginName>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/<packageName>
    │   ├── <pluginName>
    │   ├──   ├── <pluginName>Plugin.(java|kt)
    │   ├──   ├── <pluginName>PluginPackage.(java|kt)
  • iOS - inside iOS library's source code folder:
    ├── ios
    │   ├── <pluginName>
    │   ├──   ├── <pluginName>Plugin.(m|mm)
    │   ├──   ├── <pluginName>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

FlagInputDescription
--projectPath (iOS only)stringPath to .xcodeproj file
--manifestPath (Android only)stringPath to project's Android Manifest file
--pluginNamestringName of the plugin
--methodNamestringName of plugin's exported method
--langchoices"Kotlin" or "Java" for Android & "Swift" or "ObjC" or "ObjCPP" for iOS

License

MIT

0.7.0

4 months ago

0.6.0

4 months ago

0.5.0

7 months ago

0.3.0

8 months ago

0.4.1

7 months ago

0.4.0

8 months ago

0.3.1

8 months ago

0.4.2

7 months ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago