pod-builder 5.4.2 → 6.0.1
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/.ruby-version +1 -1
- data/README.md +1 -0
- data/lib/pod_builder/actions.rb +20 -16
- data/lib/pod_builder/command/build.rb +1 -1
- data/lib/pod_builder/configuration.rb +2 -2
- data/lib/pod_builder/install.rb +1 -1
- data/lib/pod_builder/rome/post_install.rb +2 -0
- data/lib/pod_builder/version.rb +1 -1
- data/pod-builder.gemspec +1 -0
- metadata +17 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 916496ca52ab538de396ea974618e380bc6dd21babcef514d209c0fa79e970c1
|
|
4
|
+
data.tar.gz: 30d36049eaa55885c9b4569a998aa98d7bb485702718549a8eea306f2b6fa069
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2730960347b5c94e6b7bfe37a0958df2c5704f35e9bcd1fbba03f9db7fb9534098102e30aa96f2e2e164506be37f5ca35e7941fd35a31ccb412b6a0e2b1d0075
|
|
7
|
+
data.tar.gz: 0c092d29ecfbff55406a5d4dc28ada00c11f955c7118a5c3389e1fd153cdb596808bd6ca9fc04096b0014c45c468ad0fff62f08e12def4be57e8624f149ad67a
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.
|
|
1
|
+
3.3.4
|
data/README.md
CHANGED
|
@@ -370,6 +370,7 @@ You need to specify a `path` to the executable script which is relative to the _
|
|
|
370
370
|
{
|
|
371
371
|
"pre_actions": {
|
|
372
372
|
"switch" : { "path": "pre_switch_action.rb", "quiet": true },
|
|
373
|
+
"install" : { "path": "pre_install_action.rb", "quiet": false },
|
|
373
374
|
"build" : { "path": "pre_build_action.rb", "quiet": false }
|
|
374
375
|
}
|
|
375
376
|
}
|
data/lib/pod_builder/actions.rb
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
require
|
|
2
|
-
require
|
|
1
|
+
require "pod_builder/core"
|
|
2
|
+
require "json"
|
|
3
3
|
|
|
4
4
|
module PodBuilder
|
|
5
5
|
module Actions
|
|
6
|
-
def self.load(hash)
|
|
6
|
+
def self.load(hash, step)
|
|
7
7
|
actions = {}
|
|
8
8
|
if json = hash["switch"]
|
|
9
|
-
actions[:switch] = Item.new("switch", json)
|
|
9
|
+
actions[:switch] = Item.new("switch", step, json)
|
|
10
|
+
end
|
|
11
|
+
if json = hash["install"]
|
|
12
|
+
actions[:install] = Item.new("install", step, json)
|
|
10
13
|
end
|
|
11
14
|
if json = hash["build"]
|
|
12
|
-
actions[:build] = Item.new("build", json)
|
|
15
|
+
actions[:build] = Item.new("build", step, json)
|
|
13
16
|
end
|
|
14
|
-
|
|
17
|
+
|
|
15
18
|
return actions
|
|
16
19
|
end
|
|
17
20
|
|
|
@@ -19,28 +22,29 @@ module PodBuilder
|
|
|
19
22
|
attr_reader :path
|
|
20
23
|
attr_reader :quiet
|
|
21
24
|
attr_reader :name
|
|
22
|
-
|
|
23
|
-
def initialize(name, hash)
|
|
25
|
+
|
|
26
|
+
def initialize(name, step, hash)
|
|
24
27
|
@name = name
|
|
25
|
-
@
|
|
26
|
-
@
|
|
28
|
+
@step = step
|
|
29
|
+
@path = hash.fetch("path", "")
|
|
30
|
+
@quiet = hash.fetch("quiet", false)
|
|
31
|
+
|
|
32
|
+
raise "\n\nEmpty or missing #{step} #{name} action path\n".red if @path.empty?()
|
|
33
|
+
end
|
|
27
34
|
|
|
28
|
-
raise "\n\nEmpty or missing post #{name} action path\n".red if @path.empty?()
|
|
29
|
-
end
|
|
30
|
-
|
|
31
35
|
def execute()
|
|
32
36
|
cmd = PodBuilder::basepath(path)
|
|
33
37
|
unless File.exist?(cmd)
|
|
34
|
-
raise "\n\
|
|
38
|
+
raise "\n\n#{@step.capitalize} #{@name} action path '#{cmd}' does not exists!\n".red
|
|
35
39
|
end
|
|
36
40
|
|
|
37
41
|
if @quiet
|
|
38
42
|
cmd += " > /dev/null 2>&1"
|
|
39
43
|
end
|
|
40
44
|
|
|
41
|
-
puts "Executing
|
|
45
|
+
puts "Executing #{@step} #{@name} action".yellow
|
|
42
46
|
`#{cmd}`
|
|
43
47
|
end
|
|
44
48
|
end
|
|
45
|
-
end
|
|
49
|
+
end
|
|
46
50
|
end
|
|
@@ -120,7 +120,7 @@ module PodBuilder
|
|
|
120
120
|
|
|
121
121
|
init_git(Configuration.build_path) # this is needed to be able to call safe_rm_rf
|
|
122
122
|
|
|
123
|
-
Configuration.pre_actions[:
|
|
123
|
+
Configuration.pre_actions[:install]&.execute()
|
|
124
124
|
|
|
125
125
|
install_result += Install.podfile(podfile_content, podfile_items, argument_pods, podfile_items.first.build_configuration)
|
|
126
126
|
|
|
@@ -248,11 +248,11 @@ module PodBuilder
|
|
|
248
248
|
end
|
|
249
249
|
value = json["pre_actions"]
|
|
250
250
|
if value.is_a?(Hash)
|
|
251
|
-
Configuration.pre_actions = PodBuilder::Actions.load(value)
|
|
251
|
+
Configuration.pre_actions = PodBuilder::Actions.load(value, "pre")
|
|
252
252
|
end
|
|
253
253
|
value = json["post_actions"]
|
|
254
254
|
if value.is_a?(Hash)
|
|
255
|
-
Configuration.post_actions = PodBuilder::Actions.load(value)
|
|
255
|
+
Configuration.post_actions = PodBuilder::Actions.load(value, "post")
|
|
256
256
|
end
|
|
257
257
|
value = json["development_team"]
|
|
258
258
|
if value.is_a?(String) && value.length > 0
|
data/lib/pod_builder/install.rb
CHANGED
|
@@ -320,7 +320,7 @@ module PodBuilder
|
|
|
320
320
|
unless Dir.glob("#{source_path}/**/*").select { |t| File.file?(t) }.empty?
|
|
321
321
|
destination_folder = PodBuilder::prebuiltpath(item.root_name)
|
|
322
322
|
FileUtils.mkdir_p(destination_folder)
|
|
323
|
-
FileUtils.cp_r("#{source_path}/.", destination_folder)
|
|
323
|
+
FileUtils.cp_r("#{source_path}/.", destination_folder, remove_destination: true)
|
|
324
324
|
end
|
|
325
325
|
end
|
|
326
326
|
|
|
@@ -342,6 +342,8 @@ Pod::HooksManager.register("podbuilder-rome", :post_install) do |installer_conte
|
|
|
342
342
|
raise "\n\nUnsupported target count\n".red unless targets.count == 1
|
|
343
343
|
target = targets.first
|
|
344
344
|
|
|
345
|
+
PodBuilder::Configuration.pre_actions[:build]&.execute()
|
|
346
|
+
|
|
345
347
|
if build_xcframeworks
|
|
346
348
|
project_path = sandbox_root.parent + "Pods/Pods.xcodeproj"
|
|
347
349
|
|
data/lib/pod_builder/version.rb
CHANGED
data/pod-builder.gemspec
CHANGED
|
@@ -27,6 +27,7 @@ Gem::Specification.new do |spec|
|
|
|
27
27
|
spec.add_development_dependency "rake", ">= 12.3.3"
|
|
28
28
|
spec.add_development_dependency "debug", "~>1.8"
|
|
29
29
|
spec.add_development_dependency "rufo", "~>0.16"
|
|
30
|
+
spec.add_development_dependency "ruby-lsp"
|
|
30
31
|
spec.add_development_dependency "solargraph", "~>0.41"
|
|
31
32
|
spec.add_development_dependency "robocop", "~>0.1.0"
|
|
32
33
|
|
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:
|
|
4
|
+
version: 6.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tomas Camin
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-02-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -66,6 +66,20 @@ dependencies:
|
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '0.16'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: ruby-lsp
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - ">="
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '0'
|
|
76
|
+
type: :development
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - ">="
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '0'
|
|
69
83
|
- !ruby/object:Gem::Dependency
|
|
70
84
|
name: solargraph
|
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -265,7 +279,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
265
279
|
- !ruby/object:Gem::Version
|
|
266
280
|
version: '0'
|
|
267
281
|
requirements: []
|
|
268
|
-
rubygems_version: 3.5.
|
|
282
|
+
rubygems_version: 3.5.11
|
|
269
283
|
signing_key:
|
|
270
284
|
specification_version: 4
|
|
271
285
|
summary: Prebuild CocoaPods pods
|