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.
- checksums.yaml +4 -4
- data/lib/fastlane/plugin/fivethree_ionic.rb +1 -3
- data/lib/fastlane/plugin/fivethree_ionic/actions/fiv_add_transparent_statusbar.rb +59 -40
- data/lib/fastlane/plugin/fivethree_ionic/actions/fiv_android_keystore.rb +70 -42
- data/lib/fastlane/plugin/fivethree_ionic/actions/fiv_build_ionic_android.rb +21 -15
- data/lib/fastlane/plugin/fivethree_ionic/actions/fiv_bump_version.rb +20 -14
- data/lib/fastlane/plugin/fivethree_ionic/actions/fiv_clean_install.rb +42 -28
- data/lib/fastlane/plugin/fivethree_ionic/actions/fiv_increment_build_no.rb +56 -36
- data/lib/fastlane/plugin/fivethree_ionic/actions/fiv_ionic.rb +125 -82
- data/lib/fastlane/plugin/fivethree_ionic/actions/fiv_select_client.rb +81 -57
- data/lib/fastlane/plugin/fivethree_ionic/actions/fiv_select_clients.rb +78 -55
- data/lib/fastlane/plugin/fivethree_ionic/actions/fiv_select_env.rb +96 -58
- data/lib/fastlane/plugin/fivethree_ionic/actions/fiv_sign_android.rb +107 -60
- data/lib/fastlane/plugin/fivethree_ionic/actions/fiv_take_screenshots.rb +32 -22
- data/lib/fastlane/plugin/fivethree_ionic/actions/fiv_update_version.rb +43 -28
- data/lib/fastlane/plugin/fivethree_ionic/actions/fiv_update_version_and_build_no.rb +49 -33
- data/lib/fastlane/plugin/fivethree_ionic/actions/fiv_version.rb +88 -54
- data/lib/fastlane/plugin/fivethree_ionic/helper/fivethree_ionic_helper.rb +2 -2
- data/lib/fastlane/plugin/fivethree_ionic/version.rb +1 -1
- metadata +1 -1
@@ -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(
|
13
|
-
old_version =
|
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 =
|
19
|
+
version =
|
20
|
+
Fastlane::Actions::FivUpdateVersionAction.run(
|
21
|
+
pathToConfigXML: params[:pathToConfigXML]
|
22
|
+
)
|
17
23
|
end
|
18
|
-
build_no =
|
19
|
-
|
20
|
-
|
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
|
-
|
33
|
+
'Fastlane plugin for Ionic v4 Projects'
|
29
34
|
end
|
30
35
|
|
31
36
|
def self.authors
|
32
|
-
[
|
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
|
-
|
42
|
+
'returns object containing version and build_no'
|
38
43
|
end
|
39
44
|
|
40
45
|
def self.details
|
41
46
|
# Optional:
|
42
|
-
|
47
|
+
'Fastlane'
|
43
48
|
end
|
44
49
|
|
45
50
|
def self.available_options
|
46
51
|
[
|
47
|
-
FastlaneCore::ConfigItem.new(
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
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 =
|
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 =
|
10
|
-
|
11
|
-
|
12
|
-
|
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
|
-
|
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
|
-
|
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(
|
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
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
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
|
-
[
|
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
|
-
[
|
139
|
+
%w[garygrossgarten]
|
106
140
|
end
|
107
141
|
|
108
142
|
def self.is_supported?(platform)
|
109
|
-
|
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?(
|
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(
|
12
|
+
UI.message('Hello from the fivethree_ionic plugin helper!')
|
13
13
|
end
|
14
14
|
end
|
15
15
|
end
|