XCBuildFaster 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xcbuildfaster/project_modifier.rb +10 -1
- data/lib/xcbuildfaster/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3ccdc9fcffb8e77f35883bc8029c9a20672ebb4
|
4
|
+
data.tar.gz: 7fa1120bea34747faccfae3196ff8dd64fd65d22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 600fc043a169e8b9048d28c73795fc8883f391410514b92844eeb28302116eb4a21f38cc1da9966befb374ec2f098603c0a7212ac1f5f05546fd95bb982090dd
|
7
|
+
data.tar.gz: a8fad6b76d14b0c23e559207a72ebc29aaedf7a63341043fee6946c1229f2fef56c07bdd26ef8b77f43dc842cee66f1e6f42710ad397e43e71ca746b851e4efa
|
@@ -26,7 +26,16 @@ module XCBuildFaster
|
|
26
26
|
project.targets.each do |target|
|
27
27
|
scripts = target.shell_script_build_phases
|
28
28
|
target.shell_script_build_phases.each do |shell_script_build_phase|
|
29
|
-
|
29
|
+
script = shell_script_build_phase.shell_script
|
30
|
+
|
31
|
+
# Comment out each line of the script
|
32
|
+
script = script.lines.map { |line| "# #{line}" }.join
|
33
|
+
|
34
|
+
# Add a warning
|
35
|
+
warning = "echo 'warning: #{target.to_s} modified by xcbuildfaster. Your run script(s) have been replaced with this warning, you probably dont want to commit this!'"
|
36
|
+
script = "#{warning}\n#{script}"
|
37
|
+
|
38
|
+
shell_script_build_phase.shell_script = script
|
30
39
|
end
|
31
40
|
|
32
41
|
target.build_configurations.each do |build_config|
|