Created
December 13, 2016 09:35
-
-
Save johannesberdin/d38ff4d95cc4c9cbb005d6695ffbef09 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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