pod-builder 5.4.2 → 6.0.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/.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/rome/post_install.rb +2 -0
- data/lib/pod_builder/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45ae4ed58b7a3100626841a02f499d6b09e42fc14013a604d892c5c97b333841
|
4
|
+
data.tar.gz: 2953ed015b1d8fd9e888b2a7cd20590fceb296d087f153f6ee99a37aec8dc526
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22a7ace13236026783678727249137cd5f3b980b21ae6deb07a3403ed3d0a84bdebeb1095726ac9676a155afce739153fb68f71b3c7ecf6aa18a7d32a78b5504
|
7
|
+
data.tar.gz: 59e8cdad1282c87ecf34efb0aa3027a10b0604b2e908a068580c00a33b3ebb05ba9a22c91453d1513a64911e4abbb40dacf51ca815aea1b2507d9e80560d9d85
|
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
|
@@ -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
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.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:
|
11
|
+
date: 2025-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -265,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
265
265
|
- !ruby/object:Gem::Version
|
266
266
|
version: '0'
|
267
267
|
requirements: []
|
268
|
-
rubygems_version: 3.5.
|
268
|
+
rubygems_version: 3.5.11
|
269
269
|
signing_key:
|
270
270
|
specification_version: 4
|
271
271
|
summary: Prebuild CocoaPods pods
|