Class: Fastlane::Actions::CheckUnsafeFlagsAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::CheckUnsafeFlagsAction
- Defined in:
- lib/fastlane/plugin/stream_actions/actions/check_unsafe_flags.rb
Documentation collapse
Class Method Summary collapse
Class Method Details
.available_options ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/fastlane/plugin/stream_actions/actions/check_unsafe_flags.rb', line 18 def self. [ FastlaneCore::ConfigItem.new( key: :swift_package_path, description: 'The path to your project Package.swift', is_string: true, default_value: './Package.swift', optional: false ) ] end |
.description ⇒ Object
14 15 16 |
# File 'lib/fastlane/plugin/stream_actions/actions/check_unsafe_flags.rb', line 14 def self.description 'Checks if Package.swift contains unsafe flags' end |
.is_supported?(platform) ⇒ Boolean
30 31 32 |
# File 'lib/fastlane/plugin/stream_actions/actions/check_unsafe_flags.rb', line 30 def self.is_supported?(platform) true end |
.run(params) ⇒ Object
4 5 6 7 8 |
# File 'lib/fastlane/plugin/stream_actions/actions/check_unsafe_flags.rb', line 4 def self.run(params) if File.read(params[:swift_package_path]).include?('unsafe') UI.user_error!('Package.swift contains unsafe flags.') end end |