24 lines
1.0 KiB
Ruby
24 lines
1.0 KiB
Ruby
|
|
require 'json'
|
||
|
|
|
||
|
|
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
||
|
|
|
||
|
|
Pod::Spec.new do |s|
|
||
|
|
# NOTE: the pod name MUST be 'NativeCall' (PascalCase of the npm package name 'native-call').
|
||
|
|
# Capacitor's `cap sync` writes `pod 'NativeCall', :path => '../../plugins/native-call'` into the
|
||
|
|
# generated Podfile, and CocoaPods then looks for a file literally named NativeCall.podspec whose
|
||
|
|
# s.name is 'NativeCall'. Any other name → "No podspec found for `NativeCall`" and pod install fails.
|
||
|
|
s.name = 'NativeCall'
|
||
|
|
s.version = package['version']
|
||
|
|
s.summary = package['description']
|
||
|
|
s.license = package['license']
|
||
|
|
s.homepage = 'https://bizgaze.com'
|
||
|
|
s.author = 'BizGaze'
|
||
|
|
s.source = { :git => 'https://bizgaze.com/native-call.git', :tag => s.version.to_s }
|
||
|
|
s.source_files = 'ios/Sources/**/*.{swift,h,m}'
|
||
|
|
s.ios.deployment_target = '14.0'
|
||
|
|
s.dependency 'Capacitor'
|
||
|
|
# CallKit + PushKit + AVFoundation are system frameworks (no external pod).
|
||
|
|
s.frameworks = 'CallKit', 'PushKit', 'AVFoundation'
|
||
|
|
s.swift_version = '5.1'
|
||
|
|
end
|