Class: Fastlane::Actions::ImportLocalizationsAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::ImportLocalizationsAction
- Defined in:
- lib/fastlane/plugin/localization/actions/import_localizations_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
17 18 19 |
# File 'lib/fastlane/plugin/localization/actions/import_localizations_action.rb', line 17 def self. ["vmalyi"] end |
.available_options ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/fastlane/plugin/localization/actions/import_localizations_action.rb', line 21 def self. [ FastlaneCore::ConfigItem.new(key: :source_path, env_name: "SOURCE_PATH", description: "Destination path to XLIFF file which will be imported", optional: false, type: String), FastlaneCore::ConfigItem.new(key: :project, env_name: "PROJECT", description: "Project to import localizations to", optional: false, type: String), ] end |
.description ⇒ Object
13 14 15 |
# File 'lib/fastlane/plugin/localization/actions/import_localizations_action.rb', line 13 def self.description "Import app localizations with help of xcodebuild -importLocalizations tool" end |
.is_supported?(platform) ⇒ Boolean
36 37 38 |
# File 'lib/fastlane/plugin/localization/actions/import_localizations_action.rb', line 36 def self.is_supported?(platform) true end |
.run(params) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/fastlane/plugin/localization/actions/import_localizations_action.rb', line 4 def self.run(params) source_path = params[:source_path] project = params[:project] UI.("Importing localizations from #{source_path} folder to #{project} project") sh "xcodebuild -importLocalizations -localizationPath #{source_path} -project #{project}" end |