fastlane 2.122.0.beta.20190424200026 → 2.122.0.beta.20190425200104
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fastlane/lib/fastlane/actions/build_ios_app.rb +7 -0
- data/fastlane/lib/fastlane/actions/capture_android_screenshots.rb +6 -0
- data/fastlane/lib/fastlane/actions/capture_ios_screenshots.rb +6 -0
- data/fastlane/lib/fastlane/actions/changelog_from_git_commits.rb +3 -1
- data/fastlane/lib/fastlane/actions/commit_version_bump.rb +6 -0
- data/fastlane/lib/fastlane/actions/create_keychain.rb +6 -0
- data/fastlane/lib/fastlane/actions/create_pull_request.rb +6 -0
- data/fastlane/lib/fastlane/actions/default_platform.rb +6 -0
- data/fastlane/lib/fastlane/actions/ensure_xcode_version.rb +0 -4
- data/fastlane/lib/fastlane/actions/get_certificates.rb +7 -0
- data/fastlane/lib/fastlane/actions/get_provisioning_profile.rb +11 -0
- data/fastlane/lib/fastlane/actions/git_branch.rb +3 -1
- data/fastlane/lib/fastlane/actions/gradle.rb +3 -1
- data/fastlane/lib/fastlane/actions/increment_build_number.rb +5 -4
- data/fastlane/lib/fastlane/actions/run_tests.rb +9 -0
- data/fastlane/lib/fastlane/actions/setup_ci.rb +121 -0
- data/fastlane/lib/fastlane/actions/setup_circle_ci.rb +1 -48
- data/fastlane/lib/fastlane/actions/setup_travis.rb +1 -27
- data/fastlane/lib/fastlane/actions/slather.rb +0 -4
- data/fastlane/lib/fastlane/actions/sync_code_signing.rb +3 -1
- data/fastlane/lib/fastlane/actions/update_app_group_identifiers.rb +3 -1
- data/fastlane/lib/fastlane/actions/update_icloud_container_identifiers.rb +3 -1
- data/fastlane/lib/fastlane/actions/verify_build.rb +0 -3
- data/fastlane/lib/fastlane/actions/xcode_install.rb +1 -1
- data/fastlane/lib/fastlane/version.rb +1 -1
- metadata +15 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b046eb9905590895e6cebb113678bab22a951f8f
|
4
|
+
data.tar.gz: 93b69d90c10e789957903f6d3e2565fc35ffdfe2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c05ece033a3738c7225c9341fddee4b9d27509ecb78c7a97a2cc3790c566ef3aa2ee1461ded45357e0bafd2ee5f4d5a3e78ee0f89ed033aaccec309883beb80
|
7
|
+
data.tar.gz: 10c4edccc6574e88814e0e056c00948df4cc98a158c0ef15e42ffbf718b0d5c53fbe3cfd72e46c6445a97e2d2dd4a4d87de308756cf6c947205cdd31dbf05803
|
@@ -92,6 +92,13 @@ module Fastlane
|
|
92
92
|
"More information: https://fastlane.tools/gym"
|
93
93
|
end
|
94
94
|
|
95
|
+
def self.output
|
96
|
+
[
|
97
|
+
['IPA_OUTPUT_PATH', 'The path to the newly generated ipa file'],
|
98
|
+
['DSYM_OUTPUT_PATH', 'The path to the dSYM files']
|
99
|
+
]
|
100
|
+
end
|
101
|
+
|
95
102
|
def self.return_value
|
96
103
|
"The absolute path to the generated ipa file"
|
97
104
|
end
|
@@ -68,7 +68,9 @@ module Fastlane
|
|
68
68
|
end
|
69
69
|
|
70
70
|
def self.output
|
71
|
-
[
|
71
|
+
[
|
72
|
+
['FL_CHANGELOG', 'The changelog string generated from the collected git commit messages']
|
73
|
+
]
|
72
74
|
end
|
73
75
|
|
74
76
|
def self.available_options
|
@@ -141,6 +141,12 @@ module Fastlane
|
|
141
141
|
"Creates a 'Version Bump' commit. Run after `increment_build_number`"
|
142
142
|
end
|
143
143
|
|
144
|
+
def self.output
|
145
|
+
[
|
146
|
+
['MODIFIED_FILES', 'The list of paths of modified files']
|
147
|
+
]
|
148
|
+
end
|
149
|
+
|
144
150
|
def self.available_options
|
145
151
|
[
|
146
152
|
FastlaneCore::ConfigItem.new(key: :message,
|
@@ -68,6 +68,12 @@ module Fastlane
|
|
68
68
|
"This will create a new pull request on GitHub"
|
69
69
|
end
|
70
70
|
|
71
|
+
def self.output
|
72
|
+
[
|
73
|
+
['CREATE_PULL_REQUEST_HTML_URL', 'The HTML URL to the created pull request']
|
74
|
+
]
|
75
|
+
end
|
76
|
+
|
71
77
|
def self.available_options
|
72
78
|
[
|
73
79
|
FastlaneCore::ConfigItem.new(key: :api_token,
|
@@ -42,6 +42,13 @@ module Fastlane
|
|
42
42
|
Cert::Options.available_options
|
43
43
|
end
|
44
44
|
|
45
|
+
def self.output
|
46
|
+
[
|
47
|
+
['CERT_FILE_PATH', 'The path to the certificate'],
|
48
|
+
['CERT_CERTIFICATE_ID', 'The id of the certificate']
|
49
|
+
]
|
50
|
+
end
|
51
|
+
|
45
52
|
def self.author
|
46
53
|
"KrauseFx"
|
47
54
|
end
|
@@ -52,6 +52,17 @@ module Fastlane
|
|
52
52
|
"KrauseFx"
|
53
53
|
end
|
54
54
|
|
55
|
+
# rubocop:disable Lint/MissingKeysOnSharedArea
|
56
|
+
def self.output
|
57
|
+
[
|
58
|
+
['SIGH_PROFILE_PATH', 'A path in which certificates, key and profile are exported'],
|
59
|
+
['SIGH_PROFILE_PATHS', 'Paths in which certificates, key and profile are exported'],
|
60
|
+
['SIGH_UUID', 'UUID (Universally Unique IDentifier) of a provisioning profile'],
|
61
|
+
['SIGH_NAME', 'The name of the profile'],
|
62
|
+
['SIGH_PROFILE_TYPE', 'The profile type, can be appstore, adhoc, development, enterprise']
|
63
|
+
]
|
64
|
+
end
|
65
|
+
|
55
66
|
def self.return_value
|
56
67
|
"The UUID of the profile sigh just fetched/generated"
|
57
68
|
end
|
@@ -163,7 +163,9 @@ module Fastlane
|
|
163
163
|
['GRADLE_APK_OUTPUT_PATH', 'The path to the newly generated apk file. Undefined in a multi-variant assemble scenario'],
|
164
164
|
['GRADLE_ALL_APK_OUTPUT_PATHS', 'When running a multi-variant `assemble`, the array of signed apk\'s that were generated'],
|
165
165
|
['GRADLE_FLAVOR', 'The flavor, e.g. `MyFlavor`'],
|
166
|
-
['GRADLE_BUILD_TYPE', 'The build type, e.g. `Release`']
|
166
|
+
['GRADLE_BUILD_TYPE', 'The build type, e.g. `Release`'],
|
167
|
+
['GRADLE_AAB_OUTPUT_PATH', 'The path to the most recent Android app bundle'],
|
168
|
+
['GRADLE_ALL_AAB_OUTPUT_PATHS', 'The paths to the most recent Android app bundles']
|
167
169
|
]
|
168
170
|
end
|
169
171
|
|
@@ -30,8 +30,8 @@ module Fastlane
|
|
30
30
|
# https://developer.apple.com/library/ios/qa/qa1827/_index.html
|
31
31
|
# Attention: This is NOT the version number - but the build number
|
32
32
|
|
33
|
-
|
34
|
-
raise "Apple Generic Versioning is not enabled."
|
33
|
+
agv_disabled = !system([command_prefix, 'agvtool what-version', command_suffix].join(' '))
|
34
|
+
raise "Apple Generic Versioning is not enabled." if agv_disabled && params[:build_number].nil?
|
35
35
|
|
36
36
|
command = [
|
37
37
|
command_prefix,
|
@@ -47,7 +47,8 @@ module Fastlane
|
|
47
47
|
end
|
48
48
|
|
49
49
|
# Store the new number in the shared hash
|
50
|
-
build_number =
|
50
|
+
build_number = params[:build_number].to_s.strip
|
51
|
+
build_number = Actions.sh("#{command_prefix} agvtool what-version", log: false).split("\n").last.strip if build_number.to_s == ""
|
51
52
|
|
52
53
|
return Actions.lane_context[SharedValues::BUILD_NUMBER] = build_number
|
53
54
|
rescue
|
@@ -62,7 +63,7 @@ module Fastlane
|
|
62
63
|
[
|
63
64
|
FastlaneCore::ConfigItem.new(key: :build_number,
|
64
65
|
env_name: "FL_BUILD_NUMBER_BUILD_NUMBER",
|
65
|
-
description: "Change to a specific version",
|
66
|
+
description: "Change to a specific version. When you provide this parameter, Apple Generic Versioning does not have to be enabled",
|
66
67
|
optional: true,
|
67
68
|
is_string: false),
|
68
69
|
FastlaneCore::ConfigItem.new(key: :xcodeproj,
|
@@ -70,6 +70,15 @@ module Fastlane
|
|
70
70
|
]
|
71
71
|
end
|
72
72
|
|
73
|
+
def self.output
|
74
|
+
[
|
75
|
+
['SCAN_DERIVED_DATA_PATH', 'The path to the derived data'],
|
76
|
+
['SCAN_GENERATED_PLIST_FILE', 'The generated plist file'],
|
77
|
+
['SCAN_GENERATED_PLIST_FILES', 'The generated plist files'],
|
78
|
+
['SCAN_ZIP_BUILD_PRODUCTS_PATH', 'The path to the zipped build products']
|
79
|
+
]
|
80
|
+
end
|
81
|
+
|
73
82
|
def self.is_supported?(platform)
|
74
83
|
[:ios, :mac].include?(platform)
|
75
84
|
end
|
@@ -0,0 +1,121 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
class SetupCiAction < Action
|
4
|
+
def self.run(params)
|
5
|
+
unless should_run?(params)
|
6
|
+
UI.message("Not running on CI, skipping CI setup")
|
7
|
+
return
|
8
|
+
end
|
9
|
+
|
10
|
+
case params[:provider]
|
11
|
+
when 'travis'
|
12
|
+
setup_keychain
|
13
|
+
when 'circleci'
|
14
|
+
setup_keychain
|
15
|
+
setup_output_paths
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.should_run?(params)
|
20
|
+
Helper.ci? || params[:force]
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.setup_keychain
|
24
|
+
unless ENV["MATCH_KEYCHAIN_NAME"].nil?
|
25
|
+
UI.message("Skipping Keychain setup as a keychain was already specified")
|
26
|
+
return
|
27
|
+
end
|
28
|
+
|
29
|
+
keychain_name = "fastlane_tmp_keychain"
|
30
|
+
ENV["MATCH_KEYCHAIN_NAME"] = keychain_name
|
31
|
+
ENV["MATCH_KEYCHAIN_PASSWORD"] = ""
|
32
|
+
|
33
|
+
UI.message("Creating temporary keychain: \"#{keychain_name}\".")
|
34
|
+
Actions::CreateKeychainAction.run(
|
35
|
+
name: keychain_name,
|
36
|
+
default_keychain: true,
|
37
|
+
unlock: true,
|
38
|
+
timeout: 3600,
|
39
|
+
lock_when_sleeps: true,
|
40
|
+
password: ""
|
41
|
+
)
|
42
|
+
|
43
|
+
UI.message("Enabling match readonly mode.")
|
44
|
+
ENV["MATCH_READONLY"] = true.to_s
|
45
|
+
end
|
46
|
+
|
47
|
+
def self.setup_output_paths
|
48
|
+
unless ENV["FL_OUTPUT_DIR"]
|
49
|
+
UI.message("Skipping Log Path setup as FL_OUTPUT_DIR is unset")
|
50
|
+
return
|
51
|
+
end
|
52
|
+
|
53
|
+
root = Pathname.new(ENV["FL_OUTPUT_DIR"])
|
54
|
+
ENV["SCAN_OUTPUT_DIRECTORY"] = (root + "scan").to_s
|
55
|
+
ENV["GYM_OUTPUT_DIRECTORY"] = (root + "gym").to_s
|
56
|
+
ENV["FL_BUILDLOG_PATH"] = (root + "buildlogs").to_s
|
57
|
+
ENV["SCAN_INCLUDE_SIMULATOR_LOGS"] = true.to_s
|
58
|
+
end
|
59
|
+
|
60
|
+
#####################################################
|
61
|
+
# @!group Documentation
|
62
|
+
#####################################################
|
63
|
+
|
64
|
+
def self.description
|
65
|
+
"Setup the keychain and match to work with CI"
|
66
|
+
end
|
67
|
+
|
68
|
+
def self.details
|
69
|
+
list = <<-LIST.markdown_list(true)
|
70
|
+
Creates a new temporary keychain for use with match
|
71
|
+
Switches match to `readonly` mode to not create new profiles/cert on CI
|
72
|
+
Sets up log and test result paths to be easily collectible
|
73
|
+
LIST
|
74
|
+
|
75
|
+
[
|
76
|
+
list,
|
77
|
+
"This action helps with CI integration. Add this to the top of your Fastfile if you use CI."
|
78
|
+
].join("\n")
|
79
|
+
end
|
80
|
+
|
81
|
+
def self.available_options
|
82
|
+
[
|
83
|
+
FastlaneCore::ConfigItem.new(key: :force,
|
84
|
+
env_name: "FL_SETUP_CI_FORCE",
|
85
|
+
description: "Force setup, even if not executed by CI",
|
86
|
+
is_string: false,
|
87
|
+
default_value: false),
|
88
|
+
FastlaneCore::ConfigItem.new(key: :provider,
|
89
|
+
env_name: "FL_SETUP_CI_PROVIDER",
|
90
|
+
description: "CI provider",
|
91
|
+
is_string: true,
|
92
|
+
default_value: false,
|
93
|
+
verify_block: proc do |value|
|
94
|
+
value = value.to_s
|
95
|
+
UI.user_error!("A given CI provider '#{value}' is not supported. Available CI providers: 'travis', 'circleci'") unless ["travis", "circleci"].include?(value)
|
96
|
+
end)
|
97
|
+
]
|
98
|
+
end
|
99
|
+
|
100
|
+
def self.authors
|
101
|
+
["mollyIV"]
|
102
|
+
end
|
103
|
+
|
104
|
+
def self.is_supported?(platform)
|
105
|
+
[:ios, :mac].include?(platform)
|
106
|
+
end
|
107
|
+
|
108
|
+
def self.example_code
|
109
|
+
[
|
110
|
+
'setup_ci(
|
111
|
+
provider: "travis"
|
112
|
+
)'
|
113
|
+
]
|
114
|
+
end
|
115
|
+
|
116
|
+
def self.category
|
117
|
+
:misc
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
@@ -2,54 +2,7 @@ module Fastlane
|
|
2
2
|
module Actions
|
3
3
|
class SetupCircleCiAction < Action
|
4
4
|
def self.run(params)
|
5
|
-
|
6
|
-
UI.message("Not running on CI, skipping `setup_circle_ci`")
|
7
|
-
return
|
8
|
-
end
|
9
|
-
|
10
|
-
setup_keychain
|
11
|
-
setup_output_paths(params)
|
12
|
-
end
|
13
|
-
|
14
|
-
def self.setup_output_paths(params)
|
15
|
-
unless ENV["FL_OUTPUT_DIR"]
|
16
|
-
UI.message("Skipping Log Path setup as FL_OUTPUT_DIR is unset")
|
17
|
-
return
|
18
|
-
end
|
19
|
-
|
20
|
-
root = Pathname.new(ENV["FL_OUTPUT_DIR"])
|
21
|
-
ENV["SCAN_OUTPUT_DIRECTORY"] = (root + "scan").to_s
|
22
|
-
ENV["GYM_OUTPUT_DIRECTORY"] = (root + "gym").to_s
|
23
|
-
ENV["FL_BUILDLOG_PATH"] = (root + "buildlogs").to_s
|
24
|
-
ENV["SCAN_INCLUDE_SIMULATOR_LOGS"] = true.to_s
|
25
|
-
end
|
26
|
-
|
27
|
-
def self.setup_keychain
|
28
|
-
unless ENV["MATCH_KEYCHAIN_NAME"].nil?
|
29
|
-
UI.message("Skipping Keychain setup as a keychain was already specified")
|
30
|
-
return
|
31
|
-
end
|
32
|
-
|
33
|
-
keychain_name = "fastlane_tmp_keychain"
|
34
|
-
ENV["MATCH_KEYCHAIN_NAME"] = keychain_name
|
35
|
-
ENV["MATCH_KEYCHAIN_PASSWORD"] = ""
|
36
|
-
|
37
|
-
UI.message("Creating temporary keychain: \"#{keychain_name}\".")
|
38
|
-
Actions::CreateKeychainAction.run(
|
39
|
-
name: keychain_name,
|
40
|
-
default_keychain: true,
|
41
|
-
unlock: true,
|
42
|
-
timeout: 3600,
|
43
|
-
lock_when_sleeps: true,
|
44
|
-
password: ""
|
45
|
-
)
|
46
|
-
|
47
|
-
UI.message("Enabling match readonly mode.")
|
48
|
-
ENV["MATCH_READONLY"] = true.to_s
|
49
|
-
end
|
50
|
-
|
51
|
-
def self.should_run?(params)
|
52
|
-
Helper.ci? || params[:force]
|
5
|
+
other_action.setup_ci(provider: "circleci", force: params[:force])
|
53
6
|
end
|
54
7
|
|
55
8
|
#####################################################
|
@@ -2,33 +2,7 @@ module Fastlane
|
|
2
2
|
module Actions
|
3
3
|
class SetupTravisAction < Action
|
4
4
|
def self.run(params)
|
5
|
-
|
6
|
-
if !Helper.ci? && !params[:force]
|
7
|
-
UI.message("Currently not running on CI system, skipping travis setup")
|
8
|
-
return
|
9
|
-
end
|
10
|
-
|
11
|
-
# Create a temporary keychain
|
12
|
-
password = "" # we don't need a password, as the keychain gets removed after each run anyway
|
13
|
-
keychain_name = "fastlane_tmp_keychain"
|
14
|
-
ENV["MATCH_KEYCHAIN_NAME"] = keychain_name
|
15
|
-
ENV["MATCH_KEYCHAIN_PASSWORD"] = password
|
16
|
-
|
17
|
-
UI.message("Creating temporary keychain: \"#{keychain_name}\".")
|
18
|
-
Actions::CreateKeychainAction.run(
|
19
|
-
name: keychain_name,
|
20
|
-
default_keychain: true,
|
21
|
-
unlock: true,
|
22
|
-
timeout: 3600,
|
23
|
-
lock_when_sleeps: true,
|
24
|
-
password: password
|
25
|
-
)
|
26
|
-
|
27
|
-
# Enable readonly mode for match by default
|
28
|
-
# we don't want to generate new identities and
|
29
|
-
# profiles on Travis usually
|
30
|
-
UI.message("Enabling readonly mode for Travis")
|
31
|
-
ENV["MATCH_READONLY"] = true.to_s
|
5
|
+
other_action.setup_ci(provider: "travis", force: params[:force])
|
32
6
|
end
|
33
7
|
|
34
8
|
#####################################################
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Fastlane
|
2
|
-
VERSION = '2.122.0.beta.
|
2
|
+
VERSION = '2.122.0.beta.20190425200104'.freeze
|
3
3
|
DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
|
4
4
|
MINIMUM_XCODE_RELEASE = "7.0".freeze
|
5
5
|
RUBOCOP_REQUIREMENT = '0.49.1'.freeze
|
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: 2.122.0.beta.
|
4
|
+
version: 2.122.0.beta.20190425200104
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jimmy Dee
|
@@ -27,7 +27,7 @@ authors:
|
|
27
27
|
autorequire:
|
28
28
|
bindir: bin
|
29
29
|
cert_chain: []
|
30
|
-
date: 2019-04-
|
30
|
+
date: 2019-04-25 00:00:00.000000000 Z
|
31
31
|
dependencies:
|
32
32
|
- !ruby/object:Gem::Dependency
|
33
33
|
name: slack-notifier
|
@@ -1142,6 +1142,7 @@ files:
|
|
1142
1142
|
- fastlane/lib/fastlane/actions/set_github_release.rb
|
1143
1143
|
- fastlane/lib/fastlane/actions/set_info_plist_value.rb
|
1144
1144
|
- fastlane/lib/fastlane/actions/set_pod_key.rb
|
1145
|
+
- fastlane/lib/fastlane/actions/setup_ci.rb
|
1145
1146
|
- fastlane/lib/fastlane/actions/setup_circle_ci.rb
|
1146
1147
|
- fastlane/lib/fastlane/actions/setup_jenkins.rb
|
1147
1148
|
- fastlane/lib/fastlane/actions/setup_travis.rb
|
@@ -1690,24 +1691,24 @@ metadata:
|
|
1690
1691
|
post_install_message:
|
1691
1692
|
rdoc_options: []
|
1692
1693
|
require_paths:
|
1693
|
-
- snapshot/lib
|
1694
|
-
- scan/lib
|
1695
|
-
- sigh/lib
|
1696
1694
|
- screengrab/lib
|
1697
|
-
- match/lib
|
1698
|
-
- pem/lib
|
1699
|
-
- frameit/lib
|
1700
|
-
- precheck/lib
|
1701
|
-
- spaceship/lib
|
1702
|
-
- supply/lib
|
1703
|
-
- credentials_manager/lib
|
1704
1695
|
- pilot/lib
|
1696
|
+
- supply/lib
|
1705
1697
|
- cert/lib
|
1698
|
+
- fastlane_core/lib
|
1699
|
+
- precheck/lib
|
1700
|
+
- match/lib
|
1701
|
+
- frameit/lib
|
1702
|
+
- snapshot/lib
|
1703
|
+
- sigh/lib
|
1706
1704
|
- fastlane/lib
|
1705
|
+
- spaceship/lib
|
1706
|
+
- pem/lib
|
1707
|
+
- scan/lib
|
1708
|
+
- gym/lib
|
1707
1709
|
- produce/lib
|
1710
|
+
- credentials_manager/lib
|
1708
1711
|
- deliver/lib
|
1709
|
-
- gym/lib
|
1710
|
-
- fastlane_core/lib
|
1711
1712
|
required_ruby_version: !ruby/object:Gem::Requirement
|
1712
1713
|
requirements:
|
1713
1714
|
- - ">="
|