2026-07-20 17:06:16 +05:30
|
|
|
require 'json'
|
|
|
|
|
|
|
|
|
|
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
|
|
|
|
|
|
|
|
|
Pod::Spec.new do |s|
|
2026-07-20 21:15:56 +05:30
|
|
|
# NOTE: the pod name MUST be 'AudioRoute' (PascalCase of the npm package name 'audio-route').
|
|
|
|
|
# Capacitor's `cap sync` writes `pod 'AudioRoute', :path => '../../plugins/audio-route'` into the
|
|
|
|
|
# generated Podfile, and CocoaPods then looks for a file literally named AudioRoute.podspec whose
|
|
|
|
|
# s.name is 'AudioRoute'. Any other name → "No podspec found for `AudioRoute`" and pod install fails.
|
|
|
|
|
s.name = 'AudioRoute'
|
2026-07-20 17:06:16 +05:30
|
|
|
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/audio-route.git', :tag => s.version.to_s }
|
|
|
|
|
s.source_files = 'ios/Sources/**/*.{swift,h,m}'
|
2026-08-01 18:48:57 +05:30
|
|
|
s.ios.deployment_target = '15.0'
|
2026-07-20 17:06:16 +05:30
|
|
|
s.dependency 'Capacitor'
|
|
|
|
|
s.swift_version = '5.1'
|
|
|
|
|
end
|