cocoapods-packager-ext 0.0.29 → 0.0.34
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c90b7fdb68ad58b455f67d03ec4d22b67653a76491a4cf3c221a2ef18f3a9fe
|
4
|
+
data.tar.gz: 06b2ade59b1efe45f6b1e33b4171c45891e848b55a3ec3c0da39f7a159a77985
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32691adb42d4ba2b51ea8e97b2e3af6bf4598cd94991ddef156943b203046f551a911320f1b5ac5e92975d0caaddb048fef57b0a6a4d054daad86f76ba4ab0e6
|
7
|
+
data.tar.gz: 63dbddb0fb40586560ad751b65eddc1314b62a701f319d1bcb7ea0b173a0351c2f3df00b32cf8edee52fb1f1f5220f09144f6e029c4501fc73b6ee3124acac49
|
@@ -78,7 +78,7 @@ module Pod
|
|
78
78
|
s.#{platform.name.to_s}.deployment_target = '#{platform.deployment_target}'
|
79
79
|
s.#{platform.name.to_s}.vendored_libraries = ['#{platform.name.to_s}/*.a']
|
80
80
|
s.#{platform.name.to_s}.public_header_files = ['#{platform.name.to_s}/Headers/*.{h}']
|
81
|
-
s.#{platform.name.to_s}.source_files = ['#{platform.name.to_s}/Headers/*.{h}']
|
81
|
+
s.#{platform.name.to_s}.source_files = ['#{platform.name.to_s}/Headers/*.{h}',"#{platform.name.to_s}/Modules/module.modulemap"]
|
82
82
|
s.#{platform.name.to_s}.resource = ['#{platform.name.to_s}/Resources/*.bundle']
|
83
83
|
s.#{platform.name.to_s}.module_map = "#{platform.name.to_s}/Modules/module.modulemap"
|
84
84
|
RB
|
@@ -123,6 +123,23 @@ RB
|
|
123
123
|
|
124
124
|
end
|
125
125
|
|
126
|
+
def clean_dummy_files(path)
|
127
|
+
Dir.entries(path).each do |sub|
|
128
|
+
if sub != '.' && sub != '..'
|
129
|
+
if File.directory?("#{path}/#{sub}")
|
130
|
+
clean_dummy_files("#{path}/#{sub}")
|
131
|
+
else
|
132
|
+
if(sub =~ /-dummy.m$/)
|
133
|
+
File.open("#{path}/#{sub}",'w')do |file|
|
134
|
+
file.write('')
|
135
|
+
UI.message " - clean dummy file:#{sub}"
|
136
|
+
end
|
137
|
+
end
|
138
|
+
end
|
139
|
+
end
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
126
143
|
alias perform_build_t perform_build
|
127
144
|
def perform_build(platform, static_sandbox, dynamic_sandbox,static_installer)
|
128
145
|
if @select_archs.length > 0 || @exclude_dep_items.length > 0
|
@@ -133,6 +150,15 @@ RB
|
|
133
150
|
dynamic_sandbox_root = "#{config.sandbox_root}/#{dynamic_sandbox.root.to_s.split('/').last}"
|
134
151
|
end
|
135
152
|
|
153
|
+
if (ENV['ENABLE_CLEAN_DUMMY_FILE'] && (ENV['ENABLE_CLEAN_DUMMY_FILE'].upcase == 'YES' || ENV['ENABLE_CLEAN_DUMMY_FILE'].upcase == 'TRUE'))
|
154
|
+
UI.title 'Clean Dummy Files' do
|
155
|
+
clean_dummy_files(static_sandbox.target_support_files_root)
|
156
|
+
if @dynamic
|
157
|
+
clean_dummy_files(dynamic_sandbox.target_support_files_root)
|
158
|
+
end
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
136
162
|
builder = Pod::Builder.new(
|
137
163
|
platform,
|
138
164
|
static_installer,
|
@@ -5,7 +5,23 @@ module Pod
|
|
5
5
|
|
6
6
|
alias build_static_library_t build_static_library
|
7
7
|
def build_static_library
|
8
|
-
|
8
|
+
|
9
|
+
UI.puts("Building static library #{@spec} with configuration #{@config}")
|
10
|
+
|
11
|
+
defines = compile
|
12
|
+
build_sim_libraries(defines)
|
13
|
+
|
14
|
+
platform_path = Pathname.new(@platform.name.to_s)
|
15
|
+
platform_path.mkdir unless platform_path.exist?
|
16
|
+
|
17
|
+
output = platform_path + "lib#{@spec.name}-#{@platform.name.to_s}.a"
|
18
|
+
|
19
|
+
if @platform.name == :ios
|
20
|
+
build_static_library_for_ios(output)
|
21
|
+
else
|
22
|
+
build_static_library_for_mac(output)
|
23
|
+
end
|
24
|
+
|
9
25
|
platform_path = Pathname.new(@platform.name.to_s)
|
10
26
|
header_path = platform_path+'Headers'
|
11
27
|
header_path.mkpath unless header_path.exist?
|
@@ -23,6 +39,11 @@ module Pod
|
|
23
39
|
if @exclude_dep_items.length > 0
|
24
40
|
static_libs = static_libs_in_sandbox('build') + static_libs_in_sandbox('build-sim') + vendored_libraries
|
25
41
|
static_libs.reject! {|lib| @exclude_dep_items.any? {|item| lib.to_s.include? item}}
|
42
|
+
UI.section 'Fetch output libs' do
|
43
|
+
static_libs.each do |lib|
|
44
|
+
UI.message lib
|
45
|
+
end
|
46
|
+
end
|
26
47
|
libs = ios_architectures.map do |arch|
|
27
48
|
library = "#{@static_sandbox_root}/build/package-#{arch}.a"
|
28
49
|
`libtool -arch_only #{arch} -static -o #{library} #{static_libs.join(' ')}`
|
@@ -30,7 +51,7 @@ module Pod
|
|
30
51
|
end
|
31
52
|
|
32
53
|
`lipo -create -output #{output} #{libs.join(' ')}`
|
33
|
-
|
54
|
+
|
34
55
|
# static_libs = static_libs_in_sandbox('build')
|
35
56
|
# sim_libs = static_libs_in_sandbox('build-sim')
|
36
57
|
# for item in @black_deps
|
@@ -241,7 +262,8 @@ MAP
|
|
241
262
|
|
242
263
|
alias initialize_t initialize
|
243
264
|
def initialize(platform, static_installer, source_dir, static_sandbox_root, dynamic_sandbox_root, public_headers_root, spec, embedded, mangle, dynamic, config, bundle_identifier, exclude_deps,exclude_dep_items=[],select_archs=[])
|
244
|
-
@exclude_dep_items =
|
265
|
+
@exclude_dep_items = ['libPods-packager.a']
|
266
|
+
@exclude_dep_items.concat(exclude_dep_items) if exclude_dep_items
|
245
267
|
@select_archs = select_archs
|
246
268
|
initialize_t(platform, static_installer,source_dir, static_sandbox_root, dynamic_sandbox_root, public_headers_root, spec, embedded, mangle, dynamic, config, bundle_identifier, exclude_deps)
|
247
269
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-packager-ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.34
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kyle.zhou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|