Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.