fastlane-plugin-fivethree_ionic 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,61 +7,77 @@ module Fastlane
7
7
  module Actions
8
8
  class FivUpdateVersionAndBuildNoAction < Action
9
9
  def self.run(params)
10
- version = ""
11
- if(params[:skip_version])
12
- puts("skiping version, just incrementing build no")
13
- old_version = sh "echo \"cat //*[local-name()='widget']/@version\" | xmllint --shell #{params[:pathToConfigXML]}| awk -F'[=\"]' '!/>/{print $(NF-1)}'"
10
+ version = ''
11
+ if (params[:skip_version])
12
+ puts('skiping version, just incrementing build no')
13
+ old_version =
14
+ sh "echo \"cat //*[local-name()='widget']/@version\" | xmllint --shell #{
15
+ params[:pathToConfigXML]
16
+ }| awk -F'[=\"]' '!/>/{print $(NF-1)}'"
14
17
  version = old_version.delete!("\n")
15
18
  else
16
- version = Fastlane::Actions::FivUpdateVersionAction.run(pathToConfigXML:params[:pathToConfigXML])
19
+ version =
20
+ Fastlane::Actions::FivUpdateVersionAction.run(
21
+ pathToConfigXML: params[:pathToConfigXML]
22
+ )
17
23
  end
18
- build_no = Fastlane::Actions::FivIncrementBuildNoAction.run(
19
- pathToConfigXML: params[:pathToConfigXML],
20
- ios: params[:ios]
21
- )
22
-
23
- return {version: version, build_no: build_no}
24
+ build_no =
25
+ Fastlane::Actions::FivIncrementBuildNoAction.run(
26
+ pathToConfigXML: params[:pathToConfigXML], ios: params[:ios]
27
+ )
24
28
 
29
+ return { version: version, build_no: build_no }
25
30
  end
26
31
 
27
32
  def self.description
28
- "Fastlane plugin for Ionic v4 Projects"
33
+ 'Fastlane plugin for Ionic v4 Projects'
29
34
  end
30
35
 
31
36
  def self.authors
32
- ["Fivethree"]
37
+ %w[Fivethree]
33
38
  end
34
39
 
35
40
  def self.return_value
36
41
  # If your method provides a return value, you can describe here what it does
37
- "returns object containing version and build_no"
42
+ 'returns object containing version and build_no'
38
43
  end
39
44
 
40
45
  def self.details
41
46
  # Optional:
42
- "Fastlane"
47
+ 'Fastlane'
43
48
  end
44
49
 
45
50
  def self.available_options
46
51
  [
47
- FastlaneCore::ConfigItem.new(key: :ios,
48
- env_name: "FIV_INCREMENT_BUILD_NO_IOS",
49
- description: "---",
50
- optional: false,
51
- type: Boolean),
52
- FastlaneCore::ConfigItem.new(key: :pathToConfigXML,
53
- env_name: "FIV_INCREMENT_BUILD_CONFIG",
54
- description: "---",
55
- optional: false,
56
- verify_block: proc do | value |
57
- UI.user_error!("Couldnt find config.xml! Please change your path.") unless File.exist?(value)
58
- end ,
59
- type: String),
60
- FastlaneCore::ConfigItem.new(key: :skip_version,
61
- env_name: "FIV_SKIP_VERSION",
62
- description: "---",
63
- optional: false,
64
- type: Boolean)
52
+ FastlaneCore::ConfigItem.new(
53
+ key: :ios,
54
+ env_name: 'FIV_INCREMENT_BUILD_NO_IOS',
55
+ description: '---',
56
+ optional: false,
57
+ type: Boolean
58
+ ),
59
+ FastlaneCore::ConfigItem.new(
60
+ key: :pathToConfigXML,
61
+ env_name: 'FIV_INCREMENT_BUILD_CONFIG',
62
+ description: '---',
63
+ optional: false,
64
+ verify_block:
65
+ proc do |value|
66
+ unless File.exist?(value)
67
+ UI.user_error!(
68
+ 'Couldnt find config.xml! Please change your path.'
69
+ )
70
+ end
71
+ end,
72
+ type: String
73
+ ),
74
+ FastlaneCore::ConfigItem.new(
75
+ key: :skip_version,
76
+ env_name: 'FIV_SKIP_VERSION',
77
+ description: '---',
78
+ optional: false,
79
+ type: Boolean
80
+ )
65
81
  ]
66
82
  end
67
83
 
@@ -1,17 +1,25 @@
1
1
  module Fastlane
