# # Be sure to run `pod spec lint ZDFlexLayoutKit.podspec' to ensure this is a # valid spec and to remove all comments including this before submitting the spec. # # To learn more about Podspec attributes see https://guides.cocoapods.org/syntax/podspec.html # To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/ # Pod::Spec.new do |spec| spec.name = "ZDFlexLayoutKit" spec.version = "0.4.1" spec.summary = "Flex Layout for iOS" spec.description = <<-DESC flex layout for iOS powered by yoga DESC spec.homepage = "https://github.com/faimin/ZDFlexLayoutKit" spec.license = "MIT" spec.author = { "faimin" => "fuxianchao@gmail.com" } spec.requires_arc = true spec.platform = :ios, "10.0" spec.source = { :git => "https://github.com/faimin/ZDFlexLayoutKit.git", :tag => spec.version.to_s } spec.prefix_header_file = false spec.header_dir = "./" spec.module_name = 'ZDFlexLayoutKit' spec.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'BUILD_LIBRARY_FOR_DISTRIBUTION' => 'YES', 'GCC_PREPROCESSOR_DEFINITIONS' => 'ZDFL=1', 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'ZDFL', #'OTHER_SWIFT_FLAGS' => '$(inherited) ZDFL' #'OTHER_SWIFT_FLAGS' => '-no-verify-emitted-module-interface' } spec.swift_versions = ['6.0'] spec.resource_bundles = { 'ZDFlexLayoutKit_Privacy' => ['Sources/Resource/PrivacyInfo.xcprivacy'], } spec.subspec 'Header' do |s| s.source_files = "Sources/Header/ZDFlexLayoutKit.{h,m}" end spec.subspec 'Core' do |s| s.source_files = "Sources/Core/**/*.{h,m}" s.public_header_files = "Sources/Core/Public/*.h" s.private_header_files = "Sources/Core/Private/*.h" if ENV['Yoga'] == 'true' s.dependency 'Yoga' else s.dependency 'ZDYoga' end s.dependency 'ZDFlexLayoutKit/Header' end spec.subspec 'OCMaker' do |s| s.source_files = "Sources/OCMaker/*.{h,m}" s.dependency 'ZDFlexLayoutKit/Core' s.dependency 'ZDFlexLayoutKit/Header' end spec.subspec 'Helper' do |s| s.source_files = "Sources/Helper/*.{h,m}" s.dependency 'ZDFlexLayoutKit/Core' s.dependency 'ZDFlexLayoutKit/Header' end spec.subspec 'SwiftMaker' do |s| s.source_files = "Sources/SwiftMaker/*.swift" s.exclude_files = "Sources/SwiftMaker/ZDSFlexLayoutChain.swift" s.dependency 'ZDFlexLayoutKit/Core' end end