Module: Pod::Podfile::CapacitorLynxDSL

Included in:
Pod::Podfile, DSL
Defined in:
lib/cocoapods_plugin.rb

Instance Method Summary collapse

Instance Method Details

#use_capacitor_plugins!(options = {}) ⇒ Object

Links every Capacitor plugin found in node_modules.

plugin 'cocoapods-lynx-capacitor'

target 'App' do
use_lynx_library!         # the bridge
use_capacitor_plugins!    # the plugins it dispatches to
end

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :root (String)

    where to start looking for node_modules. Defaults to the Podfile's directory. Pass this when the app's package.json does not sit on the Podfile's ancestor path.

  • :include (Array<String>)

    only link these npm packages

  • :exclude (Array<String>)

    never link these npm packages

  • :runtime (Boolean)

    also link Capacitor and CapacitorCordova from @capacitor/ios. Defaults to true; every plugin podspec depends on Capacitor, and that dependency can only be satisfied by a local path.



24
25
26
# File 'lib/cocoapods_plugin.rb', line 24

def use_capacitor_plugins!(options = {})
  ::Capacitor::Lynx::Autolink.install!(self, options)
end