2
2
  module Actions
3
3
  module SharedValues
4
- FIV_BUILD_IONIC_ANDROID_CUSTOM_VALUE = :FIV_BUILD_IONIC_ANDROID_CUSTOM_VALUE
4
+ FIV_BUILD_IONIC_ANDROID_CUSTOM_VALUE =
5
+ :FIV_BUILD_IONIC_ANDROID_CUSTOM_VALUE
5
6
  end
6
7
 
7
8
  class FivVersionAction < Action
8
9
  def self.run(params)
9
- version_and_build_no = Fastlane::Actions::FivUpdateVersionAndBuildNoAction.run(ios: params[:ios],pathToConfigXML: params[:pathToConfigXML],skip_version: params[:skip_version])
10
-
11
- Fastlane::Actions::FivBumpVersionAction.run(
12
- message: "fastlane(#{params[:ios] ? "ios" : "android"}): build #{version_and_build_no[:build_no]}, version: #{version_and_build_no[:version]}"
10
+ version_and_build_no =
11
+ Fastlane::Actions::FivUpdateVersionAndBuildNoAction.run(
12
+ ios: params[:ios],
13
+ pathToConfigXML: params[:pathToConfigXML],
14
+ skip_version: params[:skip_version]
13
15
  )
14
16
 
17
+ Fastlane::Actions::FivBumpVersionAction.run(
18
+ message:
19
+ "fastlane(#{params[:ios] ? 'ios' : 'android'}): build #{
20
+ version_and_build_no[:build_no]
21
+ }, version: #{version_and_build_no[:version]}"
22
+ )
15
23
 
