cocoapods-bazel 0.1.6 → 0.1.7.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/CHANGELOG.md +3 -0
- data/lib/cocoapods/bazel/config.rb +6 -1
- data/lib/cocoapods/bazel/target.rb +5 -3
- data/lib/cocoapods/bazel/version.rb +1 -1
- data/lib/cocoapods/bazel.rb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2d368d169ce3eb04e6b90afaa67190a777256f115b7d06b7b4e120eb2684a29
|
4
|
+
data.tar.gz: 28786338c1b48d58d64fdcacbab8fc8c9a8b0dfde40e4a6e689dd11813a13139
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5aa26e8030f1a686ea9e1e157c569b0b1de30cce3400beb184207e5ac7d67ce2e05442c3a9c20e501bdfe9759f6661198dbd4b6a42d0816651efc5dd3bce1d7f
|
7
|
+
data.tar.gz: 04a40e6fd04b7740b6c3ca112d30dcea506d1097b9a13ca09b87298802b59c5f68828ebae022dd60aac14b26988a30a88712b42fe947b861ce393a34dd8d1814
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
2.7.8
|
data/CHANGELOG.md
CHANGED
@@ -56,7 +56,8 @@ module Pod
|
|
56
56
|
features: {
|
57
57
|
experimental_deps_debug_and_release: false
|
58
58
|
},
|
59
|
-
xcframework_excluded_platforms: [].freeze
|
59
|
+
xcframework_excluded_platforms: [].freeze,
|
60
|
+
enable_add_testonly: false
|
60
61
|
}.with_indifferent_access.freeze
|
61
62
|
|
62
63
|
private_constant :DEFAULTS
|
@@ -120,6 +121,10 @@ module Pod
|
|
120
121
|
def xcframework_excluded_platforms
|
121
122
|
to_h[:xcframework_excluded_platforms]
|
122
123
|
end
|
124
|
+
|
125
|
+
def enable_add_testonly
|
126
|
+
to_h[:enable_add_testonly]
|
127
|
+
end
|
123
128
|
end
|
124
129
|
end
|
125
130
|
end
|
@@ -35,7 +35,8 @@ module Pod
|
|
35
35
|
private :installer, :pod_target, :file_accessors, :non_library_spec, :label, :package, :default_xcconfigs, :resolved_xconfig_by_config, :relative_sandbox_root
|
36
36
|
# rubocop:enable Style/AccessModifierDeclarations
|
37
37
|
|
38
|
-
def initialize(installer, pod_target, non_library_spec = nil, default_xcconfigs = {}, experimental_deps_debug_and_release = false,
|
38
|
+
def initialize(installer, pod_target, non_library_spec = nil, default_xcconfigs = {}, experimental_deps_debug_and_release = false,
|
39
|
+
xcframework_excluded_platforms = [], enable_add_testonly = false)
|
39
40
|
@installer = installer
|
40
41
|
@pod_target = pod_target
|
41
42
|
@file_accessors = non_library_spec ? pod_target.file_accessors.select { |fa| fa.spec == non_library_spec } : pod_target.file_accessors.select { |fa| fa.spec.library_specification? }
|
@@ -47,6 +48,7 @@ module Pod
|
|
47
48
|
@resolved_xconfig_by_config = {}
|
48
49
|
@experimental_deps_debug_and_release = experimental_deps_debug_and_release
|
49
50
|
@xcframework_excluded_platforms = xcframework_excluded_platforms
|
51
|
+
@enable_add_testonly = enable_add_testonly
|
50
52
|
@relative_sandbox_root = installer.sandbox.root.relative_path_from(installer.config.installation_root).to_s
|
51
53
|
end
|
52
54
|
|
@@ -378,10 +380,10 @@ module Pod
|
|
378
380
|
kwargs[:runtime_deps] = []
|
379
381
|
kwargs[:sdk_dylibs] = file_accessors.flat_map { |fa| fa.spec_consumer.libraries }.sort.uniq
|
380
382
|
kwargs[:sdk_frameworks] = file_accessors.flat_map { |fa| fa.spec_consumer.frameworks }.sort.uniq
|
381
|
-
kwargs[:testonly] = true if kwargs[:sdk_frameworks].include? 'XCTest'
|
383
|
+
kwargs[:testonly] = true if (kwargs[:sdk_frameworks].include? 'XCTest') && @enable_add_testonly
|
382
384
|
kwargs[:sdk_includes] = []
|
383
385
|
kwargs[:weak_sdk_frameworks] = file_accessors.flat_map { |fa| fa.spec_consumer.weak_frameworks }.sort.uniq
|
384
|
-
kwargs[:testonly] = true if kwargs[:weak_sdk_frameworks].include? 'XCTest'
|
386
|
+
kwargs[:testonly] = true if (kwargs[:weak_sdk_frameworks].include? 'XCTest') && @enable_add_testonly
|
385
387
|
|
386
388
|
kwargs[:vendored_static_frameworks] = glob(attr: :vendored_static_frameworks, return_files: true)
|
387
389
|
kwargs[:vendored_dynamic_frameworks] = glob(attr: :vendored_dynamic_frameworks, return_files: true)
|
data/lib/cocoapods/bazel.rb
CHANGED
@@ -45,7 +45,8 @@ module Pod
|
|
45
45
|
fa.spec,
|
46
46
|
default_xcconfigs,
|
47
47
|
config.experimental_deps_debug_and_release,
|
48
|
-
config.xcframework_excluded_platforms
|
48
|
+
config.xcframework_excluded_platforms,
|
49
|
+
config.enable_add_testonly
|
49
50
|
)
|
50
51
|
end
|
51
52
|
|
@@ -55,7 +56,8 @@ module Pod
|
|
55
56
|
nil,
|
56
57
|
default_xcconfigs,
|
57
58
|
config.experimental_deps_debug_and_release,
|
58
|
-
config.xcframework_excluded_platforms
|
59
|
+
config.xcframework_excluded_platforms,
|
60
|
+
config.enable_add_testonly
|
59
61
|
)
|
60
62
|
|
61
63
|
bazel_targets = [default_target] + targets_without_library_specification
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-bazel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shawn Chen
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2025-05-
|
12
|
+
date: 2025-05-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|