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
84 85 86 |
# File 'lib/fastlane-craft/app_release.rb', line 84 def self. %w[sroik] end |
.available_options ⇒ Object
28 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 |
# File 'lib/fastlane-craft/app_release.rb', line 28 def self. [ FastlaneCore::ConfigItem.new( key: :schemes, description: 'schemes', type: Array, verify_block: proc do |value| msg = 'invalid or empty schemes' UI.user_error!(msg) if value.empty? end ), FastlaneCore::ConfigItem.new( key: :project, description: 'path to xcodeproj', default_value: Dir.glob('*.xcodeproj').first, verify_block: proc do |value| msg = 'xcodeproj not found' UI.user_error!(msg) unless File.directory?(value) 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
92 93 94 |
# File 'lib/fastlane-craft/app_release.rb', line 92 def self.category :notifications end |
.description ⇒ Object
20 21 22 |
# File 'lib/fastlane-craft/app_release.rb', line 20 def self.description 'Release app according to the version' end |
.details ⇒ Object
24 25 26 |
# File 'lib/fastlane-craft/app_release.rb', line 24 def self.details 'Release app according to the version' end |
.example_code ⇒ Object
69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/fastlane-craft/app_release.rb', line 69 def self.example_code [ 'app_release( schemes: ["AppScheme", "AppExtension"] )', 'app_release( schemes: ["AppScheme", "AppExtension"], project: "/path/to/xcodeproj", branch: "master", version: "2.3.0", target_suffix: "_sfx" )' ] end |
.is_supported?(platform) ⇒ Boolean
88 89 90 |
# File 'lib/fastlane-craft/app_release.rb', line 88 def self.is_supported?(platform) platform == :ios end |
.run(params) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/fastlane-craft/app_release.rb', line 6 def self.run(params) FastlaneCraft::AppReleaseManager.new( params[:schemes], params[:project], params[:branch], params[:version], params[:target_suffix] ).release end |