pod-builder 1.2.1 ā 1.3.0
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/README.md +4 -0
- data/exe/pod_builder +17 -1
- data/lib/pod_builder/command.rb +1 -0
- data/lib/pod_builder/command/clear_lldbinit.rb +32 -0
- data/lib/pod_builder/command/update_lldbinit.rb +8 -5
- data/lib/pod_builder/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c85e97d04a8167d4e639f6e4b632d8dfbb54b6e879057e203b95806ea1b3bddd
|
4
|
+
data.tar.gz: 37bdc97bc43c8589f537e796a1f9f577589df901772cae64c704e7701a7ed00c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26d4d8d4e14c0dcbc69bf530d8f19ff370c930467f6a4956283072d24268f08ce58713afb8309031e9da58855fa2e9c3c83b14af7308d83913dbe2bbde85743f
|
7
|
+
data.tar.gz: c3acacaaf6d5ee81b04ccb508807e1d0be2764dd7bc85fb484cf076a81c913a609bcdd3f7a520585b067aa26a247f7b9bddf451c0dbeb491d3c2f1a387ff65c5
|
data/README.md
CHANGED
@@ -100,6 +100,10 @@ When using PodBuilder you loose ability to directly access to the source code of
|
|
100
100
|
|
101
101
|
In some situations you may already have source code for your prebuilt frameworks (e.g. committed in your repo). In this case there is no need to use the `install_sources`, you can run this command passing the folder that contains the source code that you used to generate the prebuilt frameworks. This will update the `~/.lldbinit-Xcode` file which will restore the ability to use the debugger and step into the code of your prebuilt dependencies.
|
102
102
|
|
103
|
+
#### `clear_lldbinit` command
|
104
|
+
|
105
|
+
Run this command to remove PodBuilder's `~/.lldbinit-Xcode` customizations.
|
106
|
+
|
103
107
|
#### `switch` command
|
104
108
|
|
105
109
|
Once you prebuild a framework you can change the way it is integrated in your project.
|
data/exe/pod_builder
CHANGED
@@ -40,6 +40,7 @@ Command:
|
|
40
40
|
+ restore_all Rebuild all pods declared in the Restore-Podfile
|
41
41
|
+ install_sources Install sources of pods to debug into prebuilt frameworks
|
42
42
|
+ update_lldbinit Update ~/.lldbinit-Xcode setting target.source-map to debug prebuilt frameworks
|
43
|
+
+ clear_lldbinit Clear ~/.lldbinit-Xcode setting with PodBuilder's customizations
|
43
44
|
+ switch Switch between prebuilt/development/standard pod in the Application-Podfile
|
44
45
|
+ clean Remove prebuild frameworks, dSYMs and source files added by `install_sources` command that are no longer in the PodBuilder-Podfile
|
45
46
|
+ sync_podfile Update your Application-Podfile with all pods declared in the PodBuilder-Podfile
|
@@ -254,7 +255,7 @@ Usage:
|
|
254
255
|
opts.banner = "
|
255
256
|
Usage:
|
256
257
|
|
257
|
-
$ pod_builder
|
258
|
+
$ pod_builder update_lldbinit PATH
|
258
259
|
|
259
260
|
Update ~/.lldbinit-Xcode setting target.source-map in order to be able to step into
|
260
261
|
and debug framework's code.
|
@@ -268,6 +269,21 @@ Usage:
|
|
268
269
|
]
|
269
270
|
},
|
270
271
|
|
272
|
+
"clear_lldbinit" => {
|
273
|
+
:opts => OptionParser.new do |opts|
|
274
|
+
opts.banner = "
|
275
|
+
Usage:
|
276
|
+
|
277
|
+
$ pod_builder clear_lldbinit
|
278
|
+
|
279
|
+
Clear ~/.lldbinit-Xcode setting target.source-map PodBuilder's customizations
|
280
|
+
"
|
281
|
+
end,
|
282
|
+
:call => [
|
283
|
+
PodBuilder::Command::ClearLldbInit
|
284
|
+
]
|
285
|
+
},
|
286
|
+
|
271
287
|
"switch" => {
|
272
288
|
:opts => OptionParser.new do |opts|
|
273
289
|
opts.banner = "
|
data/lib/pod_builder/command.rb
CHANGED
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'pod_builder/core'
|
2
|
+
require 'digest'
|
3
|
+
|
4
|
+
module PodBuilder
|
5
|
+
module Command
|
6
|
+
class ClearLldbInit
|
7
|
+
def self.call(options)
|
8
|
+
lldbinit_path = File.expand_path('~/.lldbinit-Xcode')
|
9
|
+
lldbinit_content = File.exists?(lldbinit_path) ? File.read(lldbinit_path) : ""
|
10
|
+
|
11
|
+
lldbinit_lines = []
|
12
|
+
skipNext = false
|
13
|
+
File.read(lldbinit_path).each_line do |line|
|
14
|
+
if line.include?("# <pb")
|
15
|
+
skipNext = true
|
16
|
+
next
|
17
|
+
elsif skipNext
|
18
|
+
skipNext = false
|
19
|
+
next
|
20
|
+
elsif line != "\n"
|
21
|
+
lldbinit_lines.push(line)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
File.write(lldbinit_path, lldbinit_lines.join())
|
26
|
+
|
27
|
+
puts "\n\nš done!\n".green
|
28
|
+
return 0
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -87,7 +87,7 @@ module PodBuilder
|
|
87
87
|
|
88
88
|
replace_paths.uniq!
|
89
89
|
|
90
|
-
source_map_lines = replace_paths.flat_map { |t| ["# <pb:#{base_path}
|
90
|
+
source_map_lines = replace_paths.flat_map { |t| ["# <pb:#{base_path}>\n", "settings append target.source-map '#{t.split(",").first}' '#{t.split(",").last}'\n"] }
|
91
91
|
rewrite_lldinit(source_map_lines, base_path)
|
92
92
|
|
93
93
|
puts "\n\nš done!\n".green
|
@@ -123,7 +123,7 @@ module PodBuilder
|
|
123
123
|
lldbinit_lines = []
|
124
124
|
skipNext = false
|
125
125
|
File.read(lldbinit_path).each_line do |line|
|
126
|
-
if line.include?("# <pb:#{base_path}>")
|
126
|
+
if line.include?("# <pb:#{base_path}>") || line.include?("# <pb>")
|
127
127
|
skipNext = true
|
128
128
|
next
|
129
129
|
elsif skipNext
|
@@ -138,12 +138,15 @@ module PodBuilder
|
|
138
138
|
end
|
139
139
|
|
140
140
|
restore_hash = podfile_restore_hash()
|
141
|
-
|
142
|
-
source_map_lines.insert(0, "# <pb
|
141
|
+
|
142
|
+
source_map_lines.insert(0, "# <pb>\n")
|
143
|
+
source_map_lines.insert(1, "settings clear target.source-map\n")
|
144
|
+
source_map_lines.insert(2, "# <pb:#{base_path}>\n")
|
145
|
+
source_map_lines.insert(3, "# <pb_md5:#{base_path}:#{restore_hash}>\n")
|
143
146
|
|
144
147
|
lldbinit_lines += source_map_lines
|
145
148
|
|
146
|
-
File.write(lldbinit_path, lldbinit_lines.join(
|
149
|
+
File.write(lldbinit_path, lldbinit_lines.join())
|
147
150
|
end
|
148
151
|
end
|
149
152
|
end
|
data/lib/pod_builder/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pod-builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomas Camin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -243,6 +243,7 @@ files:
|
|
243
243
|
- lib/pod_builder/command/build.rb
|
244
244
|
- lib/pod_builder/command/build_all.rb
|
245
245
|
- lib/pod_builder/command/clean.rb
|
246
|
+
- lib/pod_builder/command/clear_lldbinit.rb
|
246
247
|
- lib/pod_builder/command/deintegrate.rb
|
247
248
|
- lib/pod_builder/command/generate_lfs.rb
|
248
249
|
- lib/pod_builder/command/generate_podspec.rb
|