Skip to content

DEPRECATED Xamarin.Android Action (Integration)

Voydz edited this page Feb 20, 2017 · 1 revision

THIS IS DEPRECATED SINCE SOUYUZ IS DISTRIBUTED AS A FASTLANE PLUGIN

This is just a simple reference how souyuz could be integrated with the Xamarin.Android platform. It prepares the lane context to be used with i.e. hockeyapp.

module Fastlane
  module Actions
    class SouyuzAndroidAction < Action
      def self.run(values)
        require 'souyuz'

        values[:platform] = Souyuz::Platform::ANDROID # this should be done automatically in the future

        absolute_apk_path = File.expand_path(Souyuz::Manager.new.work(values))

        Actions.lane_context[SharedValues::GRADLE_BUILD_TYPE] = values[:build_configuration]
        Actions.lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH] = absolute_apk_path

        return absolute_apk_path
      end

      def self.description
        "Easily build your app using `souyuz_android`"
      end

      def self.return_value
        "The absolute path to the generated apk file"
      end

      def self.author
        "Felix Rudat"
      end

      def self.available_options
        require 'souyuz'
        Souyuz::Options.available_options
      end

      def self.is_supported?(platform)
        [ :android ].include? platform
      end
    end
  end
end
Clone this wiki locally