cocoapods-xcremotecache 0.0.16 → 0.0.17

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: 0d10f7d00729ae888941fcef52d599379a094020de82b5540005ae970d814929
4
- data.tar.gz: 391aee8027c9796ac45b3703b5f5eafc24fd6a555d211e6aa02629ace9f9b887
3
+ metadata.gz: dba4fdcb0680c3c684de948c827d778d28fcd7410f94543d25bce49066b50ae9
4
+ data.tar.gz: 72a36d2de6377fe6d18f33596c8b076b87e254c5bccc9675045f32fa6589500c
5
5
  SHA512:
6
- metadata.gz: 9df9bb0c507814034d0af16d24337eaec451a1d0456ff727952c9d76a8abef63384bcf5e8fd436d0ee212d5455e65934d409123bba3d2f9e1a81d3f70b91a39f
7
- data.tar.gz: c583acfc889027a047b5144919469a2477b4391994f72d82568838a839a44c91fe982c772dcb3c7296c47f7bb27db2da334907b8cd9640fe1ad17aabb9eaf5ea
6
+ metadata.gz: f9e335d055ffdf78a9421bb712eec08aaf8aa2f9fbd61685f8da5eb1b4bd3a74585bae442f01f5a30c50472f4965a4148fa1d7e6228ffa878661163f98982fe7
7
+ data.tar.gz: 714534dc97841633dd31f3fb3f136a2d967696b5fb0ff8544ae83fa0684a171e13c2d5dae40c35ae1d03f9d7c392829cdb74bd51ca1ff33a7434368cc8c4e559
@@ -123,7 +123,8 @@ module CocoapodsXCRemoteCacheModifier
123
123
  exclude_build_configurations,
124
124
  final_target,
125
125
  fake_src_root,
126
- exclude_sdks_configurations
126
+ exclude_sdks_configurations,
127
+ enable_swift_driver_integration
127
128
  )
128
129
  srcroot_relative_xc_location = parent_dir(xc_location, repo_distance)
129
130
  # location of the entrite CocoaPods project, relative to SRCROOT
@@ -137,14 +138,15 @@ module CocoapodsXCRemoteCacheModifier
137
138
  elsif mode == 'producer' || mode == 'producer-fast'
138
139
  config.build_settings.delete('CC') if config.build_settings.key?('CC')
139
140
  end
140
- reset_build_setting(config.build_settings, 'SWIFT_EXEC', "$SRCROOT/#{srcroot_relative_xc_location}/xcswiftc", exclude_sdks_configurations)
141
+ swiftc_name = enable_swift_driver_integration ? 'swiftc' : 'xcswiftc'
142
+ reset_build_setting(config.build_settings, 'SWIFT_EXEC', "$SRCROOT/#{srcroot_relative_xc_location}/#{swiftc_name}", exclude_sdks_configurations)
141
143
  reset_build_setting(config.build_settings, 'LIBTOOL', "$SRCROOT/#{srcroot_relative_xc_location}/xclibtool", exclude_sdks_configurations)
142
144
  # Setting LIBTOOL to '' breaks SwiftDriver intengration so resetting it to the original value 'libtool' for all excluded configurations
143
145
  add_build_setting_for_sdks(config.build_settings, 'LIBTOOL', 'libtool', exclude_sdks_configurations)
144
146
  reset_build_setting(config.build_settings, 'LD', "$SRCROOT/#{srcroot_relative_xc_location}/xcld", exclude_sdks_configurations)
145
147
  reset_build_setting(config.build_settings, 'LDPLUSPLUS', "$SRCROOT/#{srcroot_relative_xc_location}/xcldplusplus", exclude_sdks_configurations)
146
148
  reset_build_setting(config.build_settings, 'LIPO', "$SRCROOT/#{srcroot_relative_xc_location}/xclipo", exclude_sdks_configurations)
