Class: Fastlane::Actions::PrivacySurgeonAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::PrivacySurgeonAction
- Defined in:
- lib/fastlane/plugin/plist_surgeon/actions/privacy_surgeon_action.rb
Class Method Summary collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .run(params) ⇒ Object
Class Method Details
.authors ⇒ Object
15 16 17 |
# File 'lib/fastlane/plugin/plist_surgeon/actions/privacy_surgeon_action.rb', line 15 def self. ["Connor Tumbleson"] end |
.available_options ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/fastlane/plugin/plist_surgeon/actions/privacy_surgeon_action.rb', line 19 def self. [ FastlaneCore::ConfigItem.new(key: :path, env_name: "PLIST_SURGEON_PRIVACY_PATH", description: "The path to the xcprivacy file", optional: false, type: String), FastlaneCore::ConfigItem.new(key: :key, env_name: "PLIST_SURGEON_PRIVACY_KEY", description: "The key to update (supports dot notation for nested keys)", optional: false, type: String), FastlaneCore::ConfigItem.new(key: :value, env_name: "PLIST_SURGEON_PRIVACY_VALUE", description: "The value to set", optional: false) ] end |
.description ⇒ Object
11 12 13 |
# File 'lib/fastlane/plugin/plist_surgeon/actions/privacy_surgeon_action.rb', line 11 def self.description "Edit an .xcprivacy file." end |
.is_supported?(platform) ⇒ Boolean
38 39 40 |
# File 'lib/fastlane/plugin/plist_surgeon/actions/privacy_surgeon_action.rb', line 38 def self.is_supported?(platform) [:ios, :mac].include?(platform) end |
.run(params) ⇒ Object
7 8 9 |
# File 'lib/fastlane/plugin/plist_surgeon/actions/privacy_surgeon_action.rb', line 7 def self.run(params) Helper::PlistSurgeonHelper.run(params[:path], params[:key], params[:value]) end |