fastlane 2.70.0.beta.20171215010003 → 2.70.0.beta.20171216010003
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/fastlane/lib/assets/DefaultFastfileTemplate +2 -2
- data/fastlane/lib/assets/FastfileTemplateAndroid +2 -2
- data/fastlane/lib/fastlane/actions/automatic_code_signing.rb +6 -1
- data/fastlane/lib/fastlane/actions/fastlane_version.rb +7 -47
- data/fastlane/lib/fastlane/actions/min_fastlane_version.rb +55 -0
- data/fastlane/lib/fastlane/actions/push_git_tags.rb +7 -4
- data/fastlane/lib/fastlane/actions/slather.rb +6 -0
- data/fastlane/lib/fastlane/actions/update_app_identifier.rb +11 -1
- data/fastlane/lib/fastlane/version.rb +1 -1
- data/fastlane_core/lib/fastlane_core/helper.rb +1 -0
- data/gym/lib/gym/error_handler.rb +4 -1
- data/spaceship/lib/spaceship.rb +3 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00dc2fed46fde4c8e0cf3edc068c8bf7fac94553
|
4
|
+
data.tar.gz: d4f16bdbd7528426e1d36b0b0d9f70bd57084246
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8df69b47c22713e0fa817a0fd1759941640c32e821bb5a85cede5bb88ebc16316baf5714d88327790fc82e78ca3d255b0126a40eb813478a41a870cd45a1419
|
7
|
+
data.tar.gz: 47f6849d7379cd75a70cc1b4a35544fbc8b61ba04f3a9153892addb3a831d5900c70059fb4fbd7ea9b0639b572469bfa0a6686b442009fd720befbacf585ef21
|
@@ -11,9 +11,9 @@
|
|
11
11
|
|
12
12
|
# This is the minimum version number required.
|
13
13
|
# Update this, if you use features of a newer version
|
14
|
-
|
14
|
+
min_fastlane_version("[[FASTLANE_VERSION]]")
|
15
15
|
|
16
|
-
default_platform
|
16
|
+
default_platform(:ios)
|
17
17
|
|
18
18
|
platform :ios do
|
19
19
|
before_all do
|
@@ -11,9 +11,9 @@
|
|
11
11
|
|
12
12
|
# This is the minimum version number required.
|
13
13
|
# Update this, if you use features of a newer version
|
14
|
-
|
14
|
+
min_fastlane_version("[[FASTLANE_VERSION]]")
|
15
15
|
|
16
|
-
default_platform
|
16
|
+
default_platform(:android)
|
17
17
|
|
18
18
|
platform :android do
|
19
19
|
before_all do
|
@@ -28,7 +28,12 @@ module Fastlane
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
|
-
|
31
|
+
style_value = params[:use_automatic_signing] ? 'Automatic' : 'Manual'
|
32
|
+
target = project.targets.find { |t| t.name == found_target[:name] }
|
33
|
+
target.build_configurations.each do |configuration|
|
34
|
+
configuration.build_settings["CODE_SIGN_STYLE"] = style_value
|
35
|
+
end
|
36
|
+
sett["ProvisioningStyle"] = style_value
|
32
37
|
if params[:team_id]
|
33
38
|
sett["DevelopmentTeam"] = params[:team_id]
|
34
39
|
UI.important("Set Team id to: #{params[:team_id]} for target: #{found_target[:name]}")
|
@@ -1,54 +1,14 @@
|
|
1
|
+
require "fastlane/actions/min_fastlane_version"
|
2
|
+
|
1
3
|
module Fastlane
|
2
4
|
module Actions
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
def self.run(params)
|
8
|
-
params = nil unless params.kind_of?(Array)
|
9
|
-
value = (params || []).first
|
10
|
-
defined_version = Gem::Version.new(value) if value
|
11
|
-
|
12
|
-
UI.user_error!("Please pass minimum fastlane version as parameter to fastlane_version") unless defined_version
|
13
|
-
|
14
|
-
if Gem::Version.new(Fastlane::VERSION) < defined_version
|
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}."
|
17
|
-
UI.user_error!(error_message)
|
18
|
-
end
|
19
|
-
|
20
|
-
UI.message("Your fastlane version #{Fastlane::VERSION} matches the minimum requirement of #{defined_version} ✅")
|
21
|
-
end
|
22
|
-
|
23
|
-
def self.step_text
|
24
|
-
"Verifying required fastlane version"
|
25
|
-
end
|
26
|
-
|
27
|
-
def self.author
|
28
|
-
"KrauseFx"
|
29
|
-
end
|
5
|
+
class FastlaneVersionAction < MinFastlaneVersionAction
|
6
|
+
#####################################################
|
7
|
+
# @!group Documentation
|
8
|
+
#####################################################
|
30
9
|
|
31
10
|
def self.description
|
32
|
-
"
|
33
|
-
end
|
34
|
-
|
35
|
-
def self.example_code
|
36
|
-
['fastlane_version "1.50.0"']
|
37
|
-
end
|
38
|
-
|
39
|
-
def self.details
|
40
|
-
[
|
41
|
-
"Add this to your `Fastfile` to require a certain version of _fastlane_.",
|
42
|
-
"Use it if you use an action that just recently came out and you need it"
|
43
|
-
].join("\n")
|
44
|
-
end
|
45
|
-
|
46
|
-
def self.category
|
47
|
-
:misc
|
48
|
-
end
|
49
|
-
|
50
|
-
def self.is_supported?(platform)
|
51
|
-
true
|
11
|
+
"Alias for the `min_fastlane_version` action"
|
52
12
|
end
|
53
13
|
end
|
54
14
|
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
module SharedValues
|
4
|
+
end
|
5
|
+
|
6
|
+
class MinFastlaneVersionAction < Action
|
7
|
+
def self.run(params)
|
8
|
+
params = nil unless params.kind_of?(Array)
|
9
|
+
value = (params || []).first
|
10
|
+
defined_version = Gem::Version.new(value) if value
|
11
|
+
|
12
|
+
UI.user_error!("Please pass minimum fastlane version as parameter to min_fastlane_version") unless defined_version
|
13
|
+
|
14
|
+
if Gem::Version.new(Fastlane::VERSION) < defined_version
|
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}."
|
17
|
+
UI.user_error!(error_message)
|
18
|
+
end
|
19
|
+
|
20
|
+
UI.message("Your fastlane version #{Fastlane::VERSION} matches the minimum requirement of #{defined_version} ✅")
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.step_text
|
24
|
+
"Verifying required fastlane version"
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.author
|
28
|
+
"KrauseFx"
|
29
|
+
end
|
30
|
+
|
31
|
+
def self.description
|
32
|
+
"Verifies the minimum fastlane version required"
|
33
|
+
end
|
34
|
+
|
35
|
+
def self.example_code
|
36
|
+
['min_fastlane_version "1.50.0"']
|
37
|
+
end
|
38
|
+
|
39
|
+
def self.details
|
40
|
+
[
|
41
|
+
"Add this to your `Fastfile` to require a certain version of _fastlane_.",
|
42
|
+
"Use it if you use an action that just recently came out and you need it."
|
43
|
+
].join("\n")
|
44
|
+
end
|
45
|
+
|
46
|
+
def self.category
|
47
|
+
:misc
|
48
|
+
end
|
49
|
+
|
50
|
+
def self.is_supported?(platform)
|
51
|
+
true
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -5,15 +5,13 @@ module Fastlane
|
|
5
5
|
command = [
|
6
6
|
'git',
|
7
7
|
'push',
|
8
|
-
|
8
|
+
params[:remote],
|
9
|
+
params[:tag] || '--tags'
|
9
10
|
]
|
10
11
|
|
11
12
|
# optionally add the force component
|
12
13
|
command << '--force' if params[:force]
|
13
14
|
|
14
|
-
# optionally add the remote component
|
15
|
-
command << params[:remote] if params[:remote]
|
16
|
-
|
17
15
|
result = Actions.sh(command.join(' '))
|
18
16
|
UI.success('Tags pushed to remote')
|
19
17
|
result
|
@@ -38,6 +36,11 @@ module Fastlane
|
|
38
36
|
FastlaneCore::ConfigItem.new(key: :remote,
|
39
37
|
env_name: "FL_GIT_PUSH_REMOTE",
|
40
38
|
description: "The remote to push tags to",
|
39
|
+
default_value: "origin",
|
40
|
+
optional: true),
|
41
|
+
FastlaneCore::ConfigItem.new(key: :tag,
|
42
|
+
env_name: "FL_GIT_PUSH_TAG",
|
43
|
+
description: "The tag to push to remote",
|
41
44
|
optional: true)
|
42
45
|
]
|
43
46
|
end
|
@@ -18,6 +18,7 @@ module Fastlane
|
|
18
18
|
simple_output: '--simple-output',
|
19
19
|
gutter_json: '--gutter-json',
|
20
20
|
cobertura_xml: '--cobertura-xml',
|
21
|
+
llvm_cov: '--llvm-cov',
|
21
22
|
html: '--html',
|
22
23
|
show: '--show',
|
23
24
|
|
@@ -204,6 +205,11 @@ Slather is available at https://github.com/SlatherOrg/slather
|
|
204
205
|
is_string: false,
|
205
206
|
type: Boolean,
|
206
207
|
optional: true),
|
208
|
+
FastlaneCore::ConfigItem.new(key: :llvm_cov,
|
209
|
+
env_name: "FL_SLATHER_LLVM_COV_ENABLED",
|
210
|
+
description: "Tell slather that it should output results as llvm-cov show format",
|
211
|
+
is_string: false,
|
212
|
+
optional: true),
|
207
213
|
FastlaneCore::ConfigItem.new(key: :html,
|
208
214
|
env_name: "FL_SLATHER_HTML_ENABLED",
|
209
215
|
description: "Tell slather that it should output results as static HTML pages",
|
@@ -9,7 +9,7 @@ module Fastlane
|
|
9
9
|
identifier_key = 'PRODUCT_BUNDLE_IDENTIFIER'
|
10
10
|
|
11
11
|
# Read existing plist file
|
12
|
-
info_plist_path =
|
12
|
+
info_plist_path = resolve_path(params[:plist_path], params[:xcodeproj])
|
13
13
|
UI.user_error!("Couldn't find info plist file at path '#{params[:plist_path]}'") unless File.exist?(info_plist_path)
|
14
14
|
plist = Plist.parse_xml(info_plist_path)
|
15
15
|
|
@@ -47,6 +47,16 @@ module Fastlane
|
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
50
|
+
def self.resolve_path(path, xcodeproj_path)
|
51
|
+
project_dir = File.dirname(xcodeproj_path)
|
52
|
+
# SRCROOT, SOURCE_ROOT and PROJECT_DIR are the same
|
53
|
+
%w{SRCROOT SOURCE_ROOT PROJECT_DIR}.each do |variable_name|
|
54
|
+
path = path.sub("$(#{variable_name})", project_dir)
|
55
|
+
end
|
56
|
+
path = File.absolute_path(path, project_dir)
|
57
|
+
path
|
58
|
+
end
|
59
|
+
|
50
60
|
#####################################################
|
51
61
|
# @!group Documentation
|
52
62
|
#####################################################
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Fastlane
|
2
|
-
VERSION = '2.70.0.beta.
|
2
|
+
VERSION = '2.70.0.beta.20171216010003'.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
|
@@ -142,6 +142,7 @@ module FastlaneCore
|
|
142
142
|
def self.xcode_version
|
143
143
|
return nil unless self.is_mac?
|
144
144
|
return @xcode_version if @xcode_version && @developer_dir == ENV['DEVELOPER_DIR']
|
145
|
+
return nil unless File.exist?("#{xcode_path}/usr/bin/xcodebuild")
|
145
146
|
|
146
147
|
begin
|
147
148
|
output = `DEVELOPER_DIR='' "#{xcode_path}/usr/bin/xcodebuild" -version`
|
@@ -154,6 +154,9 @@ module Gym
|
|
154
154
|
def print_xcode9_plist_warning
|
155
155
|
return unless Helper.xcode_at_least?("9.0")
|
156
156
|
|
157
|
+
# prevent crash in case of packaging error AND if you have set export_options to a path.
|
158
|
+
return unless Gym.config[:export_options].kind_of?(Hash)
|
159
|
+
|
157
160
|
export_options = Gym.config[:export_options] || {}
|
158
161
|
provisioning_profiles = export_options[:provisioningProfiles] || []
|
159
162
|
if provisioning_profiles.count == 0
|
@@ -220,7 +223,7 @@ module Gym
|
|
220
223
|
UI.error("Please make sure to define the correct export methods when calling")
|
221
224
|
UI.error("gym in your Fastfile or from the command line")
|
222
225
|
UI.message("")
|
223
|
-
elsif Gym.config[:export_options]
|
226
|
+
elsif Gym.config[:export_options] && Gym.config[:export_options].kind_of?(Hash)
|
224
227
|
# We want to tell the user if there is an obvious mismatch between the selected
|
225
228
|
# `export_method` and the selected provisioning profiles
|
226
229
|
selected_export_method = Gym.config[:export_method].to_s
|
data/spaceship/lib/spaceship.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: 2.70.0.beta.
|
4
|
+
version: 2.70.0.beta.20171216010003
|
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: 2017-12-
|
18
|
+
date: 2017-12-16 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: slack-notifier
|
@@ -1023,6 +1023,7 @@ files:
|
|
1023
1023
|
- fastlane/lib/fastlane/actions/mailgun.rb
|
1024
1024
|
- fastlane/lib/fastlane/actions/make_changelog_from_jenkins.rb
|
1025
1025
|
- fastlane/lib/fastlane/actions/match.rb
|
1026
|
+
- fastlane/lib/fastlane/actions/min_fastlane_version.rb
|
1026
1027
|
- fastlane/lib/fastlane/actions/modify_services.rb
|
1027
1028
|
- fastlane/lib/fastlane/actions/nexus_upload.rb
|
1028
1029
|
- fastlane/lib/fastlane/actions/notification.rb
|