fastlane 1.109.0 → 1.110.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fastlane/actions/carthage.rb +33 -4
- data/lib/fastlane/actions/commit_version_bump.rb +2 -1
- data/lib/fastlane/actions/fastlane_version.rb +2 -6
- data/lib/fastlane/actions/get_build_number.rb +1 -1
- data/lib/fastlane/actions/get_version_number.rb +1 -1
- data/lib/fastlane/actions/git_branch.rb +1 -0
- data/lib/fastlane/actions/hg_commit_version_bump.rb +1 -5
- data/lib/fastlane/actions/increment_build_number.rb +1 -1
- data/lib/fastlane/actions/increment_version_number.rb +1 -1
- data/lib/fastlane/actions/scan.rb +1 -0
- data/lib/fastlane/actions/sigh.rb +7 -4
- data/lib/fastlane/actions/update_fastlane.rb +1 -1
- data/lib/fastlane/actions/update_project_code_signing.rb +10 -5
- data/lib/fastlane/helper/cocoapod_helper.rb +7 -0
- data/lib/fastlane/version.rb +1 -1
- metadata +10 -14
- data/lib/.DS_Store +0 -0
- data/lib/assets/.DS_Store +0 -0
- data/lib/assets/completions/.DS_Store +0 -0
- data/lib/fastlane/.DS_Store +0 -0
- data/lib/fastlane/setup/.DS_Store +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e45c351650c97f548702fd728a7277a4db88ea5c
|
4
|
+
data.tar.gz: 4446f2fe43d6b7366ec3a9a67a696679a8175079
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 198c95d0fae711dedf146dca85641f015ce65ac044acc826244475d66c1b33a4ba14652f0f24df34db4ddd728b8b5580d879064a88e30082d7558a23e8526d94
|
7
|
+
data.tar.gz: 597e7e748b970f047011dbc8aa51399519d107f9ef8cf7d23bcc477fdb6ab6f7261b11d535d1be1babde1dcdf288b562372adde10f57b6700c4e5107a7bb5d69
|
@@ -2,14 +2,19 @@ module Fastlane
|
|
2
2
|
module Actions
|
3
3
|
class CarthageAction < Action
|
4
4
|
def self.run(params)
|
5
|
-
|
5
|
+
validate(params)
|
6
6
|
|
7
|
-
cmd
|
7
|
+
cmd = ["carthage"]
|
8
|
+
command_name = params[:command]
|
9
|
+
cmd << command_name
|
8
10
|
|
9
|
-
if
|
11
|
+
if command_name == "archive" && params[:frameworks].count > 0
|
12
|
+
cmd.concat params[:frameworks]
|
13
|
+
elsif command_name == "update" && params[:dependencies].count > 0
|
10
14
|
cmd.concat params[:dependencies]
|
11
15
|
end
|
12
16
|
|
17
|
+
cmd << "--output #{params[:output]}" if params[:output]
|
13
18
|
cmd << "--use-ssh" if params[:use_ssh]
|
14
19
|
cmd << "--use-submodules" if params[:use_submodules]
|
15
20
|
cmd << "--no-use-binaries" if params[:use_binaries] == false
|
@@ -25,6 +30,16 @@ module Fastlane
|
|
25
30
|
Actions.sh(cmd.join(' '))
|
26
31
|
end
|
27
32
|
|
33
|
+
def self.validate(params)
|
34
|
+
command_name = params[:command]
|
35
|
+
if command_name != "archive" && params[:frameworks].count > 0
|
36
|
+
UI.user_error!("Frameworks option is avaialble only for 'archive' command.")
|
37
|
+
end
|
38
|
+
if command_name != "archive" && params[:output]
|
39
|
+
UI.user_error!("Output option is avaialble only for 'archive' command.")
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
28
43
|
def self.description
|
29
44
|
"Runs `carthage` for your project"
|
30
45
|
end
|
@@ -112,6 +127,18 @@ module Fastlane
|
|
112
127
|
UI.user_error!("Please pass a valid platform. Use one of the following: #{available_platforms.join(', ')}") unless available_platforms.map(&:downcase).include?(platform.downcase)
|
113
128
|
end
|
114
129
|
end),
|
130
|
+
FastlaneCore::ConfigItem.new(key: :frameworks,
|
131
|
+
description: "Framework name or names to archive, could be applied only along with the archive command",
|
132
|
+
default_value: [],
|
133
|
+
is_string: false,
|
134
|
+
type: Array),
|
135
|
+
FastlaneCore::ConfigItem.new(key: :output,
|
136
|
+
description: "Output name for the archive, could be applied only along with the archive command. Use following format *.framework.zip",
|
137
|
+
is_string: true,
|
138
|
+
optional: true,
|
139
|
+
verify_block: proc do |value|
|
140
|
+
UI.user_error!("Please pass a valid string for output. Use following format *.framework.zip") unless value.end_with?("framework.zip")
|
141
|
+
end),
|
115
142
|
FastlaneCore::ConfigItem.new(key: :configuration,
|
116
143
|
env_name: "FL_CARTHAGE_CONFIGURATION",
|
117
144
|
description: "Define which build configuration to use when building",
|
@@ -136,6 +163,8 @@ module Fastlane
|
|
136
163
|
[
|
137
164
|
'carthage',
|
138
165
|
'carthage(
|
166
|
+
frameworks: ["MyFramework1", "MyFramework2"], # Specify which frameworks to archive (only for the archive command)
|
167
|
+
output: "MyFrameworkBundle.framework.zip" # Specify the output archive name (only for the archive command)
|
139
168
|
command: "bootstrap", # One of: build, bootstrap, update, archive. (default: bootstrap)
|
140
169
|
dependencies: ["Alamofire", "Notice"], # Specify which dependencies to update (only for the update command)
|
141
170
|
use_ssh: false, # Use SSH for downloading GitHub repositories.
|
@@ -160,7 +189,7 @@ module Fastlane
|
|
160
189
|
end
|
161
190
|
|
162
191
|
def self.authors
|
163
|
-
["bassrock", "petester42", "jschmid", "JaviSoto", "uny", "phatblat", "bfcrampton"]
|
192
|
+
["bassrock", "petester42", "jschmid", "JaviSoto", "uny", "phatblat", "bfcrampton", "antondomashnev"]
|
164
193
|
end
|
165
194
|
end
|
166
195
|
end
|
@@ -18,8 +18,9 @@ module Fastlane
|
|
18
18
|
# ensure that the xcodeproj passed in was OK
|
19
19
|
UI.user_error!("Could not find the specified xcodeproj: #{xcodeproj_path}") unless File.directory?(xcodeproj_path)
|
20
20
|
else
|
21
|
+
all_xcodeproj_paths = Dir[File.expand_path(File.join(repo_path, '**/*.xcodeproj'))]
|
21
22
|
# find an xcodeproj (ignoring the Cocoapods one)
|
22
|
-
xcodeproj_paths =
|
23
|
+
xcodeproj_paths = Fastlane::Actions.ignore_cocoapods_path(all_xcodeproj_paths)
|
23
24
|
|
24
25
|
# no projects found: error
|
25
26
|
UI.user_error!('Could not find a .xcodeproj in the current repository\'s working directory.') if xcodeproj_paths.count == 0
|
@@ -12,12 +12,8 @@ module Fastlane
|
|
12
12
|
UI.user_error!("Please pass minimum fastlane version as parameter to fastlane_version") unless defined_version
|
13
13
|
|
14
14
|
if Gem::Version.new(Fastlane::VERSION) < defined_version
|
15
|
-
|
16
|
-
|
17
|
-
error_message += "Please update using `bundle update fastlane`."
|
18
|
-
else
|
19
|
-
error_message += "Please update using `sudo gem update fastlane`."
|
20
|
-
end
|
15
|
+
FastlaneCore::UpdateChecker.show_update_message('fastlane', Fastlane::VERSION)
|
16
|
+
error_message = "The Fastfile requires a fastlane version of >= #{defined_version}. You are on #{Fastlane::VERSION}."
|
21
17
|
UI.user_error!(error_message)
|
22
18
|
end
|
23
19
|
|
@@ -32,7 +32,7 @@ module Fastlane
|
|
32
32
|
end
|
33
33
|
return build_number
|
34
34
|
rescue => ex
|
35
|
-
UI.error('
|
35
|
+
UI.error('Before being able to increment and read the version number from your Xcode project, you first need to setup your project properly. Please follow the guide at https://developer.apple.com/library/content/qa/qa1827/_index.html')
|
36
36
|
raise ex
|
37
37
|
end
|
38
38
|
|
@@ -83,7 +83,7 @@ module Fastlane
|
|
83
83
|
# Store the number in the shared hash
|
84
84
|
Actions.lane_context[SharedValues::VERSION_NUMBER] = version_number
|
85
85
|
rescue => ex
|
86
|
-
UI.error('
|
86
|
+
UI.error('Before being able to increment and read the version number from your Xcode project, you first need to setup your project properly. Please follow the guide at https://developer.apple.com/library/content/qa/qa1827/_index.html')
|
87
87
|
raise ex
|
88
88
|
end
|
89
89
|
|
@@ -7,6 +7,7 @@ module Fastlane
|
|
7
7
|
def self.run(params)
|
8
8
|
return ENV['GIT_BRANCH'] if ENV['GIT_BRANCH']
|
9
9
|
return ENV["TRAVIS_BRANCH"] if ENV["TRAVIS_BRANCH"]
|
10
|
+
return ENV["BITRISE_GIT_BRANCH"] if ENV["BITRISE_GIT_BRANCH"]
|
10
11
|
`git symbolic-ref HEAD --short 2>/dev/null`.strip
|
11
12
|
end
|
12
13
|
|
@@ -26,7 +26,7 @@ module Fastlane
|
|
26
26
|
else
|
27
27
|
all_xcodeproj_paths = Dir[File.expand_path(File.join(repo_path, '**/*.xcodeproj'))]
|
28
28
|
# find an xcodeproj (ignoring the Cocoapods one)
|
29
|
-
xcodeproj_paths = ignore_cocoapods_path(all_xcodeproj_paths)
|
29
|
+
xcodeproj_paths = Fastlane::Actions.ignore_cocoapods_path(all_xcodeproj_paths)
|
30
30
|
|
31
31
|
# no projects found: error
|
32
32
|
UI.user_error!('Could not find a .xcodeproj in the current repository\'s working directory.') if xcodeproj_paths.count == 0
|
@@ -107,10 +107,6 @@ module Fastlane
|
|
107
107
|
end
|
108
108
|
end
|
109
109
|
|
110
|
-
def self.ignore_cocoapods_path(all_xcodeproj_paths)
|
111
|
-
all_xcodeproj_paths.reject { |path| %r{/Pods/[^/]*.xcodeproj} =~ path }
|
112
|
-
end
|
113
|
-
|
114
110
|
def self.description
|
115
111
|
"This will commit a version bump to the hg repo"
|
116
112
|
end
|
@@ -48,7 +48,7 @@ module Fastlane
|
|
48
48
|
return Actions.lane_context[SharedValues::BUILD_NUMBER] = build_number
|
49
49
|
end
|
50
50
|
rescue => ex
|
51
|
-
UI.error('
|
51
|
+
UI.error('Before being able to increment and read the version number from your Xcode project, you first need to setup your project properly. Please follow the guide at https://developer.apple.com/library/content/qa/qa1827/_index.html')
|
52
52
|
raise ex
|
53
53
|
end
|
54
54
|
|
@@ -70,7 +70,7 @@ module Fastlane
|
|
70
70
|
|
71
71
|
return Actions.lane_context[SharedValues::VERSION_NUMBER]
|
72
72
|
rescue => ex
|
73
|
-
UI.error('
|
73
|
+
UI.error('Before being able to increment and read the version number from your Xcode project, you first need to setup your project properly. Please follow the guide at https://developer.apple.com/library/content/qa/qa1827/_index.html')
|
74
74
|
raise ex
|
75
75
|
end
|
76
76
|
|
@@ -59,6 +59,7 @@ module Fastlane
|
|
59
59
|
FastlaneCore::ConfigItem.new(key: :fail_build,
|
60
60
|
env_name: "SCAN_FAIL_BUILD",
|
61
61
|
description: "Should this step stop the build if the tests fail? Set this to false if you're using trainer",
|
62
|
+
is_string: false,
|
62
63
|
default_value: true)
|
63
64
|
]
|
64
65
|
end
|
@@ -3,7 +3,8 @@ module Fastlane
|
|
3
3
|
module SharedValues
|
4
4
|
SIGH_PROFILE_PATH = :SIGH_PROFILE_PATH
|
5
5
|
SIGH_PROFILE_PATHS = :SIGH_PROFILE_PATHS
|
6
|
-
SIGH_UDID = :SIGH_UDID
|
6
|
+
SIGH_UDID = :SIGH_UDID # deprecated
|
7
|
+
SIGH_UUID = :SIGH_UUID
|
7
8
|
SIGH_PROFILE_TYPE = :SIGH_PROFILE_TYPE
|
8
9
|
end
|
9
10
|
|
@@ -22,11 +23,13 @@ module Fastlane
|
|
22
23
|
Actions.lane_context[SharedValues::SIGH_PROFILE_PATH] = path # absolute path
|
23
24
|
Actions.lane_context[SharedValues::SIGH_PROFILE_PATHS] ||= []
|
24
25
|
Actions.lane_context[SharedValues::SIGH_PROFILE_PATHS] << path
|
25
|
-
|
26
|
+
|
27
|
+
uuid = ENV["SIGH_UUID"] || ENV["SIGH_UDID"] # the UUID of the profile
|
28
|
+
Actions.lane_context[SharedValues::SIGH_UUID] = Actions.lane_context[SharedValues::SIGH_UDID] = uuid if uuid
|
26
29
|
|
27
30
|
set_profile_type(values, ENV["SIGH_PROFILE_ENTERPRISE"])
|
28
31
|
|
29
|
-
return
|
32
|
+
return uuid # returs uuid of profile
|
30
33
|
ensure
|
31
34
|
FastlaneCore::UpdateChecker.show_update_status('sigh', Sigh::VERSION)
|
32
35
|
end
|
@@ -52,7 +55,7 @@ module Fastlane
|
|
52
55
|
end
|
53
56
|
|
54
57
|
def self.return_value
|
55
|
-
"The
|
58
|
+
"The UUID of the profile sigh just fetched/generated"
|
56
59
|
end
|
57
60
|
|
58
61
|
def self.details
|
@@ -53,7 +53,7 @@ module Fastlane
|
|
53
53
|
return
|
54
54
|
end
|
55
55
|
|
56
|
-
unless updater.respond_to?
|
56
|
+
unless updater.respond_to?(:highest_installed_gems)
|
57
57
|
UI.important "The update_fastlane action requires rubygems version 2.1.0 or greater."
|
58
58
|
UI.important "Please update your version of ruby gems before proceeding."
|
59
59
|
UI.command "gem install rubygems-update"
|
@@ -13,12 +13,13 @@ module Fastlane
|
|
13
13
|
path = File.join(path, "project.pbxproj")
|
14
14
|
UI.user_error!("Could not find path to project config '#{path}'. Pass the path to your project (not workspace)!") unless File.exist?(path)
|
15
15
|
|
16
|
-
|
16
|
+
uuid = params[:uuid] || params[:udid]
|
17
|
+
UI.message("Updating provisioning profile UUID (#{uuid}) for the given project '#{path}'")
|
17
18
|
|
18
19
|
p = File.read(path)
|
19
|
-
File.write(path, p.gsub(/PROVISIONING_PROFILE = ".*";/, "PROVISIONING_PROFILE = \"#{
|
20
|
+
File.write(path, p.gsub(/PROVISIONING_PROFILE = ".*";/, "PROVISIONING_PROFILE = \"#{uuid}\";"))
|
20
21
|
|
21
|
-
UI.success("Successfully updated project settings to use
|
22
|
+
UI.success("Successfully updated project settings to use UUID '#{uuid}'")
|
22
23
|
end
|
23
24
|
|
24
25
|
def self.description
|
@@ -39,8 +40,12 @@ module Fastlane
|
|
39
40
|
end),
|
40
41
|
FastlaneCore::ConfigItem.new(key: :udid,
|
41
42
|
env_name: "FL_PROJECT_SIGNING_UDID",
|
42
|
-
description: "
|
43
|
-
default_value: ENV["
|
43
|
+
description: "DEPRECATED: see :uuid",
|
44
|
+
default_value: ENV["SIGH_UUID"]),
|
45
|
+
FastlaneCore::ConfigItem.new(key: :uuid,
|
46
|
+
env_name: "FL_PROJECT_SIGNING_UUID",
|
47
|
+
description: "The UUID of the provisioning profile you want to use",
|
48
|
+
default_value: ENV["SIGH_UUID"])
|
44
49
|
]
|
45
50
|
end
|
46
51
|
|
data/lib/fastlane/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.110.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
@@ -15,7 +15,7 @@ authors:
|
|
15
15
|
autorequire:
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
|
-
date: 2016-11-
|
18
|
+
date: 2016-11-17 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: krausefx-shenzhen
|
@@ -225,7 +225,7 @@ dependencies:
|
|
225
225
|
requirements:
|
226
226
|
- - ">="
|
227
227
|
- !ruby/object:Gem::Version
|
228
|
-
version: 0.
|
228
|
+
version: 0.56.0
|
229
229
|
- - "<"
|
230
230
|
- !ruby/object:Gem::Version
|
231
231
|
version: 1.0.0
|
@@ -235,7 +235,7 @@ dependencies:
|
|
235
235
|
requirements:
|
236
236
|
- - ">="
|
237
237
|
- !ruby/object:Gem::Version
|
238
|
-
version: 0.
|
238
|
+
version: 0.56.0
|
239
239
|
- - "<"
|
240
240
|
- !ruby/object:Gem::Version
|
241
241
|
version: 1.0.0
|
@@ -299,7 +299,7 @@ dependencies:
|
|
299
299
|
requirements:
|
300
300
|
- - ">="
|
301
301
|
- !ruby/object:Gem::Version
|
302
|
-
version: 1.15.
|
302
|
+
version: 1.15.1
|
303
303
|
- - "<"
|
304
304
|
- !ruby/object:Gem::Version
|
305
305
|
version: 2.0.0
|
@@ -309,7 +309,7 @@ dependencies:
|
|
309
309
|
requirements:
|
310
310
|
- - ">="
|
311
311
|
- !ruby/object:Gem::Version
|
312
|
-
version: 1.15.
|
312
|
+
version: 1.15.1
|
313
313
|
- - "<"
|
314
314
|
- !ruby/object:Gem::Version
|
315
315
|
version: 2.0.0
|
@@ -459,7 +459,7 @@ dependencies:
|
|
459
459
|
requirements:
|
460
460
|
- - ">="
|
461
461
|
- !ruby/object:Gem::Version
|
462
|
-
version: 1.12.
|
462
|
+
version: 1.12.1
|
463
463
|
- - "<"
|
464
464
|
- !ruby/object:Gem::Version
|
465
465
|
version: 2.0.0
|
@@ -469,7 +469,7 @@ dependencies:
|
|
469
469
|
requirements:
|
470
470
|
- - ">="
|
471
471
|
- !ruby/object:Gem::Version
|
472
|
-
version: 1.12.
|
472
|
+
version: 1.12.1
|
473
473
|
- - "<"
|
474
474
|
- !ruby/object:Gem::Version
|
475
475
|
version: 2.0.0
|
@@ -735,15 +735,12 @@ files:
|
|
735
735
|
- README.md
|
736
736
|
- bin/fastlane
|
737
737
|
- "bin/\U0001F680"
|
738
|
-
- lib/.DS_Store
|
739
|
-
- lib/assets/.DS_Store
|
740
738
|
- lib/assets/Actions.md.erb
|
741
739
|
- lib/assets/AppfileTemplate
|
742
740
|
- lib/assets/AppfileTemplateAndroid
|
743
741
|
- lib/assets/AvailablePlugins.md.erb
|
744
742
|
- lib/assets/DefaultFastfileTemplate
|
745
743
|
- lib/assets/FastfileTemplateAndroid
|
746
|
-
- lib/assets/completions/.DS_Store
|
747
744
|
- lib/assets/completions/completion.bash
|
748
745
|
- lib/assets/completions/completion.sh
|
749
746
|
- lib/assets/completions/completion.zsh
|
@@ -754,7 +751,6 @@ files:
|
|
754
751
|
- lib/assets/s3_plist_template.erb
|
755
752
|
- lib/assets/s3_version_template.erb
|
756
753
|
- lib/fastlane.rb
|
757
|
-
- lib/fastlane/.DS_Store
|
758
754
|
- lib/fastlane/action.rb
|
759
755
|
- lib/fastlane/action_collector.rb
|
760
756
|
- lib/fastlane/actions/README.md
|
@@ -948,6 +944,7 @@ files:
|
|
948
944
|
- lib/fastlane/features.rb
|
949
945
|
- lib/fastlane/helper/README.md
|
950
946
|
- lib/fastlane/helper/adb_helper.rb
|
947
|
+
- lib/fastlane/helper/cocoapod_helper.rb
|
951
948
|
- lib/fastlane/helper/crashlytics_helper.rb
|
952
949
|
- lib/fastlane/helper/gem_helper.rb
|
953
950
|
- lib/fastlane/helper/git_helper.rb
|
@@ -991,7 +988,6 @@ files:
|
|
991
988
|
- lib/fastlane/plugins/template/spec/%plugin_name%_action_spec.rb.erb
|
992
989
|
- lib/fastlane/plugins/template/spec/spec_helper.rb.erb
|
993
990
|
- lib/fastlane/runner.rb
|
994
|
-
- lib/fastlane/setup/.DS_Store
|
995
991
|
- lib/fastlane/setup/crashlytics_beta.rb
|
996
992
|
- lib/fastlane/setup/crashlytics_beta_command_line_handler.rb
|
997
993
|
- lib/fastlane/setup/crashlytics_beta_info.rb
|
@@ -1025,7 +1021,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1025
1021
|
version: '0'
|
1026
1022
|
requirements: []
|
1027
1023
|
rubyforge_project:
|
1028
|
-
rubygems_version: 2.
|
1024
|
+
rubygems_version: 2.5.1
|
1029
1025
|
signing_key:
|
1030
1026
|
specification_version: 4
|
1031
1027
|
summary: The easiest way to automate beta deployments and releases for your iOS and
|
data/lib/.DS_Store
DELETED
Binary file
|
data/lib/assets/.DS_Store
DELETED
Binary file
|
Binary file
|
data/lib/fastlane/.DS_Store
DELETED
Binary file
|
Binary file
|