Class: Fastlane::Actions::AppReleaseAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::AppReleaseAction
- Defined in:
- lib/fastlane-craft/app_release.rb
Documentation collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .category ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .example_code ⇒ Object
- .is_supported?(platform) ⇒ Boolean
Class Method Summary collapse
Class Method Details
.authors ⇒ Object
94 95 96 |
# File 'lib/fastlane-craft/app_release.rb', line 94 def self. %w[sroik] end |
.available_options ⇒ Object
29 30 31 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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/fastlane-craft/app_release.rb', line 29 def self. [ FastlaneCore::ConfigItem.new( key: :scheme, description: 'project scheme', verify_block: proc do |value| UI.user_error!('empty scheme') if value.empty? end ), FastlaneCore::ConfigItem.new( key: :info_plist, description: 'target info plist path', verify_block: proc do |value| msg = 'info plist path not found' UI.user_error!(msg) unless File.file?(value) end ), FastlaneCore::ConfigItem.new( key: :extra_info_plists, description: 'extra info plists paths', type: Array, default_value: [], verify_block: proc do |value| msg = 'invalid info plists paths' UI.user_error!(msg) unless value.all? { |p| File.file?(p) } end ), FastlaneCore::ConfigItem.new( key: :branch, description: 'branch', default_value: 'master', verify_block: proc do |value| UI.user_error!('invalid branch') if value.empty? end ), FastlaneCore::ConfigItem.new( key: :version, description: 'app version (like 1.1.0)', optional: true ), FastlaneCore::ConfigItem.new( key: :target_suffix, description: 'Specific target suffix', optional: true ) ] end |
.category ⇒ Object
102 103 104 |
# File 'lib/fastlane-craft/app_release.rb', line 102 def self.category :notifications end |
.description ⇒ Object
21 22 23 |
# File 'lib/fastlane-craft/app_release.rb', line 21 def self.description 'Release app according to the version' end |
.details ⇒ Object
25 26 27 |
# File 'lib/fastlane-craft/app_release.rb', line 25 def self.details 'Release app according to the version' end |
.example_code ⇒ Object
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/fastlane-craft/app_release.rb', line 77 def self.example_code [ 'app_release( scheme: "AppScheme", info_plist: "/path/to/info/plist" )', 'app_release( scheme: "Application", info_plist: "/path/to/info/plist", extra_info_plists: ["plist1", "plist2"], branch: "master", version: "2.3.0", target_suffix: "_sfx" )' ] end |
.is_supported?(platform) ⇒ Boolean
98 99 100 |
# File 'lib/fastlane-craft/app_release.rb', line 98 def self.is_supported?(platform) platform == :ios end |
.run(params) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/fastlane-craft/app_release.rb', line 6 def self.run(params) FastlaneCraft::AppReleaseManager.new( params[:scheme], params[:info_plist], params[:extra_info_plists], params[:branch], params[:version], params[:target_suffix] ).release end |