pod-builder 2.0.0.beta.31 → 2.0.0.beta.32

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: 9a89819da12d08eb85bd23b482de2a285d2b4314a1cfc7ca81a137d8e1d01d18
4
- data.tar.gz: 06ecf7b7d93951cf2cf461452f9708b86a44927c1a2bface198388b32c348f21
3
+ metadata.gz: 2d2d2da339c3c50f17484abe18c4f4dd8080d4344bc526b393c95c3d166c9851
4
+ data.tar.gz: 483067dfc8cd9b914dfa9768afc33cf067f7807a9b09ce3f1b3c86c67b4c08a6
5
5
  SHA512:
6
- metadata.gz: e97afae2843677a7759a7c8a0a9dc8d194fef12d7a66ec6e776d7ef69b6beca719b8b33f9abf9288b3c8fb05853ec74b23ed38ef9fe1e46598f99bf5530fc343
7
- data.tar.gz: 4d23723f38a3ec05a5560003e86e3dcdb1bee06f8bf452a5c771efdf1484f139311f59369ae0de9c003a1805721cc062cadf771b0fb02ec8519de1028e927369
6
+ metadata.gz: e87ca666254ff92c0c729412acf61d02e822b55933524d07ed2ec13ea38b33a29f13fac2ec6eef221f373626b50f690ec45235f7874910374123806d0a0d6122
7
+ data.tar.gz: 945398f22ccc35ac924a16e6fe3a95be6343fd0ee335f8f9f94082004193113566884a49043cefac8bf6efb705db79d774dab304e56ec15fe468acdcf6e687e4
data/README.md CHANGED
@@ -12,6 +12,10 @@ Unless you're using a Ruby version manager you should generally install using `s
12
12
 
13
13
  $ sudo gem install pod-builder
14
14
 
15
+ ## Requirements
16
+
17
+ Ruby 2.6.3 or newer. Cocoapods 1.9.0 or newer
18
+
15
19
  # Quick start
16
20
 
17
21
  You can the initialize your project to use the tool using the `init` command
@@ -253,6 +257,8 @@ Xcode build settings to use. You can override the default values which are:
253
257
  }
