cocoapods-mapfile 0.2.5 → 0.2.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +51 -16
- data/lib/hmap/command/hmap_gen.rb +6 -3
- data/lib/hmap/command/hmap_reader.rb +10 -8
- data/lib/hmap/command/hmap_writer.rb +20 -12
- data/lib/hmap/constants.rb +32 -21
- data/lib/hmap/gem_version.rb +5 -0
- data/lib/hmap/helper/utils.rb +13 -4
- data/lib/hmap/hmap/hmap_bucketstr.rb +8 -0
- data/lib/hmap/hmap/hmap_reader.rb +2 -2
- data/lib/hmap/hmap/hmap_saver.rb +14 -40
- data/lib/hmap/hmap/hmap_struct.rb +13 -48
- data/lib/hmap/hmap/hmap_writer.rb +7 -4
- data/lib/hmap/hmap/mapfile.rb +6 -15
- data/lib/hmap/xc/header_entry.rb +15 -12
- data/lib/hmap/xc/pbx_helper.rb +11 -5
- data/lib/hmap/xc/resolver.rb +2 -2
- data/lib/hmap/xc/target/build_setting.rb +2 -7
- data/lib/hmap/xc/target/target.rb +9 -20
- data/lib/hmap/xc/target/target_context.rb +5 -4
- data/lib/hmap/xc/target/target_helper.rb +21 -8
- data/lib/hmap/xc/target/target_vfs.rb +0 -1
- data/lib/hmap/xc/target/xcconfig.rb +290 -0
- data/lib/hmap/xc/target/xcconfig_helper.rb +7 -10
- data/lib/hmap/xc/workspace/project.rb +9 -6
- data/lib/hmap/xc/workspace/project_helper.rb +14 -14
- data/lib/hmap/xc/workspace/workspace.rb +10 -7
- data/lib/hmap.rb +1 -1
- metadata +19 -4
- data/lib/hmap/version.rb +0 -5
@@ -19,7 +19,9 @@ module HMap
|
|
19
19
|
define_method(:all_non_framework_target_headers) do
|
20
20
|
return @all_non_framework_target_headers if defined?(@all_non_framework_target_headers)
|
21
21
|
|
22
|
-
@all_non_framework_target_headers = targets.
|
22
|
+
@all_non_framework_target_headers = targets.inject({}) do |sum, entry|
|
23
|
+
sum.merge!(entry.all_non_framework_target_headers || {}) { |_, v1, _| v1 }
|
24
|
+
end
|
23
25
|
end
|
24
26
|
|
25
27
|
# all_targets include header full module path
|
@@ -32,12 +34,17 @@ module HMap
|
|
32
34
|
define_method(:project_headers) do
|
33
35
|
return @project_headers if defined?(@project_headers)
|
34
36
|
|
35
|
-
|
37
|
+
hs = targets.inject({}) do |sum, entry|
|
38
|
+
sum.merge!(entry.project_headers) { |_, v1, _| v1 }
|
39
|
+
end
|
40
|
+
@project_headers = project_entrys.inject(hs) do |sum, entry|
|
41
|
+
sum.merge!(entry.project_buckets_extra) { |_, v1, _| v1 }
|
42
|
+
end
|
36
43
|
end
|
37
44
|
|
38
45
|
def project_references
|
39
46
|
return @project_references if defined? @project_references
|
40
|
-
|
47
|
+
|
41
48
|
project_references = PBXHelper.project_references(project)
|
42
49
|
@project_references = project_references.map { |pr| Project.new(pr, workspace) }
|
43
50
|
end
|
@@ -56,28 +63,21 @@ module HMap
|
|
56
63
|
project.project_dir
|
57
64
|
end
|
58
65
|
|
59
|
-
def temp_name
|
60
|
-
"#{project_name}.build"
|
61
|
-
end
|
62
|
-
|
63
|
-
def temp_root
|
64
|
-
File.join(workspace.obj_root, temp_name)
|
65
|
-
end
|
66
|
-
|
67
66
|
def build_root
|
68
67
|
workspace.build_root
|
69
68
|
end
|
70
69
|
|
71
70
|
def temp_dir
|
72
|
-
workspace.obj_root
|
71
|
+
File.join(workspace.obj_root, temp_name)
|
73
72
|
end
|
74
73
|
|
75
74
|
def hmap_root
|
76
|
-
File.join(workspace.hmap_root, temp_name)
|
75
|
+
# File.join(workspace.hmap_root, temp_name)
|
76
|
+
File.join(project_dir, Constants::HMAP_DIR, temp_name)
|
77
77
|
end
|
78
78
|
|
79
79
|
def build_data_dir
|
80
|
-
Constants::
|
80
|
+
Constants::XC_BUILD_DATA
|
81
81
|
end
|
82
82
|
|
83
83
|
def context
|
@@ -48,36 +48,39 @@ module HMap
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def hmap_root
|
51
|
-
dir = build_root.dirname.dirname
|
51
|
+
# dir = build_root.dirname.dirname
|
52
|
+
dir = workspace_dir
|
52
53
|
File.join(dir, Constants::HMAP_DIR)
|
53
54
|
end
|
54
55
|
|
55
56
|
def write_save!
|
56
|
-
UserInterface.puts(
|
57
|
-
UserInterface.puts("[hmapfile] #{name}
|
57
|
+
UserInterface.puts('[hmapfile] Got workspace/project build directory')
|
58
|
+
UserInterface.puts("[hmapfile] #{name} hmapfile gen directory: #{hmap_root} ")
|
58
59
|
write_hmapfile!
|
59
60
|
save_hmap_settings!
|
60
61
|
end
|
61
62
|
|
62
63
|
def write_hmapfile!
|
63
|
-
UserInterface.puts('[hmapfile] Starting generate hmap file
|
64
|
+
UserInterface.puts('[hmapfile] Starting generate hmap file')
|
64
65
|
projects.each(&:write_hmapfile!)
|
65
66
|
end
|
66
67
|
|
67
68
|
def save_hmap_settings!
|
68
|
-
UserInterface.puts('[hmapfile] Saving hmap settings
|
69
|
+
UserInterface.puts('[hmapfile] Saving hmap settings')
|
69
70
|
|
70
71
|
projects.each(&:save_hmap_settings!)
|
71
72
|
end
|
72
73
|
|
73
74
|
def remove_hmap_settings!
|
74
|
-
UserInterface.puts('[hmapfile] Cleanning hmap settings
|
75
|
+
UserInterface.puts('[hmapfile] Cleanning hmap settings')
|
75
76
|
FileUtils.rm_rf(hmap_root) if Dir.exist?(hmap_root)
|
76
77
|
projects.each(&:remove_hmap_settings!)
|
77
78
|
end
|
78
79
|
|
79
80
|
def all_target_headers
|
80
|
-
@projects.flat_map(&:targets).
|
81
|
+
@projects.flat_map(&:targets).inject({}) do |sum, entry|
|
82
|
+
sum.merge!(entry.all_target_headers) { |_, v1, _| v1 }
|
83
|
+
end
|
81
84
|
end
|
82
85
|
end
|
83
86
|
end
|
data/lib/hmap.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-mapfile
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cat1237
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -120,6 +120,20 @@ dependencies:
|
|
120
120
|
- - ">="
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: 0.0.4
|
123
|
+
- !ruby/object:Gem::Dependency
|
124
|
+
name: hashtable
|
125
|
+
requirement: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - ">="
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: 0.0.3
|
130
|
+
type: :runtime
|
131
|
+
prerelease: false
|
132
|
+
version_requirements: !ruby/object:Gem::Requirement
|
133
|
+
requirements:
|
134
|
+
- - ">="
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: 0.0.3
|
123
137
|
description: header_reader lets your read Xcode header map file. header-writer lets
|
124
138
|
your analyze the project pod dependencies and gen header map file for all pods.
|
125
139
|
email:
|
@@ -140,6 +154,7 @@ files:
|
|
140
154
|
- lib/hmap/command/hmap_writer.rb
|
141
155
|
- lib/hmap/constants.rb
|
142
156
|
- lib/hmap/exceptions.rb
|
157
|
+
- lib/hmap/gem_version.rb
|
143
158
|
- lib/hmap/helper/executable.rb
|
144
159
|
- lib/hmap/helper/utils.rb
|
145
160
|
- lib/hmap/hmap/hmap_bucketstr.rb
|
@@ -149,7 +164,6 @@ files:
|
|
149
164
|
- lib/hmap/hmap/hmap_writer.rb
|
150
165
|
- lib/hmap/hmap/mapfile.rb
|
151
166
|
- lib/hmap/user_interface.rb
|
152
|
-
- lib/hmap/version.rb
|
153
167
|
- lib/hmap/xc/context.rb
|
154
168
|
- lib/hmap/xc/header_entry.rb
|
155
169
|
- lib/hmap/xc/header_type.rb
|
@@ -161,6 +175,7 @@ files:
|
|
161
175
|
- lib/hmap/xc/target/target_context.rb
|
162
176
|
- lib/hmap/xc/target/target_helper.rb
|
163
177
|
- lib/hmap/xc/target/target_vfs.rb
|
178
|
+
- lib/hmap/xc/target/xcconfig.rb
|
164
179
|
- lib/hmap/xc/target/xcconfig_helper.rb
|
165
180
|
- lib/hmap/xc/workspace/project.rb
|
166
181
|
- lib/hmap/xc/workspace/project_helper.rb
|
@@ -177,7 +192,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
177
192
|
requirements:
|
178
193
|
- - ">="
|
179
194
|
- !ruby/object:Gem::Version
|
180
|
-
version: '2.
|
195
|
+
version: '2.6'
|
181
196
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
182
197
|
requirements:
|
183
198
|
- - ">="
|