Pod::Spec.new do |s| s.name = 'StingimChannel' s.version = '1.1.0' s.summary = 'STINGIM 客服平台 iOS SDK(实时会话 + 内置聊天 UI)。' s.description = <<-DESC STINGIM 客服平台 iOS SDK:连接/重连、消息收发、会话生命周期、已读、输入中、排队、评价、 文件/图片/语音(OSS 直传)、互动消息、APNs/FCM 推送,以及开箱即用的 UIKit 聊天界面。对接 stingim-gateway 自定义 WebSocket 协议(/visitor)与 stingim-go REST 接口。 DESC s.homepage = 'https://stingim.com/developers/mobile/ios' s.license = { :type => 'Proprietary', :file => 'LICENSE' } s.author = { 'STINGIM' => 'dev@stingim.com' } # Public source archive on stingim.com (no git access needed). scripts/build-public-package.sh adds the # archive's :sha256 to the copy served at https://stingim.com/sdk/ios/StingimChannel.podspec. s.source = { :http => "https://stingim.com/sdk/ios/StingimChannel-#{s.version}.zip", :type => 'zip', :flatten => true, :sha256 => 'f277c9f271f7b762e4438d02154c1b49466c35034326b7498376795950784ed7' } s.ios.deployment_target = '13.0' s.swift_versions = ['6.0'] s.default_subspec = 'Core' # Core:纯逻辑 SDK(无 UI 依赖)。 s.subspec 'Core' do |core| core.source_files = 'Sources/StingimChannel/**/*.swift' core.frameworks = 'Foundation', 'Network', 'Security', 'UserNotifications' core.resource_bundles = { 'StingimChannel_Privacy' => ['Sources/StingimChannel/PrivacyInfo.xcprivacy'] } end # UI:内置 UIKit 聊天界面 + 语音(文件以 #if canImport(UIKit) 包裹)。 s.subspec 'UI' do |ui| ui.source_files = 'Sources/StingimChannelUI/**/*.swift' ui.dependency 'StingimChannel/Core' ui.frameworks = 'UIKit', 'AVFoundation', 'UserNotifications' end end