254
258
  ```
255
259
 
260
+ If your project uses bitcode change "ENABLE_BITCODE" to "YES".
261
+
256
262
  #### `build_settings_overrides`
257
263
 
258
264
  Like `build_settings` but per pod. Pod name can also refer to subspec.
@@ -272,7 +278,7 @@ Like `build_settings` but per pod. Pod name can also refer to subspec.
272
278
 
273
279
  #### `build_system`
274
280
 
275
- Specify which build system to use to compile frameworks. Either `Legacy` (standard build system) or `Latest` (new build system). Default value: `Legacy`.
281
+ Specify which build system to use to compile frameworks. Either `Legacy` (standard build system) or `Latest` (new build system). Default value: `Latest`.
276
282
 
277
283
  #### `library_evolution_support`
278
284
 
@@ -8,7 +8,7 @@ if show_version
8
8
  exit(0)
9
9
  end
10
10
 
11
- if ENV['DEBUGGING']
11
+ if ENV["DEBUGGING"]
12
12
  puts "Running in debug, injecting $LOAD_PATH"
13
13
  libdir = File.expand_path("#{File.dirname(__FILE__)}/../lib")
14
14
  $LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
@@ -373,7 +373,7 @@ end
373
373
 
374
374
  command_ret = -1
375
375
  begin
376
- unless ENV['USER'] != "root"
376
+ unless ENV["USER"] != "root"
377
377
  raise "\n\nFor safety do not run this as root\n".red
378
378
  end
379
379
 
@@ -39,7 +39,7 @@ module PodBuilder
39
39
  }.freeze
40
40
  DEFAULT_SKIP_PODS = ["GoogleMaps"]
41
41
  DEFAULT_FORCE_PREBUILD_PODS = ["GoogleTagManager"]
42
- DEFAULT_BUILD_SYSTEM = "Legacy".freeze # either Latest (New build system) or Legacy (Standard build system)
42
+ DEFAULT_BUILD_SYSTEM = "Latest".freeze # either Latest (New build system) or Legacy (Standard build system)
43
43
  DEFAULT_LIBRARY_EVOLUTION_SUPPORT = false
44
44
  DEFAULT_PLATFORMS = ["iphoneos", "iphonesimulator", "appletvos", "appletvsimulator"].freeze
45
45
  DEFAULT_BUILD_FOR_APPLE_SILICON = false
@@ -177,7 +177,7 @@ module PodBuilder
177
177
  return InstallResult.new(licenses, prebuilt_info)
178
178
  rescue Exception => e
179
179
  if File.directory?("#{Configuration.build_path}/Pods/Pods.xcodeproj")
180
- if ENV['DEBUGGING']
180
+ if ENV["DEBUGGING"]
181
181
  system("xed #{Configuration.build_path}/Pods")
182
182
  elsif !OPTIONS.has_key?(:no_stdin_available)
183
183
  confirm = ask("\n\nOh no! Something went wrong during prebuild phase! Do you want to open the prebuild project to debug the error, you will need to add and run the Pods-Dummy scheme? [Y/N] ".red) { |yn| yn.limit = 1, yn.validate = /[yn]/i }
@@ -37,29 +37,33 @@ module PodBuilder
37
37
  item_build_settings = Configuration.build_settings_overrides[item.name] || {}
38
38
 
39
39
  # These settings need to be set as is to properly build frameworks
40
- build_settings['SWIFT_COMPILATION_MODE'] = 'wholemodule'
41
- build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
42
- build_settings['DEBUG_INFORMATION_FORMAT'] = "dwarf-with-dsym"
40
+ build_settings["SWIFT_COMPILATION_MODE"] = "wholemodule"
41
+ build_settings["ONLY_ACTIVE_ARCH"] = "NO"
42
+ build_settings["DEBUG_INFORMATION_FORMAT"] = "dwarf-with-dsym"
43
43
 
44
- build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = platform.deployment_target.version # Fix compilation warnings on Xcode 12
44
+ build_settings["IPHONEOS_DEPLOYMENT_TARGET"] = platform.deployment_target.version # Fix compilation warnings on Xcode 12
45
45
 
46
46
  # Don't store .pcm info in binary, see https://forums.swift.org/t/swift-behavior-of-gmodules-and-dsyms/23211/3
47
- build_settings['CLANG_ENABLE_MODULE_DEBUGGING'] = 'NO'
48
- build_settings['OTHER_SWIFT_FLAGS'] = "$(inherited) -Xfrontend -no-clang-module-breadcrumbs"
47
+ build_settings["CLANG_ENABLE_MODULE_DEBUGGING"] = "NO"
48
+ build_settings["OTHER_SWIFT_FLAGS"] = "$(inherited) -Xfrontend -no-clang-module-breadcrumbs"
49
49
 
50
50
  # Improve compile speed
51
- build_settings['COMPILER_INDEX_STORE_ENABLE'] = 'NO'
52
- build_settings['SWIFT_INDEX_STORE_ENABLE'] = 'NO'
53
- build_settings['MTL_ENABLE_INDEX_STORE'] = 'NO'
51
+ build_settings["COMPILER_INDEX_STORE_ENABLE"] = "NO"
52
+ build_settings["SWIFT_INDEX_STORE_ENABLE"] = "NO"
53
+ build_settings["MTL_ENABLE_INDEX_STORE"] = "NO"
54
54
 
55
55
  if Configuration.build_system == "Legacy"
56
- build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = "NO"
56
+ build_settings["BUILD_LIBRARY_FOR_DISTRIBUTION"] = "NO"
57
57
  raise "\n\nCan't enable library evolution support with legacy build system!".red if Configuration.library_evolution_support
58
58
  elsif Configuration.library_evolution_support
59
- build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = "YES"
59
+ build_settings["BUILD_LIBRARY_FOR_DISTRIBUTION"] = "YES"
60
60
  end
61
61
 
62
- build_settings['SWIFT_VERSION'] = item_build_settings["SWIFT_VERSION"] || item.swift_version || project_swift_version(analyzer)
62
+ build_settings["SWIFT_VERSION"] = item_build_settings["SWIFT_VERSION"] || item.swift_version || project_swift_version(analyzer)
63
+
64
+ if build_settings["ENABLE_BITCODE"] == "YES"
65
+ build_settings["BITCODE_GENERATION_MODE"] = "bitcode"
66
+ end
63
67
 
64
68
  item_build_settings.each do |k, v|
65
69
  build_settings[k] = v
@@ -387,7 +391,7 @@ module PodBuilder
387
391
  def self.install_using_frameworks(analyzer)
388
392
  target_settings = analyzer.podfile.target_definition_list.map(&:uses_frameworks?).uniq
389
393
  if target_settings.count == 1
390
- if target_settings.first == false && ENV['DEBUGGING'].nil?
394
+ if target_settings.first == false && ENV["DEBUGGING"].nil?
391
395
  raise "\n\nOnly framework packaging currently supported. Please add 'use_frameworks!' at Podfile root level (not nested in targets)".red
392
396
  end
393
397
  return target_settings.first
@@ -259,8 +259,8 @@ module PodBuilder
259
259
  project = Xcodeproj::Project.open(project_path)
260
260
  project.targets.each do |target|
261
261
  config = target.build_configurations.find { |config| config.name.eql? configuration }
262
- config.build_settings['DEBUG_INFORMATION_FORMAT'] = 'dwarf-with-dsym'
263
- config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
262
+ config.build_settings["DEBUG_INFORMATION_FORMAT"] = "dwarf-with-dsym"
263
+ config.build_settings["ONLY_ACTIVE_ARCH"] = "NO"
264
264
  end
265
265
  project.save
266
266
  end
@@ -1,4 +1,4 @@
1
1
  module PodBuilder
2
- VERSION = "2.0.0.beta.31"
2
+ VERSION = "2.0.0.beta.32"
3
3
  end
4
4
 
@@ -21,6 +21,8 @@ Gem::Specification.new do |spec|
21
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  spec.require_paths = ["lib"]
23
23
 
24
+ spec.required_ruby_version = '>= 2.6'
25
+
24
26
  spec.add_development_dependency "bundler", "~> 2.0"
25
27
  spec.add_development_dependency "rake", ">= 12.3.3"
26
28
  spec.add_development_dependency "ruby-debug-ide", '0.6.1'
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.31
4
+ version: 2.0.0.beta.32
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-09-29 00:00:00.000000000 Z
11
+ date: 2020-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -226,7 +226,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
226
226
  requirements:
227
227
  - - ">="
228
228
  - !ruby/object:Gem::Version
229
- version: '0'
229
+ version: '2.6'
230
230
  required_rubygems_version: !ruby/object:Gem::Requirement
231
231
  requirements:
232
232
  - - ">"