cocoapods-xcconfig-hooks 0.0.1 → 0.0.2.rc11083990722
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/lib/cocoapods-xcconfig-hooks/config.rb +6 -5
- data/lib/cocoapods-xcconfig-hooks/main.rb +10 -0
- metadata +6 -48
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c3965d5e30fb8ea875e47b899274a7fc74f81400d59619211f14bd28fd8dca9
|
4
|
+
data.tar.gz: ecb8e1b733b3858597ba70deabcac64ed5f678588c25a315dd19a4e08be3df99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c144dae48b5c2786ddf22d2f4e5557c11406c39ffaa6949613f435a8070c2852712998ffe50f2c98e3ea732a36583ab518ae90916c1b981568a047242cd744e7
|
7
|
+
data.tar.gz: 43b10389acc656c3afaeb99c69a111119e3a560f7da14495f41bd5b5ca8314d59bbf7fee6b9c2457da72d709f17701e3b79da907b7ded321d723664008b0ff69
|
@@ -12,14 +12,15 @@ module Pod
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def hook_dir
|
15
|
-
@hook_dir ||=
|
15
|
+
@hook_dir ||= begin
|
16
|
+
dir = Pathname(dsl_config[:hook_dir] || ".xcconfigs")
|
17
|
+
dir.mkpath
|
18
|
+
dir
|
19
|
+
end
|
16
20
|
end
|
17
21
|
|
18
22
|
def aggregate_targets_only?
|
19
|
-
|
20
|
-
return value unless value.nil?
|
21
|
-
|
22
|
-
true
|
23
|
+
dsl_config[:aggregate_targets_only]
|
23
24
|
end
|
24
25
|
end
|
25
26
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
require "fileutils"
|
1
2
|
require "cocoapods-xcconfig-hooks/config"
|
2
3
|
require "cocoapods-xcconfig-hooks/dsl"
|
3
4
|
|
@@ -20,6 +21,7 @@ module Pod
|
|
20
21
|
sandbox.target_support_files_root.glob("*/*.xcconfig") do |path|
|
21
22
|
prepend_includes(path)
|
22
23
|
end
|
24
|
+
create_symlink_to_hook_dir
|
23
25
|
end
|
24
26
|
|
25
27
|
private
|
@@ -45,6 +47,14 @@ module Pod
|
|
45
47
|
HEADER
|
46
48
|
path.write(to_prepend + path.read)
|
47
49
|
end
|
50
|
+
|
51
|
+
def create_symlink_to_hook_dir
|
52
|
+
# Create symlink to hook dir (under Pods) so that xcconfigs can be included
|
53
|
+
# in a pod target's xcconfig without caring about absolute/relative paths
|
54
|
+
path = Pod::Config.instance.sandbox.root / config.hook_dir
|
55
|
+
FileUtils.rm_rf(path) if path.exist?
|
56
|
+
File.symlink(File.absolute_path(config.hook_dir), path)
|
57
|
+
end
|
48
58
|
end
|
49
59
|
end
|
50
60
|
end
|
metadata
CHANGED
@@ -1,57 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-xcconfig-hooks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2.rc11083990722
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thuyen Trinh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.3'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '1.3'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rspec
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rubocop
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
11
|
+
date: 2024-09-28 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
55
13
|
description: CocoaPods plugin to hook xcconfig of CocoaPods targets
|
56
14
|
email:
|
57
15
|
- trinhngocthuyen@gmail.com
|
@@ -79,11 +37,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
79
37
|
version: '0'
|
80
38
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
39
|
requirements:
|
82
|
-
- - "
|
40
|
+
- - ">"
|
83
41
|
- !ruby/object:Gem::Version
|
84
|
-
version:
|
42
|
+
version: 1.3.1
|
85
43
|
requirements: []
|
86
|
-
rubygems_version: 3.
|
44
|
+
rubygems_version: 3.2.33
|
87
45
|
signing_key:
|
88
46
|
specification_version: 4
|
89
47
|
summary: CocoaPods plugin to hook xcconfig of CocoaPods targets
|