lib/fastlane/actions/xcake.rb in fastlane-1.89.0 vs lib/fastlane/actions/xcake.rb in fastlane-1.90.0
- old
+ new
@@ -2,10 +2,17 @@
module Actions
class XcakeAction < Action
def self.run(params)
Actions.verify_gem!('xcake')
require 'xcake'
- Xcake::Command.run
+
+ if defined? Xcake::Command::Make
+ # New `xcake make` command
+ Xcake::Command::Make.run
+ else
+ # Legacy `xcake` command
+ Xcake::Command.run
+ end
end
def self.description
"Runs `xcake` for the project"
end