@@ -21,10 +21,6 @@ def self.run(params)
21
21
Fastlane ::Helper ::GitHelper . create_branch ( @new_release_branch , from : default_branch )
22
22
UI . message 'Done!'
23
23
24
- UI . message 'Updating glotPressKeys...' unless params [ :skip_glotpress ]
25
- update_glotpress_key unless params [ :skip_glotpress ]
26
- UI . message 'Done' unless params [ :skip_glotpress ]
27
-
28
24
UI . message 'Updating Fastlane deliver file...' unless params [ :skip_deliver ]
29
25
Fastlane ::Helper ::Ios ::VersionHelper . update_fastlane_deliver ( @new_short_version ) unless params [ :skip_deliver ]
30
26
UI . message 'Done!' unless params [ :skip_deliver ]
@@ -35,7 +31,7 @@ def self.run(params)
35
31
36
32
Fastlane ::Helper ::Ios ::GitHelper . commit_version_bump (
37
33
include_deliverfile : !params [ :skip_deliver ] ,
38
- include_metadata : ! params [ :skip_glotpress ]
34
+ include_metadata : false
39
35
)
40
36
41
37
UI . message 'Done.'
@@ -55,16 +51,11 @@ def self.details
55
51
56
52
def self . available_options
57
53
[
58
- FastlaneCore ::ConfigItem . new ( key : :skip_glotpress ,
59
- env_name : 'FL_IOS_CODEFREEZE_BUMP_SKIPGLOTPRESS' ,
60
- description : 'Skips GlotPress key update' ,
61
- is_string : false , # true: verifies the input is a string, false: every kind of value
62
- default_value : false ) , # the default value if the user didn't provide one
63
54
FastlaneCore ::ConfigItem . new ( key : :skip_deliver ,
64
55
env_name : 'FL_IOS_CODEFREEZE_BUMP_SKIPDELIVER' ,
65
56
description : 'Skips Deliver key update' ,
66
- is_string : false , # true: verifies the input is a string, false: every kind of value
67
- default_value : false ) , # the default value if the user didn't provide one
57
+ type : Boolean ,
58
+ default_value : false ) ,
68
59
FastlaneCore ::ConfigItem . new ( key : :default_branch ,
69
60
env_name : 'FL_RELEASE_TOOLKIT_DEFAULT_BRANCH' ,
70
61
description : 'Default branch of the repository' ,
@@ -105,15 +96,6 @@ def self.show_config
105
96
UI . message ( "New short version: #{ @new_short_version } " )
106
97
UI . message ( "Release branch: #{ @new_release_branch } " )
107
98
end
108
-
109
- def self . update_glotpress_key
110
- dm_file = ENV [ 'DOWNLOAD_METADATA' ]
111
- if File . exist? ( dm_file )
112
- sh ( "sed -i '' \" s/let glotPressWhatsNewKey.*/let glotPressWhatsNewKey = \\ \" v#{ @new_short_version } -whats-new\\ \" /\" #{ dm_file } " )
113
- else
114
- UI . user_error! ( "Can't find #{ dm_file } ." )
115
- end
116
- end
117
99
end
118
100
end
119
101
end
0 commit comments