cocoapods-packager-ext 0.0.33 → 0.0.37
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: 5ad2bac85151291f7b57d8c6537b717cd223909e0c3a4ac9295b05739b43c4b5
|
4
|
+
data.tar.gz: ec0b8db3e48ec15668aacc5bd03684bbe381faea86f26a0d2fdf50901e951d20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a12db24915242da8ee55723ae404e19bd9cbb30d41ee8d6a4982d0767eac442c0c88e1790820c0bc548b4e55f1b5c9c6d394127c8067bf76393f93c06e8fe09
|
7
|
+
data.tar.gz: b99ca30d3df7995ade41d1129ed8cba2f074f0dec277816dc862cbc4a6e39142dc09acb0a19801357f820496d65d52e8515168ae2f3f789e74ff00e5a81d9bb2
|
@@ -66,7 +66,9 @@ module Pod
|
|
66
66
|
perform_build(platform, static_sandbox, dynamic_sandbox, static_installer)
|
67
67
|
ensure # in case the build fails; see Builder#xcodebuild.
|
68
68
|
if ENV['ENABLE_BACKUP_WORKSPACE'] && (ENV['ENABLE_BACKUP_WORKSPACE'].upcase == 'YES' || ENV['ENABLE_BACKUP_WORKSPACE'].upcase == 'TRUE')
|
69
|
+
UI.message 'Backup Workspace'
|
69
70
|
else
|
71
|
+
UI.message 'Delete Workspace'
|
70
72
|
Pathname.new(config.sandbox_root).rmtree
|
71
73
|
FileUtils.rm_f('Podfile.lock')
|
72
74
|
end
|
@@ -132,6 +134,7 @@ RB
|
|
132
134
|
if(sub =~ /-dummy.m$/)
|
133
135
|
File.open("#{path}/#{sub}",'w')do |file|
|
134
136
|
file.write('')
|
137
|
+
UI.message " - clean dummy file:#{sub}"
|
135
138
|
end
|
136
139
|
end
|
137
140
|
end
|
@@ -150,10 +153,14 @@ RB
|
|
150
153
|
end
|
151
154
|
|
152
155
|
if (ENV['ENABLE_CLEAN_DUMMY_FILE'] && (ENV['ENABLE_CLEAN_DUMMY_FILE'].upcase == 'YES' || ENV['ENABLE_CLEAN_DUMMY_FILE'].upcase == 'TRUE'))
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
+
UI.title 'Clean Dummy Files' do
|
157
|
+
clean_dummy_files(static_sandbox.target_support_files_root)
|
158
|
+
if @dynamic
|
159
|
+
clean_dummy_files(dynamic_sandbox.target_support_files_root)
|
160
|
+
end
|
156
161
|
end
|
162
|
+
else
|
163
|
+
UI.puts 'Jump clean dummy files'
|
157
164
|
end
|
158
165
|
|
159
166
|
builder = Pod::Builder.new(
|
@@ -89,6 +89,28 @@ module Pod
|
|
89
89
|
end
|
90
90
|
end
|
91
91
|
|
92
|
+
alias compile_t compile
|
93
|
+
def compile
|
94
|
+
defines = "GCC_PREPROCESSOR_DEFINITIONS='$(inherited) PodsDummy_Pods_#{@spec.name}=PodsDummy_PodPackage_#{@spec.name}'"
|
95
|
+
if ENV['GCC_PREPROCESSOR_DEFINITIONS']
|
96
|
+
defines << ' ' << " #{ENV['GCC_PREPROCESSOR_DEFINITIONS']}"
|
97
|
+
UI.puts "Set GCC_PREPROCESSOR_DEFINITIONS:#{defines}"
|
98
|
+
end
|
99
|
+
defines << ' ' << @spec.consumer(@platform).compiler_flags.join(' ')
|
100
|
+
|
101
|
+
if @platform.name == :ios
|
102
|
+
options = ios_build_options
|
103
|
+
end
|
104
|
+
|
105
|
+
xcodebuild(defines, options)
|
106
|
+
|
107
|
+
if @mangle
|
108
|
+
return build_with_mangling(options)
|
109
|
+
end
|
110
|
+
|
111
|
+
defines
|
112
|
+
end
|
113
|
+
|
92
114
|
def static_linker_defines
|
93
115
|
static_libs = static_libs_in_sandbox('build') + static_libs_in_sandbox('build-sim')
|
94
116
|
static_libs = static_libs.map { |path| Pathname("#{Dir.pwd}/#{path}").parent.to_s }
|
@@ -245,9 +267,11 @@ MAP
|
|
245
267
|
|
246
268
|
if $?.exitstatus != 0
|
247
269
|
if ENV['ENABLE_BACKUP_WORKSPACE'] && (ENV['ENABLE_BACKUP_WORKSPACE'].upcase == 'YES' || ENV['ENABLE_BACKUP_WORKSPACE'].upcase == 'TRUE')
|
248
|
-
|
249
|
-
|
250
|
-
|
270
|
+
UI.title 'Backup Workspace' do
|
271
|
+
target_dir = "#{@source_dir}/#{@spec.name}-#{@spec.version}"
|
272
|
+
work_dir = Dir.pwd
|
273
|
+
`mv "#{work_dir}" "#{target_dir}"`
|
274
|
+
end
|
251
275
|
end
|
252
276
|
puts UI::BuildFailedReport.report(command, output)
|
253
277
|
|
@@ -18,12 +18,29 @@ module Pod
|
|
18
18
|
|
19
19
|
archs = []
|
20
20
|
dynamic_target = Pod::PodTarget.new(dynamic_sandbox, BuildType.dynamic_framework, static_target.user_build_configurations, archs, platform, static_target.specs, static_target.target_definitions, file_accessors)
|
21
|
+
ln_source_to_dynamic_target(static_installer,dynamic_sandbox)
|
21
22
|
dynamic_target
|
22
23
|
end
|
23
24
|
alias copy_dynamic_target_t copy_dynamic_target
|
24
25
|
def copy_dynamic_target(static_sandbox, _dynamic_target, dynamic_sandbox)
|
25
|
-
|
26
|
-
|
26
|
+
if Dir.exist? static_sandbox.root+@spec.name
|
27
|
+
command = "ln -sf #{static_sandbox.root}/#{@spec.name} #{dynamic_sandbox.root}"
|
28
|
+
`#{command}`
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
def ln_source_to_dynamic_target(static_installer, dynamic_sandbox)
|
33
|
+
if not Dir.exist? static_installer.sandbox.root+@spec.name
|
34
|
+
file_accessors = static_installer.pod_targets.select { |t| t.pod_name == @spec.name }.flat_map(&:file_accessors)
|
35
|
+
if file_accessors && file_accessors.length > 0
|
36
|
+
source_root = file_accessors[0].path_list.root
|
37
|
+
command = "ln -sf #{source_root} #{dynamic_sandbox.root}/#{@spec.name}"
|
38
|
+
`#{command}`
|
39
|
+
else
|
40
|
+
UI.puts "#{@spec.name} 根目录找不到"
|
41
|
+
|
42
|
+
end
|
43
|
+
end
|
27
44
|
end
|
28
45
|
|
29
46
|
alias write_pod_project_t write_pod_project
|
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.37
|
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-07-
|
11
|
+
date: 2021-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|