cocoapods-xcremotecache 0.0.6 → 0.0.7

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: 3d318ae852c59d8bff4fec2521620ebe59dd8888cc5d0d33a3a9abd8a331b4ac
4
+ data.tar.gz: 22ca6c2ee0c87ef89260efcf031dd5c9f3c9b101d483965031f079dc36af49b6
5
5
  SHA512:
6
- metadata.gz: ca3f2d700a3522a8c26599f1f70ff2539713e44c8cd0fafbdf6041dff6aeb25b88d3cfb117099fd35bc290fd052380d67ddcbcc59443b05cb97cbe01f71575b3
7
- data.tar.gz: b737a9f5591f86ea1234c812f07010cf18a80cf4ad4497f5da9b9f3812e3e5b3961468743f40b4478bee48e9543fe4fb776548bb720992cf630df746cf7ded32
6
+ metadata.gz: f4619b79b468ffac80c5ed0d7e0339b460e39817b2a763bb0e6a756d839b5baa7bf2a3673cb51b7db24b2d2790fa72cff5e05c5192102cec5231689e2e020284
7
+ data.tar.gz: 35a8375ee395f281f008ec6dd4f7f1d6943d15cd78f960875bd302e64ee6daeb4417ee7932ec8c4f23c68a6877d769a83d0b59a9fe78393a2a298d3e5af7e388
@@ -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,9 @@ 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
+ compile_phase_index = target.build_phases.index(target.source_build_phase)
150
+ target.build_phases.insert(compile_phase_index, target.build_phases.delete(prebuild_script))
149
151
  elsif mode == 'producer' || mode == 'producer-fast'
150
152
  # Delete existing prebuild build phase (to support switching between modes)
151
153
  target.build_phases.delete_if do |phase|
@@ -161,7 +163,7 @@ module CocoapodsXCRemoteCacheModifier
161
163
  phase.name != nil && phase.name.start_with?("[XCRC] Postbuild")
162
164
  end
163
165
  end
164
- postbuild_script = existing_postbuild_script || target.new_shell_script_build_phase("[XCRC] Postbuild")
166
+ postbuild_script = existing_postbuild_script || target.new_shell_script_build_phase("[XCRC] Postbuild #{target.name}")
165
167
  postbuild_script.shell_script = "\"$SCRIPT_INPUT_FILE_0\""
166
168
  postbuild_script.input_paths = ["$SRCROOT/#{srcroot_relative_xc_location}/xcpostbuild"]
167
169
  postbuild_script.output_paths = [
@@ -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.7"
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.7
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-02-21 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: CocoaPods plugin that enables XCRemoteCache with the project.
15
15
  email: