require 'json' package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) Pod::Spec.new do |s| s.name = 'UserpilotCapacitor' s.version = package['version'] s.summary = package['description'] s.license = package['license'] s.homepage = 'https://docs.userpilot.com/developer/installation/mobile/capacitor/installation' s.author = package['author'] # Never fetched: Capacitor consumes this pod by `:path` out of node_modules. # Declared only because CocoaPods requires a source on every spec, and no # longer read from package.json's `repository`, which has been dropped. s.source = { :git => 'https://github.com/Userpilot/capacitor-plugin.git', :tag => s.version.to_s } s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}' s.ios.deployment_target = '13.0' s.dependency 'Capacitor' s.dependency "Userpilot", "1.4.0" s.swift_version = '5.1' end