pod-builder 2.0.0.beta.21 → 2.0.0.beta.26

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.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -22
  3. data/exe/pod_builder +10 -32
  4. data/lib/pod_builder/command.rb +1 -3
  5. data/lib/pod_builder/command/build.rb +0 -1
  6. data/lib/pod_builder/command/generate_lldbinit.rb +151 -0
  7. data/lib/pod_builder/command/init.rb +26 -12
  8. data/lib/pod_builder/configuration.rb +2 -20
  9. data/lib/pod_builder/core.rb +17 -7
  10. data/lib/pod_builder/install.rb +135 -71
  11. data/lib/pod_builder/podfile.rb +23 -5
  12. data/lib/pod_builder/podfile_cp.rb +1 -1
  13. data/lib/pod_builder/podfile_item.rb +1 -1
  14. data/lib/pod_builder/rome/post_install.rb +185 -12
  15. data/lib/pod_builder/templates/build_podfile.template +1 -1
  16. data/lib/pod_builder/version.rb +1 -1
  17. data/pod-builder.gemspec +2 -2
  18. metadata +4 -28
  19. data/Example/PodBuilder/.gitignore +0 -6
  20. data/Example/PodBuilder/.pod_builder/pod_builder +0 -0
  21. data/Example/PodBuilder/PodBuilder.json +0 -38
  22. data/Example/PodBuilder/Podfile +0 -23
  23. data/Example/PodBuilder/Podfile.restore +0 -40
  24. data/Example/PodBuilderExample.xcodeproj/project.pbxproj +0 -411
  25. data/Example/PodBuilderExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
  26. data/Example/PodBuilderExample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  27. data/Example/PodBuilderExample.xcodeproj/project.xcworkspace/xcuserdata/tomas.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  28. data/Example/PodBuilderExample.xcworkspace/contents.xcworkspacedata +0 -10
  29. data/Example/PodBuilderExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  30. data/Example/PodBuilderExample/AppDelegate.swift +0 -51
  31. data/Example/PodBuilderExample/Assets.xcassets/AppIcon.appiconset/Contents.json +0 -98
  32. data/Example/PodBuilderExample/Assets.xcassets/Contents.json +0 -6
  33. data/Example/PodBuilderExample/Base.lproj/LaunchScreen.storyboard +0 -25
  34. data/Example/PodBuilderExample/Base.lproj/Main.storyboard +0 -24
  35. data/Example/PodBuilderExample/Info.plist +0 -45
  36. data/Example/PodBuilderExample/ViewController.swift +0 -25
  37. data/Example/Podfile +0 -49
  38. data/Example/Podfile.lock +0 -435
  39. data/Example/Pods-acknowledgements.md +0 -210
  40. data/Example/Pods-acknowledgements.plist +0 -206
  41. data/lib/pod_builder/command/clear_lldbinit.rb +0 -48
  42. data/lib/pod_builder/command/generate_lfs.rb +0 -70
  43. data/lib/pod_builder/command/update_lldbinit.rb +0 -162
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 38b88a4295edaa11ff7dd4f13ee2bce7cdef29f01f7b1784b619d99e670bdc57
4
- data.tar.gz: 07dff8cb7ef9f8ece6b484f3310d747ff379ca93763cac482c57a1bcfe17d493
3
+ metadata.gz: 026afc87b8f1c1b60367e611927d1e958f9eab4fa8b362fe5530b8f364b73469
4
+ data.tar.gz: d20a47f60ffea78ad81acb3b7e015bbd62c081ac0b5e493d652a56c24ff07704
5
5
  SHA512:
