pod-builder 5.1.4 → 5.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b85a52e3ba807b8439a542523ff6e38744c83d297356a395dbaf2574c8f43ba
4
- data.tar.gz: de67f37c0e7aea4cc9f3d6f221f794134d61ba2a46e1b2c8dd2ae00c927bee4f
3
+ metadata.gz: f4933e55a3964f7ac116ee774b3ba1b5e576f58e3ac75c47154c9ec9dc5b3796
4
+ data.tar.gz: 8123dd9ddda019f7bb1701e36400d369e44728df85315f40c2ddffaf4a9a6d1f
5
5
  SHA512:
6
- metadata.gz: 2736c6181c7e2efb50721cd6d3ad3897e57376d042452ec9b54e3edb44700555e160ccb62cff2b633d82b7a75cf9a9b0dfab2bf1549206b08a03146ecdee1735
7
- data.tar.gz: 48105f7082152c2a0edcf79eee64f0bdccd536f6fcc389823073520754ebec45ce350d50f52af9f4e86ece11632fc5f8417e9ec182025d229d6c458073ee706e
6
+ metadata.gz: 247d0d6e6ee175425d37cb98fe73b899deaaae483d1fbc1f39f26182ff5bb9667ff6ace2605ae558fd3eea3eca9969e4eb83e171ed6ce0e20b702c65d995fa4d
7
+ data.tar.gz: 61020f110c8c329de3bc5c2c67442ecbc6fd826186ebe6552db6c56c5ec3c00e992e0a0320bfc813185f631c096b48b4f0259b28b26b827b56e7ca705a734184
data/README.md CHANGED
@@ -242,6 +242,18 @@ You may want to skip some pods to be prebuilt, you can do that as follows:
242
242
  }
243
243
  ```
244
244
 
245
+ #### `skip_build_configuration_check`
246
+
247
+ PodBuilder performs validation checks to prevent building pods that are marked to be built with different build configurations. In some edge case scenarious you might want to skip these checks as follows:
248
+
249
+ ```json
250
+ {
251
+ "skip_build_configuration_check": [
252
+ "PodA"
253
+ ]
254
+ }
255
+ ```
256
+
245
257
 
246
258
  #### `force_prebuild_pods`
247
259
 
@@ -232,6 +232,8 @@ module PodBuilder
232
232
  end
233
233
 
234
234
  def self.check_dependencies_build_configurations(pods)
235
+ pods = pods.reject { |t| Configuration::skip_build_configuration_check.include?(t.name) }
236
+
235
237
  pods.each do |pod|
236
238
  pod_dependency_names = pod.dependency_names.select { |x| !pod.has_common_spec(x) }
237
239
 
@@ -241,7 +243,9 @@ module PodBuilder
241
243
  pods_with_unaligned_build_configuration = pods_with_common_deps.select { |x| x.build_configuration != pod.build_configuration }
242
244
  pods_with_unaligned_build_configuration.map!(&:name)
243
245
 
244
- raise "\n\nDependencies of `#{pod.name}` don't have the same build configuration (#{pod.build_configuration}) of `#{pods_with_unaligned_build_configuration.join(",")}`'s dependencies\n".red if pods_with_unaligned_build_configuration.count > 0
246
+ if pods_with_unaligned_build_configuration.count > 0
247
+ raise "\n\nDependencies of `#{pod.name}` don't have the same build configuration (#{pod.build_configuration}) of `#{pods_with_unaligned_build_configuration.join(",")}`'s dependencies\n".red
248
+ end
245
249
  end
246
250
  end
247
251
 
@@ -54,6 +54,7 @@ module PodBuilder
54
54
  attr_accessor :spec_overrides
55
55
  attr_accessor :skip_licenses
56
56
  attr_accessor :skip_pods
57
+ attr_accessor :skip_build_configuration_check
57
58
  attr_accessor :force_prebuild_pods
58
59
  attr_accessor :license_filename
59
60
  attr_accessor :development_pods_paths
@@ -94,6 +95,7 @@ module PodBuilder
94
95
  @base_path = "PodBuilder" # Not nice. This value is used only for initial initization. Once config is loaded it will be an absolute path. FIXME
95
96
  @skip_licenses = []
96
97
  @skip_pods = ["GoogleMaps", "React-RCTFabric", "React-Core", "React-CoreModules", "FBReactNativeSpec", "fmt", "RCT-Folly", "React-jsi"] # Not including React-RCTNetwork might loose some debug warnings
98
+ @skip_build_configuration_check = []
97
99
  @force_prebuild_pods = []
98
100
  @license_filename = "Pods-acknowledgements"
99
101
  @development_pods_paths = []
@@ -167,6 +169,11 @@ module PodBuilder
167
169
  Configuration.skip_pods = value
168
170
  end
169
171
  end
172
+ if value = json["skip_build_configuration_check"]
173
+ if value.is_a?(Array)
174
+ Configuration.skip_build_configuration_check = value
175
+ end
176
+ end
170
177
  if value = json["force_prebuild_pods"]
171
178
  if value.is_a?(Array)
172
179
  Configuration.force_prebuild_pods = value
@@ -313,6 +320,7 @@ module PodBuilder
313
320
  config["spec_overrides"] = Configuration.spec_overrides
314
321
  config["skip_licenses"] = Configuration.skip_licenses
315
322
  config["skip_pods"] = Configuration.skip_pods
323
+ config["skip_build_configuration_check"] = Configuration.skip_build_configuration_check
316
324
  config["force_prebuild_pods"] = Configuration.force_prebuild_pods
317
325
  config["build_settings"] = Configuration.build_settings
318
326
  config["build_settings_overrides"] = Configuration.build_settings_overrides
@@ -1,3 +1,3 @@
1
1
  module PodBuilder
2
- VERSION = "5.1.4"
2
+ VERSION = "5.1.5"
3
3
  end
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: 5.1.4
4
+ version: 5.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Camin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-28 00:00:00.000000000 Z
11
+ date: 2023-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler