pod-builder 2.0.0.beta.37 → 2.0.0.beta.38

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: fd2f1ce8ec492d776fb38d6a21bd80f2e612b22d1bd820440a0a5930d1bf70c6
4
- data.tar.gz: 5e11315787531d4f8bd0d5975eddc0e2d2611aa21f594758b13ee51747fa570b
3
+ metadata.gz: 2b464e76791583a1bf1b8b993ebb7fd5084b818dd07a96d38844192928abc333
4
+ data.tar.gz: 1fd90be22ab09b7933748bd8d8ed7e1fd654fe5e1a0355b764af36d83684c37a
5
5
  SHA512:
6
- metadata.gz: 7a91b2733fb7dde282bdc6e6fe45d270dd65fa971f24c39adca133683aad9b9adad5ae7d3ecc9978edff40346450852458cbc5df3ffc34c5bc16f451487c8819
7
- data.tar.gz: 972cd2864b2384fdae50af8cc97ebb2ab5f0381630f5ca557a67b57d62ecb6956bc7f802bc738e7b50bb35cd52418e3f0211d17174ce8b2710bec7f6c501d339
6
+ metadata.gz: 95d6ed845f6d68446f57ec9eb72b4bf14c498dd9bb05465dc259ef3225f3585489b52ec4c874cd2f92a45689827859f68bb223ed755ef06b7524d9d04f70e4d6
7
+ data.tar.gz: 0cae9e9e1d06326abd71de3c8ce5df3740df01bcef47825b49f6446c1649297281c417a1afe50086da8e4270a8e0518e47563c9d0235a3ad1f20d7f5eaf14b9f
data/README.md CHANGED
@@ -130,7 +130,7 @@ This command will generate a custom lldinit file which will be stored in the _Po
130
130
 
131
131
  The most convenient place to update the lldbinit file is in your Podfile pre_install or post_install actions. It is suggested to add the following lines
132
132
 
133
- ````
133
+ ```
134
134
  pid = spawn("pod_builder generate_lldbinit")
135
135
  Process.detach(pid)
136
136
  ```
@@ -38,6 +38,7 @@ module PodBuilder
38
38
 
39
39
  if podfile_content.include?("/node_modules/react-native/")
40
40
  podfile_content = Podfile.prepare_for_react_native(podfile_content)
41
+ update_react_native_podspecs()
41
42
  end
42
43
 
43
44
  File.write(prebuilt_podfile_path, podfile_content)
@@ -116,6 +117,32 @@ module PodBuilder
116
117
  def self.trim_gemfile_line(line)
117
118
  return line.gsub("\"", "'").gsub(" ", "")
118
119
  end
120
+
121
+ def self.update_react_native_podspecs
122
+ # React-Core.podspec
123
+ file = "React-Core.podspec"
124
+ paths = Dir.glob("#{PodBuilder::git_rootpath}/node_modules/**/#{file}")
125
+ raise "Unexpected number of #{file} found" if paths.count != 1
126
+
127
+ content = File.read(paths[0])
128
+ expected_header_search_path_prefix = "s.pod_target_xcconfig = { \"HEADER_SEARCH_PATHS\" => \""
129
+ raise "Expected header search path entry not found" unless content.include?(expected_header_search_path_prefix)
130
+
131
+ content.sub!(expected_header_search_path_prefix, "#{expected_header_search_path_prefix}\\\"$(PODS_ROOT)/Headers/Public/Flipper-Folly\\\" ")
132
+ File.write(paths[0], content)
133
+
134
+ # React-CoreModules.podspec
135
+ file = "React-CoreModules.podspec"
136
+ paths = Dir.glob("#{PodBuilder::git_rootpath}/node_modules/**/#{file}")
137
+ raise "Unexpected number of #{file} found" if paths.count != 1
138
+
139
+ content = File.read(paths[0])
140
+ expected_header_search_path_prefix = "\"HEADER_SEARCH_PATHS\" => \""
141
+ raise "Expected header search path entry not found" unless content.include?(expected_header_search_path_prefix)
142
+
143
+ content.sub!(expected_header_search_path_prefix, "#{expected_header_search_path_prefix}\\\"$(PODS_ROOT)/Headers/Public/Flipper-Folly\\\" ")
144
+ File.write(paths[0], content)
145
+ end
119
146
  end
