ty-cocoapods-packager 1.5.7 → 1.5.9
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 +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +56 -40
- data/lib/cocoapods-packager/builder.rb +31 -2
- 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: a43954a73334d19e5378c0e2e617f9da2729e0be24cf400a2f4d72e3a5a5b08b
|
|
4
|
+
data.tar.gz: 2ee22cea86d50ece060b81ae206a9736dfd1b149018f6f5cd69fcc81eec6ce31
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3a49af92af69f6bc3ea4eea5707de4a762a3dc1a882a4c4c428a1057281010ef6d8a6d9e8994379efbe7b21e96386f5f4c6266d163708a21a334eb39d59aa37c
|
|
7
|
+
data.tar.gz: cc1e1d01cfcc06ac4148fe80360ea92cabe3e637b53d16b50354e12afcb4f1d615944b150812e6955742f652c60121c764ea1ed4928b845cd13cb47baf6cb8f4
|
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)
|
|
@@ -162,7 +163,7 @@ module Pod
|
|
|
162
163
|
def build_with_mangling(platform, options)
|
|
163
164
|
UI.puts 'Mangling symbols'
|
|
164
165
|
defines = Symbols.mangle_for_pod_dependencies(@spec.name, @static_sandbox_root)
|
|
165
|
-
defines <<
|
|
166
|
+
defines << " OTHER_CFLAGS='" << @spec.consumer(platform).compiler_flags.join(' ') << "'"
|
|
166
167
|
|
|
167
168
|
UI.puts 'Building mangled framework'
|
|
168
169
|
xcodebuild(defines, options)
|
|
@@ -180,7 +181,7 @@ module Pod
|
|
|
180
181
|
|
|
181
182
|
def compile(platform)
|
|
182
183
|
defines = "GCC_PREPROCESSOR_DEFINITIONS='$(inherited) PodsDummy_Pods_#{@spec.name}=PodsDummy_PodPackage_#{@spec.name}'"
|
|
183
|
-
defines <<
|
|
184
|
+
defines << " OTHER_CFLAGS='" << @spec.consumer(platform).compiler_flags.join(' ') << "'"
|
|
184
185
|
|
|
185
186
|
if platform.name == :ios
|
|
186
187
|
options = ios_build_options
|
|
@@ -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 #{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 #{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
|
|
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.9
|
|
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-17 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
|