ty-cocoapods-packager 1.5.3 → 1.5.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e95ef8d1cb6e51d360b0059b5fd03006337091a568448b2a97b50853093ef6f
4
- data.tar.gz: e8a22ff1425b5326e41493b9d015d1e405b5941894ff6651f1ea6dff1a40e2ef
3
+ metadata.gz: 4df6574528a1c41a9c04309ac7fc40b25feab554d9d6345c65c5d972579c6bbe
4
+ data.tar.gz: 6d696e17f74e82f8eb89e8544f731faa33fd13bb57be4c163fb195f6d15888ae
5
5
  SHA512:
6
- metadata.gz: af2e91ffeafc67aaf2e237e78d55f6da22f48e6593f3f122dedcc3f41dae34fea6481cc07569ac85515c8505c248003d4682bb3dc9d1a84fadd6fcd4a6b7bab6
7
- data.tar.gz: '073596524c18d670b19df2a30eaa5ed2f12872933131380149aeddb66f9e0e7c268695450e3450dce9309c9cb1d371a6fb3f40d504fd8c65c10e4f378803239f'
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 arm64_32 armv7k\' OTHER_CFLAGS=\'-fembed-bitcode -Qunused-arguments\'"
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)
@@ -1,5 +1,5 @@
1
1
  module Pod
2
2
  module Packager
3
- VERSION = '1.5.3'.freeze
3
+ VERSION = '1.5.4'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ty-cocoapods-packager
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.3
4
+ version: 1.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Fuller