147
- reset_build_setting(config.build_settings, 'SWIFT_USE_INTEGRATED_DRIVER', 'NO', exclude_sdks_configurations)
149
+ reset_build_setting(config.build_settings, 'SWIFT_USE_INTEGRATED_DRIVER', 'NO', exclude_sdks_configurations) unless enable_swift_driver_integration
148
150
 
149
151
  reset_build_setting(config.build_settings, 'XCREMOTE_CACHE_FAKE_SRCROOT', fake_src_root, exclude_sdks_configurations)
150
152
  reset_build_setting(config.build_settings, 'XCRC_PLATFORM_PREFERRED_ARCH', "$(LINK_FILE_LIST_$(CURRENT_VARIANT)_$(PLATFORM_PREFERRED_ARCH):dir:standardizepath:file:default=arm64)", exclude_sdks_configurations)
@@ -498,6 +500,7 @@ module CocoapodsXCRemoteCacheModifier
498
500
  check_platform = @@configuration['check_platform']
499
501
  fake_src_root = @@configuration['fake_src_root']
500
502
  exclude_sdks_configurations = @@configuration['exclude_sdks_configurations'] || []
503
+ enable_swift_driver_integration = @@configuration['enable_swift_driver_integration'] || false
501
504
 
502
505
  xccc_location_absolute = "#{user_proj_directory}/#{xccc_location}"
503
506
  xcrc_location_absolute = "#{user_proj_directory}/#{xcrc_location}"
@@ -521,7 +524,7 @@ module CocoapodsXCRemoteCacheModifier
521
524
  next if target.name.start_with?("Pods-")
522
525
  next if target.name.end_with?("Tests")
523
526
  next if exclude_targets.include?(target.name)
524
- enable_xcremotecache(target, 1, xcrc_location, xccc_location, mode, exclude_build_configurations, final_target,fake_src_root, exclude_sdks_configurations)
527
+ enable_xcremotecache(target, 1, xcrc_location, xccc_location, mode, exclude_build_configurations, final_target,fake_src_root, exclude_sdks_configurations, enable_swift_driver_integration)
525
528
  end
526
529
 
527
530
  # Create .rcinfo into `Pods` directory as that .xcodeproj reads configuration from .xcodeproj location
@@ -534,7 +537,7 @@ module CocoapodsXCRemoteCacheModifier
534
537
  next if target.source_build_phase.files_references.empty?
535
538
  next if target.name.end_with?("Tests")
536
539
  next if exclude_targets.include?(target.name)
537
- enable_xcremotecache(target, 1, xcrc_location, xccc_location, mode, exclude_build_configurations, final_target,fake_src_root, exclude_sdks_configurations)
540
+ enable_xcremotecache(target, 1, xcrc_location, xccc_location, mode, exclude_build_configurations, final_target,fake_src_root, exclude_sdks_configurations, enable_swift_driver_integration)
538
541
  end
539
542
  generated_project.save()
540
543
  end
@@ -575,7 +578,7 @@ module CocoapodsXCRemoteCacheModifier
575
578
  # Attach XCRC to the app targets
576
579
  user_project.targets.each do |target|
577
580
  next if exclude_targets.include?(target.name)
578
- enable_xcremotecache(target, 0, xcrc_location, xccc_location, mode, exclude_build_configurations, final_target,fake_src_root, exclude_sdks_configurations)
581
+ enable_xcremotecache(target, 0, xcrc_location, xccc_location, mode, exclude_build_configurations, final_target,fake_src_root, exclude_sdks_configurations, enable_swift_driver_integration)
579
582
  end
580
583
 
581
584
  # Set Target sourcemap
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
 
15
15
  module CocoapodsXcremotecache
16
- VERSION = "0.0.16"
16
+ VERSION = "0.0.17"
17
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-xcremotecache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bartosz Polaczyk
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-04-15 00:00:00.000000000 Z
12
+ date: 2023-06-14 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: CocoaPods plugin that enables XCRemoteCache with the project.
15
15
  email: