41 lines
2.4 KiB
Ruby
41 lines
2.4 KiB
Ruby
require_relative '../../../../node_modules/.bun/@capacitor+ios@8.4.1+767ac80cbab8ae50/node_modules/@capacitor/ios/scripts/pods_helpers'
|
|||
|
|
|
||
|
|
platform :ios, '15.5'
|
||
|
|
use_frameworks!
|
||
|
|
|
||
|
|
# workaround to avoid Xcode caching of Pods that requires
|
||
|
|
# Product -> Clean Build Folder after new Cordova plugins installed
|
||
|
|
# Requires CocoaPods 1.6 or newer
|
||
|
|
install! 'cocoapods', :disable_input_output_paths => true
|
||
|
|
|
||
|
|
def capacitor_pods
|
||
|
|
pod 'Capacitor', :path => '../../../../node_modules/.bun/@capacitor+ios@8.4.1+767ac80cbab8ae50/node_modules/@capacitor/ios'
|
||
|
|
pod 'CapacitorCordova', :path => '../../../../node_modules/.bun/@capacitor+ios@8.4.1+767ac80cbab8ae50/node_modules/@capacitor/ios'
|
||
|
|
pod 'AparajitaCapacitorSecureStorage', :path => '../../../../node_modules/.bun/@aparajita+capacitor-secure-storage@8.0.0/node_modules/@aparajita/capacitor-secure-storage'
|
||
|
|
pod 'CapacitorMlkitBarcodeScanning', :path => '../../../../node_modules/.bun/@capacitor-mlkit+barcode-scanning@8.1.0+767ac80cbab8ae50/node_modules/@capacitor-mlkit/barcode-scanning'
|
||
|
|
pod 'CapacitorApp', :path => '../../../../node_modules/.bun/@capacitor+app@8.1.0+767ac80cbab8ae50/node_modules/@capacitor/app'
|
||
|
|
pod 'CapacitorKeyboard', :path => '../../../../node_modules/.bun/@capacitor+keyboard@8.0.5+767ac80cbab8ae50/node_modules/@capacitor/keyboard'
|
||
|
|
pod 'CapacitorPushNotifications', :path => '../../../../node_modules/.bun/@capacitor+push-notifications@8.1.1+767ac80cbab8ae50/node_modules/@capacitor/push-notifications'
|
||
|
|
pod 'CapacitorStatusBar', :path => '../../../../node_modules/.bun/@capacitor+status-bar@8.0.2+767ac80cbab8ae50/node_modules/@capacitor/status-bar'
|
||
|
|
end
|
||
|
|
|
||
|
|
target 'App' do
|
||
|
|
capacitor_pods
|
||
|
|
# Add your Pods here
|
||
|
|
end
|
||
|
|
|
||
|
|
post_install do |installer|
|
||
|
|
assertDeploymentTarget(installer)
|
||
|
|
# Xcode 16+/iOS 26 SDK rejects deployment targets below 15.0, and GoogleMLKit
|
||
|
|
# (pulled in by the barcode scanner) requires iOS 15.5+. Force every Pods target
|
||
|
|
# up so the Capacitor/Cordova/MLKit pods build for a real device.
|
||
|
|
installer.pods_project.targets.each do |target|
|
||
|
|
target.build_configurations.each do |config|
|
||
|
|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.5'
|
||
|
|
# Capacitor's Cordova compatibility headers use quoted includes; newer Xcode
|
||
|
|
# treats those as errors in framework headers. Keep it a (non-fatal) warning.
|
||
|
|
config.build_settings['CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER'] = 'NO'
|
||
|
|
end
|
||
|
|
end
|
||
|
|
end
|