6
- metadata.gz: 3f7eae835712373a68c7ee54b12c8b3d7af9777abe4b96bdc179600c47d34f598c4d85c46e02f5af2da682953eb8766889e1cf2e7b86b8274ab73e8e0a617b50
7
- data.tar.gz: c9e2c614bdd38c806f1818ed89e8371211ae5547eaab7cd07950a922397e13583c2df338d78c595f7ee316b1b3554bb38705e13110d6d898e07e5fcc5350d634
6
+ metadata.gz: 9ecececb6dca35557797fade2be225d7212d2090a5b2a94883842f7f1bf0d0cb9272eaf3abb721e92f50db8e6e7384453b0c9e5e6929a26a96310ba761dc0d45
7
+ data.tar.gz: b0f464538c82dc152c388a3cc20ab7b8b14a0a4e28469fea60ee7f7ecc314ea4475895b7fdecd387da8e12be437b4ccea005bd7bb148a9f16458d0a2c53ecd96
data/README.md CHANGED
@@ -118,16 +118,20 @@ Will recompile all pods to the versions defined in the Restore-Podfile. You woul
118
118
 
119
119
  When using PodBuilder you loose ability to directly access to the source code of a pod. To overcome this limitation you can use this command which downloads the pod's source code to _PodBuilder/Sources_ and with some [tricks](https://medium.com/@t.camin/debugging-prebuilt-frameworks-c9f52d42600b) restores the ability to use the debugger and step into the code of your prebuilt dependencies. This can be very helpful to catch the exact location of a crash when it occurs (showing something more useful than assembly code). It is however advisable to switch to the original pod when doing any advanced debugging during development of code that involves a pod.
120
120
 
121
- #### `update_lldbinit` command
121
+ #### `generate_lldbinit` command
122
122
 
123
- In some situations you may already have source code for your prebuilt frameworks (e.g. committed in your repo). In this case there is no need to use the `install_sources`, you can run this command passing the folder that contains the source code that you used to generate the prebuilt frameworks. This will update a custom specified `lldbinit` file which will restore the ability to use the debugger and step into the code of your prebuilt dependencies.
123
+ In some situations you may already have source code for your prebuilt frameworks, for example if your project is organized as a monorepo. In this case there is no need to use the `install_sources`, you can run this command passing the folder that contains the source code that you used to generate the prebuilt frameworks.
124
124
 
125
- The `lldbinit` should not be autoloaded from Xcode (e.g. should not be placed under ~/.lldbinit-Xcode) because it can cause weird issues with debugging. Instead load the file using a shared breakpoint placed at the beginning loading by invoking a
125
+ This command will generate a custom lldinit file which will be stored in the _PodBuilder_ folder. Note that this file is added to the .gitignore since it contains absolute path information. Since Xcode 11.5 customly defined lldbinit can be selected in the Run tab in your scheme project ("LLDB Init File"). You should select the generated llbb file path or, if you're using project generation tools such as XcodeGen, you can set it to `${SRCROOT}/../PodBuilder/lldbinit`.
126
126
 
127
+ 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
127
128
 
128
- #### `clear_lldbinit` command
129
+ ````
130
+ pid = spawn("pod_builder generate_lldbinit")
131
+ Process.detach(pid)
132
+ ```
129
133
 
130
- Run this command to remove PodBuilder's customizations from the specified `lldbinit`.
134
+ To generate lldbinit file. We're generating it asynchronously to avoid unnecessarily slow down `pod install` since this file will be needed only when build and running your application.
131
135
 
132
136
  #### `switch` command
133
137
 
@@ -308,16 +312,6 @@ Normally when multiple subspecs are specified in a target a single framework is
308
312
  }
309
313
  ```
310
314
 
