#source 'https://github.com/CocoaPods/Specs.git'
|
#source 'https://gitee.com/mirrors/CocoaPods-Specs.git'
|
#source 'https://github.com/volcengine/volcengine-specs.git'
|
#source 'http://repo.baichuan-ios.taobao.com/baichuanSDK/AliBCSpecs.git'
|
source 'https://github.com/CocoaPods/Specs.git'
|
source 'https://github.com/volcengine/volcengine-specs.git'
|
platform :ios, '12.0'
|
#platform :ios, '13.0'
|
install! 'cocoapods', :disable_input_output_paths => true
|
use_frameworks!
|
|
target 'BuWanVideo2.0' do
|
|
pod 'AFNetworking', '~>3.0'
|
pod 'YYWebImage'
|
pod 'YYImage/WebP'
|
|
pod 'YYModel'
|
pod 'SDWebImage','5.10.0'
|
|
pod 'ReactiveCocoa', :git => 'https://github.com/zhao0/ReactiveCocoa.git', :tag => '2.5.2'
|
|
pod 'UMCCommon'
|
pod 'SDAutoLayout'
|
pod 'IQKeyboardManager'
|
pod 'SVProgressHUD'
|
# 腾讯广告
|
pod 'GDTMobSDK', '4.15.10'
|
# 百度广告
|
pod 'BaiduMobAdSDK', '5.370'
|
# 快手广告
|
pod 'KSAdSDK', '3.3.71'
|
|
# GroMore SDK
|
pod 'Ads-CN','6.6.1.0', :subspecs => ['BUAdSDK','CSJMediation']
|
pod 'TTSDKFramework', '1.45.2.5-standard', :subspecs => [ 'Player-SR' ]
|
pod 'RangersAPM', '5.1.3', :subspecs => [ 'Crash', 'EventMonitor', 'CN' ]
|
pod 'RangersAppLog', '6.16.9', :subspecs => [ 'Log', 'Host/CN' ]
|
|
pod 'GMBaiduAdapter', '5.370.1'
|
pod 'GMGdtAdapter', '4.15.10.0'
|
pod 'GMKsAdapter', '3.3.71.0'
|
|
# LCDSDK,版本号以赋能平台生成的Pod命令为准
|
# pod 'Pangrowth', '5.0.0.0', :subspecs => [ 'media', 'djx-lite', 'nov' ]
|
pod 'Pangrowth', '5.3.0.0', :subspecs => [ 'media' ]
|
pod 'PangrowthX', '2.7.0.0', :subspecs => [ 'shortplay','ministory' ]
|
|
|
|
|
pod 'Toast', '~> 4.0.0'
|
# pod 'Ads-Global'
|
# 微信登录
|
pod 'WechatOpenSDK-XCFramework'
|
end
|
|
def find_and_replace(dir, findstr, replacestr)
|
Dir[dir].each do |name|
|
text = File.read(name)
|
replace = text.gsub(findstr, replacestr)
|
if text != replace
|
puts "Fix: " + name
|
File.open(name, "w") { |file| file.puts replace }
|
STDOUT.flush
|
end
|
end
|
Dir[dir + '*/'].each(&method(:find_and_replace))
|
end
|
|
post_install do |installer_representation|
|
|
|
installer_representation.generated_projects.each do |project|
|
project.targets.each do |target|
|
if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
|
target.build_configurations.each do |config|
|
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
|
end
|
end
|
target.build_configurations.each do |config|
|
config.build_settings["ENABLE_MODULE_VERIFIER"] = "NO"
|
config.build_settings["ENABLE_USER_SCRIPT_SANDBOXING"] = "NO"
|
config.build_settings["CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER"] = "NO"
|
end
|
end
|
end
|
|
# 省略
|
# Xcode14问题补丁,升级后可以移除:https://github.com/CocoaPods/CocoaPods/pull/11828
|
find_and_replace("./Pods/Target Support Files/Pods-projectName/Pods-projectName-frameworks.sh", 'source="$(readlink "${source}")"', 'source="$(readlink -f "${source}")"')
|
end
|