
新增Package.swift和Package.resolved文件以支持Swift Package管理,创建API相关文件(API.swift、APICaller.swift、APIConstants.swift、APIEndpoints.swift、APIService.swift、APILogger.swift、APIModels.swift、Integration-Guide.md)以实现API请求管理和网络交互功能,增强项目的功能性和可扩展性。同时更新.gitignore以排除构建文件和临时文件。
40 lines
1.2 KiB
Ruby
40 lines
1.2 KiB
Ruby
# Uncomment the next line to define a global platform for your project
|
|
platform :ios, '13.0'
|
|
|
|
target 'yana' do
|
|
# Comment the next line if you don't want to use dynamic frameworks
|
|
use_frameworks!
|
|
|
|
# Pods for yana
|
|
|
|
# IM 即时通讯
|
|
pod 'NIMSDK_LITE'
|
|
# 基础库
|
|
pod 'NEChatKit', '10.6.1'
|
|
pod 'NEChatUIKit', '10.6.1' # 会话(聊天)组件
|
|
pod 'NEContactUIKit', '10.6.1' # 通讯录组件
|
|
pod 'NELocalConversationUIKit', '10.6.1' # 本地会话列表组件。
|
|
|
|
# Networks
|
|
pod 'Alamofire'
|
|
end
|
|
|
|
post_install do |installer|
|
|
installer.pods_project.targets.each do |target|
|
|
target.build_configurations.each do |config|
|
|
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
|
|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
|
|
end
|
|
end
|
|
|
|
# 新增冲突处理脚本
|
|
installer.pods_project.targets.each do |target|
|
|
target.build_phases.each do |phase|
|
|
if phase.respond_to?(:name) && phase.name == 'Embed Frameworks'
|
|
phase.input_paths.delete_if { |path|
|
|
path.end_with?('nimsdk.xcframework', 'nimsocketrocket.xcframework', 'nimquic.xcframework', 'nimnos.xcframework')
|
|
}
|
|
end
|
|
end
|
|
end
|
|
end |