Class: Fastlane::Actions::SunnyBuildRunnerAction

Inherits:
Action
  • Object
show all
Defined in:
lib/fastlane/plugin/sunny_project/actions/sunny_build_runner.rb

Class Method Summary collapse

Class Method Details

.authorsObject



19
20
21
# File 'lib/fastlane/plugin/sunny_project/actions/sunny_build_runner.rb', line 19

def self.authors
  ["ericmartineau"]
end

.available_optionsObject



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/fastlane/plugin/sunny_project/actions/sunny_build_runner.rb', line 32

def self.available_options
  [
    FastlaneCore::ConfigItem.new(key: :clean,
                                 env_name: "SUNNY_CLEAN",
                                 description: "Whether to clean",
                                 optional: true, type: Object),

    FastlaneCore::ConfigItem.new(key: :flutter,
                                 env_name: "SUNNY_FLUTTER",
                                 description: "Path to flutter sdk",
                                 optional: true, type: String),
    FastlaneCore::ConfigItem.new(key: :skip_pub,
                                 env_name: "SUNNY_SKIP_PUB",
                                 description: "Whether to skip pub get",
                                 optional: true, type: Object),

    FastlaneCore::ConfigItem.new(key: :skip_gen,
                                 env_name: "SUNNY_SKIP_GEN",
                                 description: "Whether to skip generation",
                                 optional: true, type: Object),

    FastlaneCore::ConfigItem.new(key: :verbose,
                                 env_name: "SUNNY_VERBOSE",
                                 description: "Verbose or not",
                                 optional: true, type: Object),

  ]
end

.descriptionObject



15
16
17
# File 'lib/fastlane/plugin/sunny_project/actions/sunny_build_runner.rb', line 15

def self.description
  "Cleans and runs flutter build_runner"
end

.detailsObject



27
28
29
30
# File 'lib/fastlane/plugin/sunny_project/actions/sunny_build_runner.rb', line 27

def self.details
  # Optional:
  ""
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


61
62
63
64
65
66
67
# File 'lib/fastlane/plugin/sunny_project/actions/sunny_build_runner.rb', line 61

def self.is_supported?(platform)
  # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
  # See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform
  #
  # [:ios, :mac, :android].include?(platform)
  true
end

.return_valueObject



23
24
25
# File 'lib/fastlane/plugin/sunny_project/actions/sunny_build_runner.rb', line 23

def self.return_value
  # If your method provides a return value, you can describe here what it does
end

.run(options) ⇒ Object



11
12
13
# File 'lib/fastlane/plugin/sunny_project/actions/sunny_build_runner.rb', line 11

def self.run(options)
  Sunny.build_runner(options)
end