Vision Camera Plugin Builder
π Usage
npx vision-camera-plugin-builder ios
npx vision-camera-plugin-builder android
After generating native files, cli will output additional post-setup info
:info: the CLI from v0.3.0 only supports Vision Camera v3 plugins, for Vision Camera v2 plugins use npx vision-camera-plugin-builder@0.2.1
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
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