lib/objc-obfuscator/integrator.rb in objc-obfuscator-0.2.1 vs lib/objc-obfuscator/integrator.rb in objc-obfuscator-0.2.2

- old
+ new

@@ -1,11 +1,11 @@ require 'thor' require 'xcodeproj' module Objc_Obfuscator module Integrator - def integrate_xcode(project_path, podfile_path, target_name) + def integrate_xcode(encryption_key, project_path, podfile_path, target_name) project = Xcodeproj::Project.open project_path main_target = project.targets.first unless target_name.empty? @@ -22,11 +22,11 @@ then source $HOME/.rvm/scripts/rvm rvm rvmrc trust rvm rvmrc load fi - find ${SRCROOT} -name "*.h" -exec objc-obfuscator obfuscate {} \\; - find ${SRCROOT} -name "*.m" -exec objc-obfuscator obfuscate {} \\; + find ${SRCROOT} -name "*.h" -exec objc-obfuscator obfuscate #{encryption_key} {} \\; + find ${SRCROOT} -name "*.m" -exec objc-obfuscator obfuscate #{encryption_key} {} \\; SCRIPT phase_unobf = project.new('PBXShellScriptBuildPhase') phase_unobf.name = "Unobfuscate strings" phase_unobf.shell_path = '/bin/bash'