311
- #### `lfs_update_gitattributes` 
312
-
313
- Adds a _.gitattributes_ to _PodBuilder/Prebuilt_ and _PodBuilder/dSYM_ to exclude large files. If `lfs_include_pods_folder` is true it will add a the same _.gitattributes_ to the application's _Pods_ folder as well.
314
-
315
-
316
- #### `lfs_include_pods_folder`
317
-
318
- See [`lfs_update_gitattributes`](#lfs_update_gitattributes).
319
-
320
-
321
315
  #### `use_bundler`
322
316
 
323
317
  If you use bundler to pin the version of CocoaPods in your project set this to true. Default false.
@@ -358,11 +352,6 @@ How to proceed in these cases?
358
352
  3. One-by-one switch your pods back to prebuilt, verifying everytime that your Project still compiles.
359
353
 
360
354
 
361
- ### **Build failed with longish output to the stdout, what should I do next?**
362
-
363
- Relaunch the build command passing `-d`, this won't delete the temporary _/tmp/pod_builder_ folder on failure. Open _/tmp/pod_builder/Pods/Pods.xcproject_, make the Pods-DummyTarget target visible by clicking on _Show_ under _Product->Scheme->Manage shemes..._ and build from within Xcode. This will help you understand what went wrong. Remeber to verify that you're building the _Release_ build configuration.
364
-
365
-
366
355
  ### **Do I need to commit compiled frameworks?**
367
356
 
368
357
  No. If the size of compiled frameworks in your repo is a concern (and for whatever reason you can't use [Git-LFS](#git-lfs)) you can choose add the _Prebuilt_ and _dSYM_ folder to .gitignore and run `pod_builder update` to rebuild all frameworks that need to be recompiled.
@@ -374,9 +363,8 @@ Please open an issue here. You may also add the name of the pod to the [`skip_po
374
363
 
375
364
  # Git LFS
376
365
 
377
- PodBuilder integrates with [Git Large File Storage](https://git-lfs.github.com) to move large files, like the prebuilt frameworks, out of your git repo. This allows to benefit from the compilation speed ups of the precompiled frameworks without impacting on your repo overall size.
366
+ We high encourage to use PodBuilder in combination with Git LFS. Tacking PodBuilder/Prebuilt/**/*.framework/* and PodBuilder/Prebuilt/**/*.a and PodBuilder/dSYM/**/* will ensure that your repo size stays under control with all the benefits of having prebuilt dependencies ready to use.
378
367
 
379
- When [`lfs_update_gitattributes = true`](#lfs_update_gitattributes) PodBuilder will automatically update the _.gitattributes_ with the files generated by PodBuilder when building pods.
380
368
 
381
369
  # Try it out!
382
370
 
@@ -39,8 +39,7 @@ Command:
39
39
  + update Rebuild items that are outdated
40
40
  + restore_all Rebuild all pods declared in the Restore-Podfile
41
41
  + install_sources Install sources of pods to debug into prebuilt items
42
- + update_lldbinit Generate an lldbinit file with setting target.source-map to debug prebuilt items
43
- + clear_lldbinit Clear an lldbinit file from PodBuilder's customizations
42
+ + generate_lldbinit Generate an lldbinit file with setting target.source-map to debug prebuilt items
44
43
  + switch Switch between prebuilt/development/standard pod in the Application-Podfile
45
44
  + clean Remove prebuild items, dSYMs and source files added by `install_sources` command that are no longer in the PodBuilder-Podfile
46
45
  + sync_podfile Update your Application-Podfile with all pods declared in the PodBuilder-Podfile
@@ -198,14 +197,6 @@ Options:
198
197
  ]
199
198
  },
200
199
 
201
- "update_lfs" => {
202
- :opts => OptionParser.new do |opts|
203
- end,
204
- :call => [
205
- PodBuilder::Command::GenerateLFS
206
- ]
207
- },
208
-
209
200
  "deintegrate" => {
210
201
  :opts => OptionParser.new do |opts|
211
202
  opts.banner = "
@@ -259,40 +250,27 @@ Usage:
259
250
  ]
260
251
  },
261
252
 
262
- "update_lldbinit" => {
253
+ "generate_lldbinit" => {
263
254
  :opts => OptionParser.new do |opts|
264
255
  opts.banner = "
265
256
  Usage:
266
257
 
267
- $ pod_builder update_lldbinit <LLDBINIT_PATH> <PATH>
268
-
269
- Update LLDBINIT_PATH setting target.source-map in order to be able to step into
270
- and debug prebuilt prebuilt's code.
258
+ $ pod_builder generate_lldbinit [PATH]
271
259
 
272
- Specify the PATH of the folder containing the source code of prebuilt items. PATH can be relative to PodBuilder's Prebuilt folder.
260
+ Update PodBuilder's custom lldbinit by setting the target.source-map which allows to
261
+ step into and debug prebuilt prebuilt's code. To allow this to work it is required
262
+ to specify a path containing the source code that generated the prebuilt item.
273
263
 
274
- "
264
+ You can pass a [PATH] which PodBuilder will use to look for dependencies's source code.
265
+ If omitted it will be implied that the project is organized as a monorepo expecting
266
+ source code dependencies to live in the project repo.
267
+ "
275
268
  end,
276
269
  :call => [
277
270
  PodBuilder::Command::UpdateLldbInit
278
271
  ]
279
272
  },
280
273
 
281
- "clear_lldbinit" => {
282
- :opts => OptionParser.new do |opts|
283
- opts.banner = "
284
- Usage:
285
-
286
- $ pod_builder clear_lldbinit <LLDBINIT_PATH>
287
-
288
- Clear LLDBINIT_PATH setting target.source-map PodBuilder's customizations
289
- "
290
- end,
291
- :call => [
292
- PodBuilder::Command::ClearLldbInit
293
- ]
294
- },
295
-
296
274
  "switch" => {
297
275
  :opts => OptionParser.new do |opts|
298
276
  opts.banner = "
@@ -9,8 +9,6 @@ require 'pod_builder/command/deintegrate'
9
9
  require 'pod_builder/command/generate_podspec'
10
10
  require 'pod_builder/command/install_sources'
11
11
  require 'pod_builder/command/switch'
12
- require 'pod_builder/command/generate_lfs'
13
12
  require 'pod_builder/command/sync_podfile'
14
13
  require 'pod_builder/command/info'
15
- require 'pod_builder/command/update_lldbinit'
16
- require 'pod_builder/command/clear_lldbinit'
14
+ require 'pod_builder/command/generate_lldbinit'
@@ -96,7 +96,6 @@ module PodBuilder
96
96
 
97
97
  Licenses::write(licenses, all_buildable_items)
98
98
 
99
- GenerateLFS::call()
100
99
  Podspec::generate(all_buildable_items, analyzer)
101
100
 
102
101
  builded_pods = podfiles_items.flatten
@@ -0,0 +1,151 @@
1
+ require 'pod_builder/core'
2
+ require 'digest'
3
+
4
+ module PodBuilder
5
+ module Command
6
+ class UpdateLldbInit
7
+ def self.call
8
+ Configuration.check_inited
9
+ if Configuration.build_using_repo_paths
10
+ raise "\n\nlldb shenanigans not supported when 'build_using_repo_paths' is enabled".red
11
+ end
12
+
13
+ arguments = ARGV.dup
14
+
15
+ if arguments.count > 0
16
+ source_path = arguments[0]
17
+ if !is_absolute_path(source_path)
18
+ source_path = PodBuilder::basepath(source_path)
19
+ end
20
+ source_path = File.expand_path(source_path)
21
+
22
+ raise "\n\nSpecified path does not exists" unless File.directory?(source_path)
23
+ end
24
+
25
+ base_path = PodBuilder::basepath
26
+
27
+ app_podfile_content = File.read(PodBuilder::project_path("Podfile"))
28
+ podfile_hash = Digest::MD5.hexdigest(app_podfile_content)
29
+
30
+ lldbinit_path = File.expand_path(PodBuilder::basepath(Configuration.lldbinit_name))
31
+ lldbinit_content = File.exist?(lldbinit_path) ? File.read(lldbinit_path) : ""
32
+
33
+ if lldbinit_content.include?("# <pb_md5:#{base_path}:#{podfile_hash}")
34
+ puts "\n\n🎉 already in sync!\n".green
35
+ return 0
36
+ end
37
+
38
+ puts "Extracting debug information".yellow
39
+
40
+ unless source_path.nil?
41
+ podspec_paths = Dir.glob("#{source_path}/**/*.podspec") + Dir.glob("#{source_path}/**/*.podspec.json")
42
+ podspec_contents = podspec_paths.map { |t| File.read(t).gsub(/\s+/, "").gsub("\"", "'") }
43
+ end
44
+
45
+ source_map_lines = []
46
+ Dir.glob("#{PodBuilder::prebuiltpath}/**/Podbuilder.json").each do |path|
47
+ data = JSON.parse(File.read(path))
48
+ next if data.fetch("is_prebuilt", true)
49
+
50
+ # It would be much nicer if PodBuilder.json already contained this info in a custom key
51
+ pod_name_matches = data["entry"].match(/pod '(.*?)'/)
52
+ next unless pod_name_matches&.size == 2
53
+
54
+ podspec_name = pod_name_matches[1]
55
+ podspec_path = "#{File.dirname(path)}/#{podspec_name}.podspec"
56
+
57
+ next unless File.exist?(podspec_path)
58
+
59
+ build_source_path_matches = data["entry"].match(/:path => '(.*?)'/)
60
+ if build_source_path_matches&.size == 2
61
+ build_source_path = build_source_path_matches[1]
62
+
63
+ if !is_absolute_path(build_source_path[0])
64
+ build_source_path = PodBuilder::basepath(build_source_path)
65
+ end
66
+ build_source_path = File.expand_path(build_source_path)
67
+ elsif source_path.nil?
68
+ next
69
+ else
70
+ # Find source code for podspec_name
71
+ podspec_path = find_podspec_path_for(podspec_name, podspec_paths, podspec_contents)
72
+ next if podspec_path.nil?
73
+ end
74
+
75
+ original_compile_path = data["original_compile_path"] + "/Pods/#{podspec_name}"
76
+ if is_prebuilt_pod(podspec_path, app_podfile_content)
77
+ unless source_map_lines.include?("settings append target.source-map '#{original_compile_path}'")
78
+ source_map_lines.push("# <pb:#{base_path}>\n", "settings append target.source-map '#{original_compile_path}' '#{build_source_path}'\n")
79
+ end
80
+ end
81
+ end
82
+
83
+ rewrite_lldinit(lldbinit_path, source_map_lines, base_path, podfile_hash)
84
+
85
+ puts "\n\n🎉 done!\n".green
86
+ return 0
87
+ end
88
+
89
+ private
90
+
91
+ def self.is_absolute_path(path)
92
+ return ["~", "/"].any? { |t| t.start_with?(t) }
93
+ end
94
+
95
+ def self.is_prebuilt_pod(podspec_path, app_podfile_content)
96
+ development_path = Pathname.new(podspec_path).relative_path_from(Pathname.new(PodBuilder::project_path)).parent.to_s
97
+
98
+ return app_podfile_content.include?(":path => '#{development_path}'")
99
+ end
100
+
101
+ def self.rewrite_lldinit(lldbinit_path, source_map_lines, base_path, podfile_hash)
102
+ puts "Writing #{lldbinit_path}".yellow
103
+
104
+ FileUtils.touch(lldbinit_path)
105
+ raise "\n\nDestination file should be a file".red unless File.exist?(lldbinit_path)
106
+
107
+ lldbinit_lines = []
108
+ skipNext = false
109
+ File.read(lldbinit_path).each_line do |line|
110
+ if line.include?("# <pb:#{base_path}>") || line.include?("# <pb>")
111
+ skipNext = true
112
+ next
113
+ elsif skipNext
114
+ skipNext = false
115
+ next
116
+ elsif line != "\n"
117
+ if line.include?("settings set target.source-map")
118
+ raise "\n\n#{lldbinit_destination_path} already includes a manual `settings set target.source-map`. This is unsupported and you'll have to manually remove that entry\n".red
119
+ end
120
+ lldbinit_lines.push(line)
121
+ end
122
+ end
123
+
124
+ source_map_lines.insert(0, "# <pb>\n")
125
+ source_map_lines.insert(1, "settings clear target.source-map\n")
126
+ source_map_lines.insert(2, "# <pb:#{base_path}>\n")
127
+ source_map_lines.insert(3, "# <pb_md5:#{base_path}:#{podfile_hash}>\n")
128
+
129
+ lldbinit_lines += source_map_lines
130
+
131
+ File.write(lldbinit_path, lldbinit_lines.join())
132
+ end
133
+
134
+ def self.find_podspec_path_for(name, podspec_paths, podspec_contents)
135
+ if (path = podspec_paths.detect { |t| File.basename(t, ".podspec") == name.gsub("_", "-") })
136
+ return path
137
+ elsif (path_index = podspec_contents.find_index { |t| t.include?(".module_name='#{name}'") })
138
+ return podspec_paths[path_index]
139
+ elsif (path_index = podspec_contents.find_index { |t| t.include?(".name='#{name}") }) # kind of optimistic,, but a last resort
140
+ return podspec_paths[path_index]
141
+ elsif (path_index = podspec_contents.find_index { |t| t.include?("'module_name':'#{name}'") }) # [json podspec]
142
+ return podspec_paths[path_index]
143
+ elsif (path_index = podspec_contents.find_index { |t| t.include?("'name':'#{name}") }) # [json podspec] kind of optimistic,, but a last resort
144
+ return podspec_paths[path_index]
145
+ else
146
+ return nil
147
+ end
148
+ end
149
+ end
150
+ end
151
+ end
@@ -22,17 +22,8 @@ module PodBuilder
22
22
  FileUtils.mkdir_p("#{OPTIONS[:prebuild_path]}/.pod_builder")
23
23
  FileUtils.touch("#{OPTIONS[:prebuild_path]}/.pod_builder/pod_builder")
24
24
 
25
- source_path_rel_path = "Sources"
26
- development_pods_config_rel_path = Configuration.dev_pods_configuration_filename
27
-
28
- git_ignores = ["Pods/",
29
- "*.xcworkspace",
30
- "*.xcodeproj",
31
- "Podfile.lock",
32
- source_path_rel_path,
33
- development_pods_config_rel_path]
34
-
35
- File.write("#{OPTIONS[:prebuild_path]}/.gitignore", git_ignores.join("\n"))
25
+ write_gitignore
26
+ write_gitattributes
36
27
 
37
28
  project_podfile_path = PodBuilder::project_path("Podfile")
38
29
  prebuilt_podfile_path = File.join(OPTIONS[:prebuild_path], "Podfile")
@@ -45,7 +36,9 @@ module PodBuilder
45
36
  podfile_content = Podfile.update_project_entries(podfile_content, Init.method(:podfile_path_transform))
46
37
  podfile_content = Podfile.update_require_entries(podfile_content, Init.method(:podfile_path_transform))
47
38
 
48
- podfile_content = Podfile.prepare_for_react_native(podfile_content)
39
+ if podfile_content.include?("/node_modules/react-native/")
40
+ podfile_content = Podfile.prepare_for_react_native(podfile_content)
41
+ end
49
42
 
50
43
  File.write(prebuilt_podfile_path, podfile_content)
51
44
 
@@ -59,6 +52,27 @@ module PodBuilder
59
52
 
60
53
  private
61
54
 
55
+ def self.write_gitignore
56
+ source_path_rel_path = "Sources"
57
+ development_pods_config_rel_path = Configuration.dev_pods_configuration_filename
58
+
59
+ git_ignores = ["Pods/",
60
+ "*.xcworkspace",
61
+ "*.xcodeproj",
62
+ "Podfile.lock",
63
+ Configuration.lldbinit_name,
64
+ source_path_rel_path,
65
+ development_pods_config_rel_path]
66
+
67
+ File.write("#{OPTIONS[:prebuild_path]}/.gitignore", git_ignores.join("\n"))
68
+ end
69
+
70
+ def self.write_gitattributes
71
+ git_attributes = ["#{Configuration.prebuilt_info_filename} binary"]
72
+
73
+ File.write("#{OPTIONS[:prebuild_path]}/.gitattributes", git_attributes.join("\n"))
74
+ end
75
+
62
76
  def self.podfile_path_transform(path)
63
77
  use_absolute_paths = false
64
78
  podfile_path = File.join(OPTIONS[:prebuild_path], "Podfile")
@@ -23,7 +23,6 @@ module PodBuilder
23
23
  DEFAULT_FORCE_PREBUILD_PODS = ["Firebase", "GoogleTagManager"]
24
24
  DEFAULT_BUILD_SYSTEM = "Legacy".freeze # either Latest (New build system) or Legacy (Standard build system)
25
25
  DEFAULT_LIBRARY_EVOLUTION_SUPPORT = false
26
- MIN_LFS_SIZE_KB = 256.freeze
27
26
  DEFAULT_PLATFORMS = ["iphoneos", "iphonesimulator", "appletvos", "appletvsimulator"].freeze
28
27
  DEFAULT_BUILD_FOR_APPLE_SILICON = false
29
28
  DEFAULT_BUILD_USING_REPO_PATHS = false
@@ -31,7 +30,6 @@ module PodBuilder
31
30
  private_constant :DEFAULT_BUILD_SETTINGS
32
31
  private_constant :DEFAULT_BUILD_SYSTEM
33
32
  private_constant :DEFAULT_LIBRARY_EVOLUTION_SUPPORT
34
- private_constant :MIN_LFS_SIZE_KB
35
33
 
36
34
  class <<self
37
35
  attr_accessor :allow_building_development_pods
@@ -51,9 +49,6 @@ module PodBuilder
51
49
  attr_accessor :build_path
52
50
  attr_accessor :configuration_filename
53
51
  attr_accessor :dev_pods_configuration_filename
54
- attr_accessor :lfs_min_file_size
55
- attr_accessor :lfs_update_gitattributes
56
- attr_accessor :lfs_include_pods_folder
57
52
  attr_accessor :project_name
58
53
  attr_accessor :restore_enabled
59
54
  attr_accessor :prebuilt_info_filename
@@ -65,6 +60,7 @@ module PodBuilder
65
60
  attr_accessor :build_for_apple_silicon
66
61
  attr_accessor :build_using_repo_paths
67
62
  attr_accessor :react_native_project
63
+ attr_accessor :lldbinit_name
68
64
  end
69
65
 
70
66
  @allow_building_development_pods = false
@@ -84,14 +80,12 @@ module PodBuilder
84
80
  @build_path = build_base_path
85
81
  @configuration_filename = "PodBuilder.json".freeze
86
82
  @dev_pods_configuration_filename = "PodBuilderDevPodsPaths.json".freeze
87
- @lfs_min_file_size = MIN_LFS_SIZE_KB
88
- @lfs_update_gitattributes = false
89
- @lfs_include_pods_folder = false
90
83
  @project_name = ""
91
84
  @restore_enabled = true
92
85
  @prebuilt_info_filename = "PodBuilder.json"
93
86
  @lockfile_name = "PodBuilder.lock"
94
87
  @lockfile_path = "/tmp/#{lockfile_name}"
88
+ @lldbinit_name = "lldbinit".freeze
95
89
 
96
90
  @use_bundler = false
97
91
  @deterministic_build = false
@@ -173,16 +167,6 @@ module PodBuilder
173
167
  Configuration.subspecs_to_split = value
174
168
  end
175
169
  end
176
- if value = json["lfs_update_gitattributes"]
177
- if [TrueClass, FalseClass].include?(value.class)
178
- Configuration.lfs_update_gitattributes = value
179
- end
180
- end
181
- if value = json["lfs_include_pods_folder"]
182
- if [TrueClass, FalseClass].include?(value.class)
183
- Configuration.lfs_include_pods_folder = value
184
- end
185
- end
186
170
  if value = json["project_name"]
187
171
  if value.is_a?(String) && value.length > 0
188
172
  Configuration.project_name = value
@@ -262,8 +246,6 @@ module PodBuilder
262
246
  config["library_evolution_support"] = Configuration.library_evolution_support
263
247
  config["license_filename"] = Configuration.license_filename
264
248
  config["subspecs_to_split"] = Configuration.subspecs_to_split
265
- config["lfs_update_gitattributes"] = Configuration.lfs_update_gitattributes
266
- config["lfs_include_pods_folder"] = Configuration.lfs_include_pods_folder
267
249
  config["restore_enabled"] = Configuration.restore_enabled
268
250
  config["allow_building_development_pods"] = Configuration.allow_building_development_pods
269
251
  config["use_bundler"] = Configuration.use_bundler