16
24
  Fastlane::Actions::PushToGitRemoteAction.run(
17
25
  remote: params[:remote],
@@ -29,62 +37,85 @@ module Fastlane
29
37
  #####################################################
30
38
 
31
39
  def self.description
32
- "A short description with <= 80 characters of what this action does"
40
+ 'A short description with <= 80 characters of what this action does'
33
41
  end
34
42
 
35
43
  def self.details
36
44
  # Optional:
37
45
  # this is your chance to provide a more detailed description of this action
38
- "You can use this action to do cool things..."
46
+ 'You can use this action to do cool things...'
39
47
  end
40
48
 
41
49
  def self.available_options
42
- # Define all options your action supports.
43
-
50
+ # Define all options your action supports.
51
+
44
52
  # Below a few examples
45
53
  [
46
- FastlaneCore::ConfigItem.new(key: :ios,
47
- env_name: "FIV_INCREMENT_BUILD_NO_IOS",
48
- description: "---",
49
- optional: false,
50
- type: Boolean),
51
- FastlaneCore::ConfigItem.new(key: :pathToConfigXML,
52
- env_name: "FIV_INCREMENT_BUILD_CONFIG",
53
- description: "---",
54
- optional: false,
55
- verify_block: proc do | value |
56
- UI.user_error!("Couldnt find config.xml! Please change your path.") unless File.exist?(value)
57
- end ,
58
- type: String),
59
- FastlaneCore::ConfigItem.new(key: :local_branch,
60
- env_name: "FL_GIT_PUSH_LOCAL_BRANCH",
61
- description: "The local branch to push from. Defaults to the current branch",
62
- default_value_dynamic: true,
63
- optional: true),
64
- FastlaneCore::ConfigItem.new(key: :remote_branch,
65
- env_name: "FL_GIT_PUSH_REMOTE_BRANCH",
66
- description: "The remote branch to push to. Defaults to the local branch",
67
- default_value_dynamic: true,
68
- optional: true),
69
- FastlaneCore::ConfigItem.new(key: :force,
70
- env_name: "FL_PUSH_GIT_FORCE",
71
- description: "Force push to remote",
72
- is_string: false,
73
- default_value: false),
74
- FastlaneCore::ConfigItem.new(key: :tags,
75
- env_name: "FL_PUSH_GIT_TAGS",
76
- description: "Whether tags are pushed to remote",
77
- is_string: false,
78
- default_value: true),
79
- FastlaneCore::ConfigItem.new(key: :remote,
80
- env_name: "FL_GIT_PUSH_REMOTE",
81
- description: "The remote to push to",
82
- default_value: 'origin'),
83
- FastlaneCore::ConfigItem.new(key: :skip_version,
84
- env_name: "FIV_SKIP_VERSION",
85
- description: "---",
86
- optional: false,
87
- type: Boolean),
54
+ FastlaneCore::ConfigItem.new(
55
+ key: :ios,
56
+ env_name: 'FIV_INCREMENT_BUILD_NO_IOS',
57
+ description: '---',
58
+ optional: false,
59
+ type: Boolean
60
+ ),
61
+ FastlaneCore::ConfigItem.new(
62
+ key: :pathToConfigXML,
63
+ env_name: 'FIV_INCREMENT_BUILD_CONFIG',
64
+ description: '---',
65
+ optional: false,
66
+ verify_block:
67
+ proc do |value|
68
+ unless File.exist?(value)
69
+ UI.user_error!(
70
+ 'Couldnt find config.xml! Please change your path.'
71
+ )
72
+ end
73
+ end,
74
+ type: String
75
+ ),
76
+ FastlaneCore::ConfigItem.new(
77
+ key: :local_branch,
78
+ env_name: 'FL_GIT_PUSH_LOCAL_BRANCH',
79
+ description:
80
+ 'The local branch to push from. Defaults to the current branch',
81
+ default_value_dynamic: true,
82
+ optional: true
83
+ ),
84
+ FastlaneCore::ConfigItem.new(
85
+ key: :remote_branch,
86
+ env_name: 'FL_GIT_PUSH_REMOTE_BRANCH',
87
+ description:
88
+ 'The remote branch to push to. Defaults to the local branch',
89
+ default_value_dynamic: true,
90
+ optional: true
91
+ ),
92
+ FastlaneCore::ConfigItem.new(
93
+ key: :force,
94
+ env_name: 'FL_PUSH_GIT_FORCE',
95
+ description: 'Force push to remote',
96
+ is_string: false,
97
+ default_value: false
98
+ ),
99
+ FastlaneCore::ConfigItem.new(
100
+ key: :tags,
101
+ env_name: 'FL_PUSH_GIT_TAGS',
102
+ description: 'Whether tags are pushed to remote',
103
+ is_string: false,
104
+ default_value: true
105
+ ),
106
+ FastlaneCore::ConfigItem.new(
107
+ key: :remote,
108
+ env_name: 'FL_GIT_PUSH_REMOTE',
109
+ description: 'The remote to push to',
110
+ default_value: 'origin'
111
+ ),
112
+ FastlaneCore::ConfigItem.new(
113
+ key: :skip_version,
114
+ env_name: 'FIV_SKIP_VERSION',
115
+ description: '---',
116
+ optional: false,
117
+ type: Boolean
118
+ )
88
119
  ]
89
120
  end
90
121
 
@@ -92,7 +123,10 @@ FastlaneCore::ConfigItem.new(key: :pathToConfigXML,
92
123
  # Define the shared values you are going to provide
93
124
  # Example
94
125
  [
95
- ['FIV_BUILD_IONIC_ANDROID_CUSTOM_VALUE', 'A description of what this value contains']
126
+ [
127
+ 'FIV_BUILD_IONIC_ANDROID_CUSTOM_VALUE',
128
+ 'A description of what this value contains'
129
+ ]
96
130
  ]
97
131
  end
98
132
 
@@ -102,11 +136,11 @@ FastlaneCore::ConfigItem.new(key: :pathToConfigXML,
102
136
 
103
137
  def self.authors
104
138
  # So no one will ever forget your contribution to fastlane :) You are awesome btw!
105
- ["garygrossgarten"]
139
+ %w[garygrossgarten]
106
140
  end
107
141
 
108
142
  def self.is_supported?(platform)
109
- platform == :android
143
+ platform == :android
110
144
  end
111
145
  end
112
146
  end
@@ -1,7 +1,7 @@
1
1
  require 'fastlane_core/ui/ui'
2
2
 
3
3
  module Fastlane
4
- UI = FastlaneCore::UI unless Fastlane.const_defined?("UI")
4
+ UI = FastlaneCore::UI unless Fastlane.const_defined?('UI')
5
5
 
6
6
  module Helper
7
7
  class FivethreeIonicHelper
@@ -9,7 +9,7 @@ module Fastlane
9
9
  # as `Helper::FivethreeIonicHelper.your_method`
10
10
  #
11
11
  def self.show_message
12
- UI.message("Hello from the fivethree_ionic plugin helper!")
12
+ UI.message('Hello from the fivethree_ionic plugin helper!')
13
13
  end
14
14
  end
15
15
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module FivethreeIonic
3
- VERSION = "0.2.7"
3
+ VERSION = '0.2.8'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-fivethree_ionic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc Stammerjohann