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
91 92 93 |
# File 'lib/fastlane-craft/app_release.rb', line 91 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 |
# File 'lib/fastlane-craft/app_release.rb', line 29 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: :build_version, description: 'build version (like 23)', optional: true ), FastlaneCore::ConfigItem.new( key: :target_suffix, description: 'Specific target suffix', optional: true ) ] end |
.category ⇒ Object
99 100 101 |
# File 'lib/fastlane-craft/app_release.rb', line 99 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
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/fastlane-craft/app_release.rb', line 75 def self.example_code [ 'app_release( schemes: ["AppScheme", "AppExtension"] )', 'app_release( schemes: ["AppScheme", "AppExtension"], project: "/path/to/xcodeproj", branch: "master", version: "2.3.0", build_version: "23", target_suffix: "_sfx" )' ] end |
.is_supported?(platform) ⇒ Boolean
95 96 97 |
# File 'lib/fastlane-craft/app_release.rb', line 95 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[:schemes], params[:project], params[:branch], params[:version], params[:build_version], params[:target_suffix] ).release end |