cocoapods-binary-artifactory-cache 0.0.8 → 0.0.9

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: 309ba07d64e0cc7251aafff9b3dfa105b69133395a2b182281446aff7b7f1733
4
- data.tar.gz: ba40e92ddf8d7d0c0a5458bb4e43b7b613b07c673c5d255dfd1604712fb4dcde
3
+ metadata.gz: e3bd727c53b48f456b23f1dcb09fbb9a4271760cfbef295c95bb1cb66a849b00
4
+ data.tar.gz: d5dd1f925d9cfed668a952f33ded078720324b98ff49288f1da3fd919f8eb7b5
5
5
  SHA512:
6
- metadata.gz: c2c2265d23530c2448b3cbc6b6a44a83a1f91a0a5544feca9c6a6532e6c6b29bd190770d9ef3da34155c54038077eafeb887ff8c0847fd96b7a4b8d4c2df2f0c
7
- data.tar.gz: 50886e06eec27b830fbc88f05e2201833937b4bf450a5bb953378ba98645c6b40e42ea97805e3f153ad204bcc2155ef9e35b562050c73f214fa42724d822c146
6
+ metadata.gz: d1b34b624c51f51bbe9b712d6f960462dbac300d78e56a3b0afad160431d81ef700aefae334e34ba9446b3e4327ebe51047f5bbefbe43202d31755289154f20a
7
+ data.tar.gz: e3afda2eba82ff9c2f52929ab9a7c5880f6951ff18c8d84429c1ed2b8747b4b4424755dc19e06fdfa61be644728d3edcdd26ff3f3455a009a9a96b0bc9b29e3b
@@ -70,6 +70,7 @@ module PodPrebuild
70
70
  args_[:default].prepend("DEBUG_INFORMATION_FORMAT=dwarf-with-dsym") unless disable_dsym?
71
71
  args_[:default].prepend("DEBUG_INFORMATION_FORMAT=dwarf") if disable_dsym?
72
72
  args_[:default].prepend("BUILD_LIBRARY_FOR_DISTRIBUTION=YES")
73
+ args_[:default].prepend("OTHER_SWIFT_FLAGS=\"-Xfrontend -module-interface-preserve-types-as-written\"")
73
74
  args_[:simulator].prepend("ARCHS=x86_64", "ONLY_ACTIVE_ARCH=NO") if simulator == "iphonesimulator"
74
75
  args_[:simulator] += args_[:default]
75
76
  args_[:device].prepend("ONLY_ACTIVE_ARCH=NO")
@@ -100,7 +101,7 @@ module PodPrebuild
100
101
  output = "#{output_path(target)}/#{target.product_module_name}.xcframework"
101
102
  FileUtils.rm_rf(output)
102
103
 
103
- cmd = ["xcodebuild", "-create-xcframework"]
104
+ cmd = ["xcodebuild", "-create-xcframework" " -allow-internal-distribution"]
104
105
  # -allow-internal-distribution
105
106
  #
106
107
  # for each sdk, the order of params must be -framework then -debug-symbols
@@ -1,4 +1,5 @@
1
1
  require "fourflusher"
2
+ require 'open3'
2
3
 
3
4
  module PodPrebuild
4
5
  class XcodebuildCommand
@@ -43,22 +44,21 @@ module PodPrebuild
43
44
 
44
45
  Pod::UI.puts_indented "$ #{cmd}" unless PodPrebuild.config.silent_build?
45
46
 
46
- log = `#{cmd}`
47
- return if $?.exitstatus.zero? # rubocop:disable Style/SpecialGlobalVars
48
-
47
+ stdin, stdout, stderr, wait_thr = Open3.popen3(cmd)
49
48
  begin
50
49
  require "xcpretty" # TODO (thuyen): Revise this dependency
51
50
  # use xcpretty to print build log
52
51
  # 64 represent command invalid. http://www.manpagez.com/man/3/sysexits/
53
52
  printer = XCPretty::Printer.new({:formatter => XCPretty::Simple, :colorize => "auto"})
54
- log.each_line do |line|
53
+ stdout.each_line do |line|
55
54
  printer.pretty_print(line)
56
55
  end
57
56
  rescue
58
57
  Pod::UI.puts log.red
59
- ensure
60
58
  raise "Fail to build targets: #{targets}"
61
59
  end
60
+
61
+ return if wait_thr.value.exitstatus.zero? # rubocop:disable Style/SpecialGlobalVars
62
62
  end
63
63
  end
64
64
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-binary-artifactory-cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugene Antropov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-20 00:00:00.000000000 Z
11
+ date: 2022-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods
@@ -199,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
199
199
  - !ruby/object:Gem::Version
200
200
  version: '0'
201
201
  requirements: []
202
- rubygems_version: 3.3.5
202
+ rubygems_version: 3.0.3.1
203
203
  signing_key:
204
204
  specification_version: 4
205
205
  summary: Reduce build time by building pod frameworks and cache it in artifactory