120
147
  end
121
148
  end
@@ -39,7 +39,8 @@ module PodBuilder
39
39
  "ENABLE_BITCODE": "NO"
40
40
  }
41
41
  }.freeze
42
- DEFAULT_SKIP_PODS = ["GoogleMaps"]
42
+ DEFAULT_SKIP_PODS = ["GoogleMaps", "React-RCTFabric", "React-Core", "React-CoreModules"] # Not including React-RCTNetwork might loose some debug warnings
43
+
43
44
  DEFAULT_FORCE_PREBUILD_PODS = []
44
45
  DEFAULT_BUILD_SYSTEM = "Latest".freeze # either Latest (New build system) or Legacy (Standard build system)
45
46
  DEFAULT_LIBRARY_EVOLUTION_SUPPORT = false
@@ -256,11 +256,7 @@ module PodBuilder
256
256
  return data["PreferenceSpecifiers"] || []
257
257
  end
258
258
 
259
- def self.copy_development_pods_source_code(podfile_content, podfile_items)
260
- if Configuration.build_using_repo_paths
261
- return podfile_content
262
- end
263
-
259
+ def self.copy_development_pods_source_code(podfile_content, podfile_items)
264
260
  # Development pods are normally built/integrated without moving files from their original paths.
265
261
  # It is important that CocoaPods compiles the files under Configuration.build_path in order that
266
262
  # DWARF debug info reference to this constant path. Doing otherwise breaks the assumptions that
@@ -276,7 +272,9 @@ module PodBuilder
276
272
  FileUtils.cp_r("#{PodBuilder::basepath(podfile_item.path)}/.", destination_path)
277
273
  end
278
274
 
279
- podfile_content.gsub!("'#{podfile_item.path}'", "'#{destination_path}'")
275
+ unless Configuration.build_using_repo_paths
276
+ podfile_content.gsub!("'#{podfile_item.path}'", "'#{destination_path}'")
277
+ end
280
278
  end
281
279
 
282
280
  return podfile_content
@@ -99,6 +99,7 @@ module PodBuilder
99
99
  end
100
100
  if !item.header_dir.nil? && !install_using_frameworks
101
101
  podspec += "#{indentation}#{spec_var}.header_dir = '#{item.header_dir}'\n"
102
+ podspec += "#{indentation}#{spec_var}.header_mappings_dir = '#{item.root_name}/Headers/#{item.header_dir}'\n"
102
103
  end
103
104
 
104
105
  if item.xcconfig.keys.count > 0
@@ -279,7 +279,7 @@ Pod::HooksManager.register('podbuilder-rome', :post_install) do |installer_conte
279
279
  progressbar_thread = Thread.new {
280
280
  loop do
281
281
  built_pods = Dir.glob("#{PodBuilder::Configuration.build_path}/build/Release*/*").count
282
- progressbar.progress = [0, built_pods - 1].max
282
+ progressbar.progress = [[0, built_pods - 1].max, progressbar.total].min
283
283
  sleep(5)
284
284
  end
285
285
  }
@@ -344,10 +344,7 @@ Pod::HooksManager.register('podbuilder-rome', :post_install) do |installer_conte
344
344
  file_accessor = Pod::Sandbox::FileAccessor.new(sandbox.pod_dir(spec.root.name), consumer)
345
345
  files += file_accessor.vendored_libraries
346
346
  files += file_accessor.vendored_frameworks
347
- begin
348
- files += file_accessor.resources
349
- rescue
350
- end
347
+ files += file_accessor.resources
351
348
 
352
349
  FileUtils.mkdir_p(destination)
353
350
  files.each do |file|
@@ -1,4 +1,4 @@
1
1
  module PodBuilder
2
- VERSION = "2.0.0.beta.37"
2
+ VERSION = "2.0.0.beta.38"
3
3
  end
4
4
 
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: 2.0.0.beta.37
4
+ version: 2.0.0.beta.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Camin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-14 00:00:00.000000000 Z
11
+ date: 2020-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler