ty-cocoapods-packager 1.5.2 → 1.5.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e5ead379d8e105bf995611df0679a823c83bc044797d0d08da89a1e4a92d349
4
- data.tar.gz: 1c3f2b3dcec249ac2b798e4c5f4f755f3c2e72442c0c56bf84dd6235c36ea2a2
3
+ metadata.gz: 5e95ef8d1cb6e51d360b0059b5fd03006337091a568448b2a97b50853093ef6f
4
+ data.tar.gz: e8a22ff1425b5326e41493b9d015d1e405b5941894ff6651f1ea6dff1a40e2ef
5
5
  SHA512:
6
- metadata.gz: 0c0b9b060905822537970afa74840357abf89f8b7aa49e607c1dd8c5ca7188019e270c6c469aa549d52af043d7e943909ff757f9494a1bceb3c68382276f9edb
7
- data.tar.gz: e2f0b841573f8216fd48a94fb54e304032cfb08d9410a1237bf32c183b67faa32b199f97b7ad932ec77f75421082a0a9be2b064754902b7d89109436c486fb84
6
+ metadata.gz: af2e91ffeafc67aaf2e237e78d55f6da22f48e6593f3f122dedcc3f41dae34fea6481cc07569ac85515c8505c248003d4682bb3dc9d1a84fadd6fcd4a6b7bab6
7
+ data.tar.gz: '073596524c18d670b19df2a30eaa5ed2f12872933131380149aeddb66f9e0e7c268695450e3450dce9309c9cb1d371a6fb3f40d504fd8c65c10e4f378803239f'
@@ -174,6 +174,11 @@ module Pod
174
174
  options = ios_build_options
175
175
  end
176
176
 
177
+ if platform.name == :watchos
178
+ options = watchos_build_options
179
+ UI.puts "add watchos options: #{options}"
180
+ end
181
+
177
182
  xcodebuild(defines, options)
178
183
 
179
184
  if @mangle
@@ -291,6 +296,10 @@ MAP
291
296
  "ARCHS=\'x86_64 i386 arm64 armv7 armv7s\' OTHER_CFLAGS=\'-fembed-bitcode -Qunused-arguments\'"
292
297
  end
293
298
 
299
+ def watchos_build_options
300
+ "ARCHS=\'i386 arm64_32 armv7k\' OTHER_CFLAGS=\'-fembed-bitcode -Qunused-arguments\'"
301
+ end
302
+
294
303
  def xcodebuild(defines = '', args = '', build_dir = 'build', target = 'Pods-packager', project_root = @static_sandbox_root, config = @config)
295
304
  if defined?(Pod::DONT_CODESIGN)
296
305
  args = "#{args} CODE_SIGN_IDENTITY=\"\" CODE_SIGNING_REQUIRED=NO"
@@ -3,6 +3,7 @@ module Symbols
3
3
  syms = `nm -gU #{library}`.split("\n")
4
4
  result = classes_from_symbols(syms)
5
5
  result += constants_from_symbols(syms)
6
+ result += variables_from_symbols(syms)
6
7
 
7
8
  result.reject { |e| e == 'llvm.cmdline' || e == 'llvm.embedded.module' }
8
9
  end
@@ -30,6 +31,14 @@ module Symbols
30
31
  consts + other_consts
31
32
  end
32
33
 
34
+ def variables_from_symbols(syms)
35
+ variables = syms.select { |variable| variable[/ D /] }
36
+ variables = variables.select { |variable| variable !~ /l_OBJC|\.eh/ }
37
+ variables = variables.uniq
38
+ variables.map! { |variable| variable.gsub(/^.* _/, '') }
39
+ end
40
+
33
41
  module_function :classes_from_symbols
34
42
  module_function :constants_from_symbols
43
+ module_function :variables_from_symbols
35
44
  end
@@ -1,5 +1,5 @@
1
1
  module Pod
2
2
  module Packager
3
- VERSION = '1.5.2'.freeze
3
+ VERSION = '1.5.3'.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.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Fuller
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-08-21 00:00:00.000000000 Z
12
+ date: 2019-04-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cocoapods