Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More β†’
Socket
Sign inDemoInstall
Socket

vision-camera-plugin-builder

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vision-camera-plugin-builder

Generate Vision Camera plugin boilerplate

  • 0.2.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Vision Camera Plugin Builder

Vision Camera Plugin Builder logo
Create Vision Camera plugin native boilerplate in a few seconds

πŸ€” How it works

Gif with how Vision Camera Plugin Builder works
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)
    β”‚   β”œβ”€β”€ <projectName>-Bridging-Header.h (if Swift selected & no bridging header specified)
    
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)
    β”‚   β”œβ”€β”€ <projectName>-Bridging-Header.h (if Swift selected & no bridging header specified)
    

πŸš€ Usage

:warning: To generate ios boilerplate, you must first install xcodeproj gem

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

After generating native files, cli will output additional info like suggested JS setup, or Android package manual linking info

βš™οΈ Options

FlagInputDescription
--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

Keywords

FAQs

Package last updated on 01 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc