-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathZDFlexLayoutKit.podspec
74 lines (65 loc) · 2.31 KB
/
ZDFlexLayoutKit.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#
# 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.0"
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" => "[email protected]" }
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 = ['5.1']
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