WLSDK 1.2.1

WLSDK 1.2.1

Alexandr KiyaykinNikita Tarkhov 维护。



WLSDK 1.2.1

  • Travelpayouts

TravelApp 白标 iOS SDK

要将 SDK 连接到您的项目,您需要按照以下方式修改您的 Podfile

  • 启用将依赖关系包含在独立框架中
    use_frameworks!
  • 在代码后处理器中设置 BUILD_LIBRARY_FOR_DISTRIBUTION = YES,对于依赖项
    post_install do |installer|
    	installer.pods_project.targets.each do |target|
    		target.build_configurations.each do |config|
    			config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
    			config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
    		end
    	end
    end

连接模块

  • 机票
    pod 'WLSDK/Flights'
  • 酒店预订
    pod 'WLSDK/Hotels'
  • 信息和设置模块
    pod 'WLSDK/Information'

示例 Podfile

use_frameworks!

source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '14.0'

target 'MyApplication' do
  pod 'WLSDK/Hotels', '1.2.0'
  pod 'WLSDK/Flights', '1.2.0'
end

# Various post-install hooks
post_install do |installer|
	installer.pods_project.targets.each do |target|
		target.build_configurations.each do |config|
			config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
			config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
		end
	end
end