cocoapods-binary-artifactory-cache 0.0.7 → 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3bd727c53b48f456b23f1dcb09fbb9a4271760cfbef295c95bb1cb66a849b00
|
4
|
+
data.tar.gz: d5dd1f925d9cfed668a952f33ded078720324b98ff49288f1da3fd919f8eb7b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -140,7 +141,7 @@ module PodPrebuild
|
|
140
141
|
end
|
141
142
|
#remove dublication name in other frameworks
|
142
143
|
allDirTargets = Dir["#{@options[:output_path]}/*"].map { |x| x.gsub("#{@options[:output_path]}/", "") }
|
143
|
-
replaceString = allDirTargets.
|
144
|
+
replaceString = allDirTargets.uniq().map{ |x| x.gsub('/', '\/')}.map{|x| "-e 's/#{x}\\.#{x}/#{x}/g'"}.join(' ')
|
144
145
|
Pod::UI.puts_indented "$ find #{@options[:output_path]} -name '*.swiftinterface' -exec sed -i -e #{replaceString} {} \\\;"
|
145
146
|
`find #{@options[:output_path]} -name '*.swiftinterface' -exec sed -i -e #{replaceString} {} \\\;`
|
146
147
|
end
|
@@ -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.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-
|
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
|