ty-cocoapods-packager 1.5.3 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cocoapods-packager/builder.rb +11 -1
- data/lib/cocoapods_packager.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4df6574528a1c41a9c04309ac7fc40b25feab554d9d6345c65c5d972579c6bbe
|
|
4
|
+
data.tar.gz: 6d696e17f74e82f8eb89e8544f731faa33fd13bb57be4c163fb195f6d15888ae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 78db453bf4952a007701863b589bd122b5599494dfdc9465593c8e5e1e6ccc57b5a5e0a34f36d3e2ee079925113ee62fadb544fc53ef8d487b00e06f6c42c842
|
|
7
|
+
data.tar.gz: a43d2ef4eaf601ee0c9255ddd35e7361ff975f311b802f30d99c209d4d319ef7d926f06769875be2cd6d720946825316ce2a0988ebcb2099f5961f2b72b42a35
|
|
@@ -76,6 +76,8 @@ module Pod
|
|
|
76
76
|
clean_directory_for_dynamic_build
|
|
77
77
|
if platform.name == :ios
|
|
78
78
|
build_dynamic_framework_for_ios(platform, defines, output)
|
|
79
|
+
elsif platform.name == :watchos
|
|
80
|
+
raise 'not supported yet'
|
|
79
81
|
else
|
|
80
82
|
build_dynamic_framework_for_mac(platform, defines, output)
|
|
81
83
|
end
|
|
@@ -86,6 +88,8 @@ module Pod
|
|
|
86
88
|
|
|
87
89
|
if platform.name == :ios
|
|
88
90
|
build_static_lib_for_ios(static_libs, defines, output)
|
|
91
|
+
elsif platform.name == :watchos
|
|
92
|
+
build_static_lib_for_watchos(static_libs, defines, output)
|
|
89
93
|
else
|
|
90
94
|
build_static_lib_for_mac(static_libs, output)
|
|
91
95
|
end
|
|
@@ -129,6 +133,8 @@ module Pod
|
|
|
129
133
|
def build_sim_libraries(platform, defines)
|
|
130
134
|
if platform.name == :ios
|
|
131
135
|
xcodebuild(defines, '-sdk iphonesimulator', 'build-sim')
|
|
136
|
+
elsif platform.name == :watchos
|
|
137
|
+
xcodebuild(defines, '-sdk watchsimulator', 'build-sim')
|
|
132
138
|
end
|
|
133
139
|
end
|
|
134
140
|
|
|
@@ -142,6 +148,10 @@ module Pod
|
|
|
142
148
|
`lipo #{@static_sandbox_root}/build/package.a #{@static_sandbox_root}/build-sim/package.a -create -output #{output}`
|
|
143
149
|
end
|
|
144
150
|
|
|
151
|
+
def build_static_lib_for_watchos(static_libs, _defines, output)
|
|
152
|
+
build_static_lib_for_ios(static_libs, _defines, output)
|
|
153
|
+
end
|
|
154
|
+
|
|
145
155
|
def build_static_lib_for_mac(static_libs, output)
|
|
146
156
|
return if static_libs.count == 0
|
|
147
157
|
`libtool -static -o #{output} #{static_libs.join(' ')}`
|
|
@@ -297,7 +307,7 @@ MAP
|
|
|
297
307
|
end
|
|
298
308
|
|
|
299
309
|
def watchos_build_options
|
|
300
|
-
"ARCHS=\'i386
|
|
310
|
+
"ARCHS=\'i386 armv7k\' OTHER_CFLAGS=\'-fembed-bitcode -Qunused-arguments\'"
|
|
301
311
|
end
|
|
302
312
|
|
|
303
313
|
def xcodebuild(defines = '', args = '', build_dir = 'build', target = 'Pods-packager', project_root = @static_sandbox_root, config = @config)
|
data/lib/cocoapods_packager.rb
CHANGED