cocoapods-binary-artifactory-cache 0.0.8 → 0.0.10
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c12bbf1aecbd6d521d9fbc5f82880f3ec1bf444941be7efb80ce5413876406b2
|
4
|
+
data.tar.gz: b70ea2cc5ff5470ff43a32de75dd95e202f1357d4a6984bec5b7d87c909058ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b192f3bc274671ac13b52d61261536550330619c8b53a6468d531200bd5499255a8bbeaee170da1afc88a3a6682e10cd091935a92365430c43e25ea93de7ac39
|
7
|
+
data.tar.gz: 7f37cbfe15a4b5c77e306e18b917cb39f43a4e3816f91a40b49a45a2dfa718d16214ec1d2f9ad31aca3fd46232e9c286d4be25cba9dbe1807339143f65edec97
|
@@ -136,9 +136,25 @@ module Pod
|
|
136
136
|
end
|
137
137
|
|
138
138
|
def empty_source_files(spec, platforms)
|
139
|
+
global_preserve_paths = []
|
140
|
+
global_preserve_paths = spec.attributes_hash["preserve_paths"] if spec.attributes_hash["preserve_paths"].is_a? Array
|
141
|
+
global_preserve_paths = [spec.attributes_hash["preserve_paths"]] if spec.attributes_hash["preserve_paths"].is_a? String
|
142
|
+
global_source_files = []
|
143
|
+
global_source_files = spec.attributes_hash["source_files"] if spec.attributes_hash["source_files"].is_a? Array
|
144
|
+
global_source_files = [spec.attributes_hash["source_files"]] if spec.attributes_hash["source_files"].is_a? String
|
145
|
+
|
139
146
|
spec.attributes_hash["source_files"] = []
|
147
|
+
spec.attributes_hash["preserve_paths"] = global_preserve_paths + global_source_files
|
140
148
|
platforms.each do |platform|
|
141
|
-
|
149
|
+
next unless !spec.attributes_hash[platform].nil?
|
150
|
+
local_preserve_paths = []
|
151
|
+
local_preserve_paths = spec.attributes_hash[platform]["preserve_paths"] if spec.attributes_hash[platform]["preserve_paths"].is_a? Array
|
152
|
+
local_preserve_paths = [spec.attributes_hash[platform]["preserve_paths"]] if spec.attributes_hash[platform]["preserve_paths"].is_a? String
|
153
|
+
local_source_files = []
|
154
|
+
local_source_files = spec.attributes_hash[platform]["source_files"] if spec.attributes_hash[platform]["source_files"].is_a? Array
|
155
|
+
local_source_files = [spec.attributes_hash[platform]["source_files"]] if spec.attributes_hash[platform]["source_files"].is_a? String
|
156
|
+
spec.attributes_hash[platform]["preserve_paths"] = local_preserve_paths + local_source_files + global_source_files + global_preserve_paths
|
157
|
+
spec.attributes_hash[platform]["source_files"] = []
|
142
158
|
end
|
143
159
|
end
|
144
160
|
|
@@ -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
|
-
|
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
|
-
|
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.
|
4
|
+
version: 0.0.10
|
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-
|
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.
|
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
|