cocoapods-xcconfig-hooks 0.0.1.rc3629160046 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 448fc4df37a3fb3dfa4e59266cb367f76a60e06f232b319d4f655af988576ee4
4
- data.tar.gz: c9cd8300bf1ceb7eb8b6d2d5f9066428c0fc8d8fea8a85a16ba3ed3aba96970f
3
+ metadata.gz: 1c3965d5e30fb8ea875e47b899274a7fc74f81400d59619211f14bd28fd8dca9
4
+ data.tar.gz: ecb8e1b733b3858597ba70deabcac64ed5f678588c25a315dd19a4e08be3df99
5
5
  SHA512:
6
- metadata.gz: 7f36877026c90eaed5bf08515aa6ce87dd8290ad3e0ad16726f9737714776ef49c62d517be35dbb103ddc2d7fec2432b7c2f3c0b24495518ffdfb10d4757331d
7
- data.tar.gz: 5c9865f2057f1e1a3948dfb7c5837d97a5d3a63b89604bc73539f2b2b3a2d144b93fd25d1eab3598b7dc26a12768c4d7582b84ffe83dff97f634488a8f2ed3e0
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 ||= (dsl_config[:hook_dir] || Pathname(".xcconfigs"))
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
- value = dsl_config[:aggregate_targets_only]
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
@@ -31,6 +33,7 @@ module Pod
31
33
 
32
34
  includes = [
33
35
  "__base__.xcconfig",
36
+ "#{config_name}.xcconfig",
34
37
  "#{target}.__base__.xcconfig",
35
38
  "#{target}.#{config_name}.xcconfig",
36
39
  ].map { |p| "#include? \"#{config.hook_dir}/#{p}\"" }
@@ -44,6 +47,14 @@ module Pod
44
47
  HEADER
45
48
  path.write(to_prepend + path.read)
46
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
47
58
  end
48
59
  end
49
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.1.rc3629160046
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: 2022-12-06 00:00:00.000000000 Z
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
@@ -83,7 +41,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
41
  - !ruby/object:Gem::Version
84
42
  version: 1.3.1
85
43
  requirements: []
86
- rubygems_version: 3.1.6
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