lib/objc-obfuscator/integrator.rb in objc-obfuscator-0.2.5 vs lib/objc-obfuscator/integrator.rb in objc-obfuscator-0.2.6
- old
+ new
@@ -22,11 +22,12 @@
then
source $HOME/.rvm/scripts/rvm
rvm rvmrc trust
rvm rvmrc load
fi
- find ${SRCROOT} -name "*.h" -exec objc-obfuscator obfuscate #{encryption_key} {} \\;
- find ${SRCROOT} -name "*.m" -exec objc-obfuscator obfuscate #{encryption_key} {} \\;
+ for file in `grep -rl __obfuscate ${SRCROOT}/*.h`; do; objc-obfuscator obfuscate #{encryption_key}; done"
+ for file in `grep -rl __obfuscate ${SRCROOT}/*.m`; do; objc-obfuscator obfuscate #{encryption_key}; done"
+
SCRIPT
phase_unobf = project.new('PBXShellScriptBuildPhase')
phase_unobf.name = "Unobfuscate strings"
phase_unobf.shell_path = '/bin/bash'