Class: Fastlane::Actions::UpdateAppNameAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::UpdateAppNameAction
- Defined in:
- lib/fastlane/plugin/update_app_name/actions/update_app_name_action.rb
Class Method Summary collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .return_value ⇒ Object
- .run(params) ⇒ Object
Class Method Details
.authors ⇒ Object
33 34 35 |
# File 'lib/fastlane/plugin/update_app_name/actions/update_app_name_action.rb', line 33 def self. ["huyanping"] end |
.available_options ⇒ Object
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/fastlane/plugin/update_app_name/actions/update_app_name_action.rb', line 46 def self. [ FastlaneCore::ConfigItem.new(key: :user_name, env_name: "FASTLANE_USER", description: "user_name", optional: false, type: String), FastlaneCore::ConfigItem.new(key: :password, env_name: "FASTLANE_PASSWORD", description: "password", optional: false, type: String), FastlaneCore::ConfigItem.new(key: :app_id, env_name: "UPDATE_DEVICE_APP_ID", description: "app_id", optional: false, type: String), FastlaneCore::ConfigItem.new(key: :app_name, env_name: "UPDATE_DEVICE_APP_NAME", description: "app_name", optional: false, type: String) ] end |
.description ⇒ Object
29 30 31 |
# File 'lib/fastlane/plugin/update_app_name/actions/update_app_name_action.rb', line 29 def self.description "update app name" end |
.details ⇒ Object
41 42 43 44 |
# File 'lib/fastlane/plugin/update_app_name/actions/update_app_name_action.rb', line 41 def self.details # Optional: "" end |
.is_supported?(platform) ⇒ Boolean
71 72 73 74 75 76 77 |
# File 'lib/fastlane/plugin/update_app_name/actions/update_app_name_action.rb', line 71 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_value ⇒ Object
37 38 39 |
# File 'lib/fastlane/plugin/update_app_name/actions/update_app_name_action.rb', line 37 def self.return_value # If your method provides a return value, you can describe here what it does end |
.run(params) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/fastlane/plugin/update_app_name/actions/update_app_name_action.rb', line 8 def self.run(params) user_name = params[:user_name] password = params[:password] app_id = params[:app_id] app_name = params[:app_name] client = Spaceship::Portal.login(user_name, password) client.select_team() apps = client.apps(); for i in apps if i['identifier'] != app_id next else data = client.update_app_name!(i['appIdId'], app_name, mac: false) UI.(data) UI.("success") end end UI.("The update_app_name plugin is working!") end |