ty-cocoapods-packager 1.5.7 → 1.5.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +56 -40
- data/lib/cocoapods-packager/builder.rb +31 -0
- data/lib/cocoapods_packager.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d39d65482cc9be0b711068750a3e597dffd0e47ea3e3c059a9e89629d6d8c2c5
|
4
|
+
data.tar.gz: 53a1d0df800b8413e1924278acf5a1ed7b8ddbec8811663bdcb8a0f158bde98a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcc37f67410c05fb533bbfc55ca41f45b61d9759eae2bf9fd49edf00c7aa289d4cf05fac61c457329faff1c3a27608a3f406581cbf9360efb798606d2e5fe934
|
7
|
+
data.tar.gz: d9580079ecc53dd7c05b6cae7bc4e53e2e59001946ca9beb3c9162a2f552f06fe939f611d69763d7bf456c97d9f94956d3f3278638af271e5097de6ab4769fcd
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cocoapods-packager (1.5.
|
4
|
+
ty-cocoapods-packager (1.5.8)
|
5
5
|
cocoapods (>= 1.7.3, < 2.0)
|
6
6
|
|
7
7
|
GEM
|
8
|
-
remote: https://
|
8
|
+
remote: https://gems.ruby-china.com/
|
9
9
|
specs:
|
10
10
|
CFPropertyList (3.0.2)
|
11
|
-
activesupport (4.2.11.
|
11
|
+
activesupport (4.2.11.3)
|
12
12
|
i18n (~> 0.7)
|
13
13
|
minitest (~> 5.1)
|
14
14
|
thread_safe (~> 0.3, >= 0.3.4)
|
15
15
|
tzinfo (~> 1.1)
|
16
|
-
algoliasearch (1.27.
|
16
|
+
algoliasearch (1.27.3)
|
17
17
|
httpclient (~> 2.8, >= 2.8.3)
|
18
18
|
json (>= 1.5.1)
|
19
|
-
ast (2.
|
19
|
+
ast (2.4.1)
|
20
20
|
atomos (0.1.3)
|
21
21
|
bacon (1.2.0)
|
22
22
|
claide (1.0.3)
|
23
|
-
cocoapods (1.
|
23
|
+
cocoapods (1.9.3)
|
24
24
|
activesupport (>= 4.0.2, < 5)
|
25
25
|
claide (>= 1.0.2, < 2.0)
|
26
|
-
cocoapods-core (= 1.
|
26
|
+
cocoapods-core (= 1.9.3)
|
27
27
|
cocoapods-deintegrate (>= 1.0.3, < 2.0)
|
28
28
|
cocoapods-downloader (>= 1.2.2, < 2.0)
|
29
29
|
cocoapods-plugins (>= 1.0.0, < 2.0)
|
@@ -38,42 +38,47 @@ GEM
|
|
38
38
|
molinillo (~> 0.6.6)
|
39
39
|
nap (~> 1.0)
|
40
40
|
ruby-macho (~> 1.4)
|
41
|
-
xcodeproj (>= 1.
|
42
|
-
cocoapods-core (1.
|
41
|
+
xcodeproj (>= 1.14.0, < 2.0)
|
42
|
+
cocoapods-core (1.9.3)
|
43
43
|
activesupport (>= 4.0.2, < 6)
|
44
44
|
algoliasearch (~> 1.0)
|
45
45
|
concurrent-ruby (~> 1.1)
|
46
46
|
fuzzy_match (~> 2.0.4)
|
47
47
|
nap (~> 1.0)
|
48
|
+
netrc (~> 0.11)
|
49
|
+
typhoeus (~> 1.0)
|
48
50
|
cocoapods-deintegrate (1.0.4)
|
49
51
|
cocoapods-downloader (1.3.0)
|
50
52
|
cocoapods-plugins (1.0.0)
|
51
53
|
nap
|
52
54
|
cocoapods-search (1.0.0)
|
53
55
|
cocoapods-stats (1.1.0)
|
54
|
-
cocoapods-trunk (1.
|
56
|
+
cocoapods-trunk (1.5.0)
|
55
57
|
nap (>= 0.8, < 2.0)
|
56
58
|
netrc (~> 0.11)
|
57
|
-
cocoapods-try (1.
|
59
|
+
cocoapods-try (1.2.0)
|
58
60
|
colored2 (3.1.2)
|
59
|
-
concurrent-ruby (1.1.
|
60
|
-
coveralls (0.8.
|
61
|
+
concurrent-ruby (1.1.6)
|
62
|
+
coveralls (0.8.23)
|
61
63
|
json (>= 1.8, < 3)
|
62
|
-
simplecov (~> 0.
|
64
|
+
simplecov (~> 0.16.1)
|
63
65
|
term-ansicolor (~> 1.3)
|
64
|
-
thor (
|
65
|
-
tins (~> 1.6
|
66
|
-
docile (1.
|
66
|
+
thor (>= 0.19.4, < 2.0)
|
67
|
+
tins (~> 1.6)
|
68
|
+
docile (1.3.2)
|
67
69
|
escape (0.0.4)
|
70
|
+
ethon (0.12.0)
|
71
|
+
ffi (>= 1.3.0)
|
72
|
+
ffi (1.13.1)
|
68
73
|
fourflusher (2.3.1)
|
69
74
|
fuzzy_match (2.0.4)
|
70
75
|
gh_inspector (1.1.3)
|
71
76
|
httpclient (2.8.3)
|
72
77
|
i18n (0.9.5)
|
73
78
|
concurrent-ruby (~> 1.0)
|
74
|
-
json (
|
79
|
+
json (2.3.0)
|
75
80
|
metaclass (0.0.4)
|
76
|
-
minitest (5.
|
81
|
+
minitest (5.14.1)
|
77
82
|
mocha (0.11.4)
|
78
83
|
metaclass (~> 0.0.1)
|
79
84
|
mocha-on-bacon (0.2.1)
|
@@ -82,35 +87,46 @@ GEM
|
|
82
87
|
nanaimo (0.2.6)
|
83
88
|
nap (1.1.0)
|
84
89
|
netrc (0.11.0)
|
85
|
-
|
86
|
-
|
87
|
-
|
90
|
+
parallel (1.19.1)
|
91
|
+
parser (2.7.1.3)
|
92
|
+
ast (~> 2.4.0)
|
88
93
|
prettybacon (0.0.2)
|
89
94
|
bacon (~> 1.2)
|
90
|
-
rainbow (
|
91
|
-
rake (
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
95
|
+
rainbow (3.0.0)
|
96
|
+
rake (13.0.1)
|
97
|
+
regexp_parser (1.7.1)
|
98
|
+
rexml (3.2.4)
|
99
|
+
rubocop (0.85.1)
|
100
|
+
parallel (~> 1.10)
|
101
|
+
parser (>= 2.7.0.1)
|
102
|
+
rainbow (>= 2.2.2, < 4.0)
|
103
|
+
regexp_parser (>= 1.7)
|
104
|
+
rexml
|
105
|
+
rubocop-ast (>= 0.0.3)
|
96
106
|
ruby-progressbar (~> 1.7)
|
97
|
-
unicode-display_width (
|
107
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
108
|
+
rubocop-ast (0.0.3)
|
109
|
+
parser (>= 2.7.0.1)
|
98
110
|
ruby-macho (1.4.0)
|
99
|
-
ruby-progressbar (1.
|
100
|
-
simplecov (0.
|
101
|
-
docile (~> 1.1
|
111
|
+
ruby-progressbar (1.10.1)
|
112
|
+
simplecov (0.16.1)
|
113
|
+
docile (~> 1.1)
|
102
114
|
json (>= 1.8, < 3)
|
103
115
|
simplecov-html (~> 0.10.0)
|
104
|
-
simplecov-html (0.10.
|
105
|
-
|
116
|
+
simplecov-html (0.10.2)
|
117
|
+
sync (0.5.0)
|
118
|
+
term-ansicolor (1.7.1)
|
106
119
|
tins (~> 1.0)
|
107
|
-
thor (0.
|
120
|
+
thor (1.0.1)
|
108
121
|
thread_safe (0.3.6)
|
109
|
-
tins (1.
|
110
|
-
|
122
|
+
tins (1.25.0)
|
123
|
+
sync
|
124
|
+
typhoeus (1.4.0)
|
125
|
+
ethon (>= 0.9.0)
|
126
|
+
tzinfo (1.2.7)
|
111
127
|
thread_safe (~> 0.1)
|
112
|
-
unicode-display_width (1.
|
113
|
-
xcodeproj (1.
|
128
|
+
unicode-display_width (1.7.0)
|
129
|
+
xcodeproj (1.16.0)
|
114
130
|
CFPropertyList (>= 2.3.3, < 4.0)
|
115
131
|
atomos (~> 0.1.3)
|
116
132
|
claide (>= 1.0.2, < 2.0)
|
@@ -123,13 +139,13 @@ PLATFORMS
|
|
123
139
|
DEPENDENCIES
|
124
140
|
bacon
|
125
141
|
bundler (~> 1.3)
|
126
|
-
cocoapods-packager!
|
127
142
|
coveralls
|
128
143
|
mocha (~> 0.11.4)
|
129
144
|
mocha-on-bacon
|
130
145
|
prettybacon
|
131
146
|
rake
|
132
147
|
rubocop
|
148
|
+
ty-cocoapods-packager!
|
133
149
|
|
134
150
|
BUNDLED WITH
|
135
151
|
1.17.3
|
@@ -36,6 +36,7 @@ module Pod
|
|
36
36
|
|
37
37
|
create_static_library(platform.name.to_s)
|
38
38
|
copy_static_headers
|
39
|
+
copy_static_resources
|
39
40
|
end
|
40
41
|
|
41
42
|
def build_framework(platform)
|
@@ -208,6 +209,34 @@ module Pod
|
|
208
209
|
each { |h| `ditto #{h} #{@fwk.headers_path}/Public/#{h.sub(headers_source_root, '')}` }
|
209
210
|
end
|
210
211
|
|
212
|
+
def copy_static_resources
|
213
|
+
assets_path = _create_assets_dir
|
214
|
+
file_accessor = Sandbox::FileAccessor.new(Pathname.new("Pods/#{@spec.name}"), @spec.consumer(:ios))
|
215
|
+
spec_resource_bundles = file_accessor.resource_bundles
|
216
|
+
spec_resources = file_accessor.resources
|
217
|
+
|
218
|
+
spec_resource_bundles.map do |bundle, resources|
|
219
|
+
UI.puts("copy resource bundle #{bundle}.bundle to Assets")
|
220
|
+
bundle_path = "#{assets_path}/#{bundle}.bundle/"
|
221
|
+
`mkdir #{bundle_path}`
|
222
|
+
|
223
|
+
resources.map { |resource| `cp -a #{resource} #{bundle_path}` }
|
224
|
+
end
|
225
|
+
|
226
|
+
puts "copy #{spec_resources.count} resource(s) to Assets" if spec_resources.count != 0
|
227
|
+
spec_resources.map do |resource|
|
228
|
+
`cp -a #{resource} #{assets_path}`
|
229
|
+
end
|
230
|
+
end
|
231
|
+
|
232
|
+
def _create_assets_dir
|
233
|
+
assets_path = 'Assets'
|
234
|
+
return assets_path if File.exist?(assets_path)
|
235
|
+
|
236
|
+
`mkdir #{assets_path}`
|
237
|
+
assets_path
|
238
|
+
end
|
239
|
+
|
211
240
|
def copy_headers
|
212
241
|
headers_source_root = "#{@public_headers_root}/#{@spec.name}"
|
213
242
|
|
@@ -318,6 +347,8 @@ MAP
|
|
318
347
|
end
|
319
348
|
|
320
349
|
command = "xcrun xcodebuild #{defines} #{args} CONFIGURATION_BUILD_DIR=#{build_dir} clean build -configuration #{config} -target #{target} -project #{project_root}/Pods.xcodeproj 2>&1"
|
350
|
+
puts "execute command: #{command}"
|
351
|
+
|
321
352
|
output = `#{command}`.lines.to_a
|
322
353
|
|
323
354
|
if $?.exitstatus != 0
|
data/lib/cocoapods_packager.rb
CHANGED
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.
|
4
|
+
version: 1.5.13
|
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:
|
12
|
+
date: 2020-06-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cocoapods
|
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
155
|
- !ruby/object:Gem::Version
|
156
156
|
version: '0'
|
157
157
|
requirements: []
|
158
|
-
rubygems_version: 3.0.
|
158
|
+
rubygems_version: 3.0.6
|
159
159
|
signing_key:
|
160
160
|
specification_version: 4
|
161
161
|
summary: CocoaPods plugin which allows you to generate a framework or static library
|