Skip to content

Instantly share code, notes, and snippets.

@johannesberdin
Created December 13, 2016 09:35
Show Gist options
  • Save johannesberdin/d38ff4d95cc4c9cbb005d6695ffbef09 to your computer and use it in GitHub Desktop.
Save johannesberdin/d38ff4d95cc4c9cbb005d6695ffbef09 to your computer and use it in GitHub Desktop.
module Fastlane
module Actions
class SouyuzAction < Action
def self.run(params)
require 'souyuz'
absolute_app_path = File.expand_path(Souyuz::Manager.new.work(params))
if absolute_app_path.include?(".ipa")
Actions.lane_context[SharedValues::IPA_OUTPUT_PATH] = absolute_app_path
ENV[SharedValues::IPA_OUTPUT_PATH.to_s] = absolute_app_path
elsif absolute_app_path.include?(".apk")
Actions.lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH] = absolute_app_path
ENV[SharedValues::GRADLE_APK_OUTPUT_PATH.to_s] = absolute_app_path
end
end
def self.description
"Builds Xamarin projects"
end
def self.available_options
require 'souyuz'
FastlaneCore::CommanderGenerator.new.generate(Souyuz::Options.available_options)
end
def self.authors
["johannesberdin"]
end
def self.is_supported?(platform)
[:ios, :android].include?(platform)
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment