cocoapods-xcremotecache 0.0.6 → 0.0.9

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: b5729278f5bfda276e8d0ea6c3a240e7292dbe0c91530f1de8ea925ef5aeb9c6
4
- data.tar.gz: 6188f57eceb4c204fdccf41e0fe3d6fcca38bf942c4f84ed2524943c16a1b73b
3
+ metadata.gz: c55188d92fcdf04e74187bd4c61dc05759f4b88a4a14709c855fe8f4f6edd285
4
+ data.tar.gz: f30d155a01be304acd6630a8c976dac97aab670fd4fcab25b3c43294f622a91c
5
5
  SHA512:
6
- metadata.gz: ca3f2d700a3522a8c26599f1f70ff2539713e44c8cd0fafbdf6041dff6aeb25b88d3cfb117099fd35bc290fd052380d67ddcbcc59443b05cb97cbe01f71575b3
7
- data.tar.gz: b737a9f5591f86ea1234c812f07010cf18a80cf4ad4497f5da9b9f3812e3e5b3961468743f40b4478bee48e9543fe4fb776548bb720992cf630df746cf7ded32
6
+ metadata.gz: b1f4d863ffcff4fbb60a547d0ec86e8f1152441d13e046539cc8c773a8d29da7a1beb49324c842c41e4c1d74639d3a6ced669eda3733cb4f989c3ce4b678cebd
7
+ data.tar.gz: 7abad465202e061fd629b53237dfd2aa6584c57481f2f00a76441f67c99ea495523e886b629cc3170233412893b8a35728660d1971023ebc645cf71397384927
@@ -135,7 +135,8 @@ module CocoapodsXCRemoteCacheModifier
135
135
  phase.name != nil && phase.name.start_with?("[XCRC] Prebuild")
136
136
  end
137
137
  end
138
- prebuild_script = existing_prebuild_script || target.new_shell_script_build_phase("[XCRC] Prebuild")
138
+
139
+ prebuild_script = existing_prebuild_script || target.new_shell_script_build_phase("[XCRC] Prebuild #{target.name}")
139
140
  prebuild_script.shell_script = "\"$SCRIPT_INPUT_FILE_0\""
140
141
  prebuild_script.input_paths = ["$SRCROOT/#{srcroot_relative_xc_location}/xcprebuild"]
141
142
  prebuild_script.output_paths = [
@@ -144,8 +145,11 @@ module CocoapodsXCRemoteCacheModifier
144
145
  ]
145
146
  prebuild_script.dependency_file = "$(TARGET_TEMP_DIR)/prebuild.d"
146
147
 
147
- # Move prebuild (last element) to the first position (to make it real 'prebuild')
148
- target.build_phases.rotate!(-1) if existing_prebuild_script.nil?
148
+ # Move prebuild (last element) to the position before compile sources phase (to make it real 'prebuild')
149
+ if !existing_prebuild_script
150
+ compile_phase_index = target.build_phases.index(target.source_build_phase)
151
+ target.build_phases.insert(compile_phase_index, target.build_phases.delete(prebuild_script))
152
+ end
149
153
  elsif mode == 'producer' || mode == 'producer-fast'
150
154
  # Delete existing prebuild build phase (to support switching between modes)
151
155
  target.build_phases.delete_if do |phase|
@@ -161,7 +165,7 @@ module CocoapodsXCRemoteCacheModifier
161
165
  phase.name != nil && phase.name.start_with?("[XCRC] Postbuild")
162
166
  end
163
167
  end
164
- postbuild_script = existing_postbuild_script || target.new_shell_script_build_phase("[XCRC] Postbuild")
168
+ postbuild_script = existing_postbuild_script || target.new_shell_script_build_phase("[XCRC] Postbuild #{target.name}")
165
169
  postbuild_script.shell_script = "\"$SCRIPT_INPUT_FILE_0\""
166
170
  postbuild_script.input_paths = ["$SRCROOT/#{srcroot_relative_xc_location}/xcpostbuild"]
167
171
  postbuild_script.output_paths = [
@@ -178,7 +182,7 @@ module CocoapodsXCRemoteCacheModifier
178
182
  end
179
183
  end
180
184
  mark_script = existing_mark_script || target.new_shell_script_build_phase("[XCRC] Mark")
181
- mark_script.shell_script = "\"$SCRIPT_INPUT_FILE_0\" mark --configuration $CONFIGURATION --platform $PLATFORM_NAME"
185
+ mark_script.shell_script = "\"$SCRIPT_INPUT_FILE_0\" mark --configuration \"$CONFIGURATION\" --platform $PLATFORM_NAME"
182
186
  mark_script.input_paths = ["$SRCROOT/#{srcroot_relative_xc_location}/xcprepare"]
183
187
  else
184
188
  # Delete existing mark build phase (to support switching between modes or changing the final target)
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
 
15
15
  module CocoapodsXcremotecache
16
- VERSION = "0.0.6"
16
+ VERSION = "0.0.9"
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.6
4
+ version: 0.0.9
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: 2022-02-07 00:00:00.000000000 Z
12
+ date: 2022-04-12 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: CocoaPods plugin that enables XCRemoteCache with the project.
15
15
  email:
@@ -49,7 +49,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
49
49
  - !ruby/object:Gem::Version
50
50
  version: '0'
51
51
  requirements: []
52
- rubygems_version: 3.2.32
52
+ rubygems_version: 3.2.33
53
53
  signing_key:
54
54
  specification_version: 4
55
55
  summary: A simple plugin that attaches to the post_install hook and modifies the generated