fastlane 2.82.0.beta.20180215010002 → 2.82.0.beta.20180216010003
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/add_git_tag.rb +7 -1
- data/fastlane/lib/fastlane/actions/automatic_code_signing.rb +1 -0
- data/fastlane/lib/fastlane/actions/update_app_identifier.rb +2 -1
- data/fastlane/lib/fastlane/plugins/plugin_manager.rb +5 -1
- data/fastlane/lib/fastlane/version.rb +1 -1
- data/spaceship/lib/spaceship/test_flight/build.rb +7 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: adcbd0fcd5fd347e6a34b599a342db0a0dc875c3
|
4
|
+
data.tar.gz: 7139f25facd65a9c1b381dd721700bd9b044d3a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eacebd6e8fc0e6f99b855899155583d7b9bf648b742739986fb78843b448d5b1e9c3578b5fb176d79f08de5086aef200ac7b1917d4d2e7b591175f05ee11d812
|
7
|
+
data.tar.gz: a975048e6a5f957b6b9f56ecd6c7596ed0c23f2c95b9d5bb706492b8b517e21230db9b0899723e5d31d4e82740bb0b101f2efbd7c8ddc7739a2678769e240527
|
@@ -6,7 +6,7 @@ module Fastlane
|
|
6
6
|
# lane name in lane_context could be nil because you can just call $fastlane add_git_tag which has no context
|
7
7
|
lane_name = Actions.lane_context[Actions::SharedValues::LANE_NAME].to_s.delete(' ') # no spaces allowed
|
8
8
|
|
9
|
-
tag = options[:tag] || "#{options[:grouping]}/#{lane_name}/#{options[:prefix]}#{options[:build_number]}"
|
9
|
+
tag = options[:tag] || "#{options[:grouping]}/#{lane_name}/#{options[:prefix]}#{options[:build_number]}#{options[:postfix]}"
|
10
10
|
message = options[:message] || "#{tag} (fastlane)"
|
11
11
|
|
12
12
|
cmd = ['git tag']
|
@@ -31,6 +31,7 @@ module Fastlane
|
|
31
31
|
"- `grouping` is just to keep your tags organised under one 'folder', defaults to 'builds'",
|
32
32
|
"- `lane` is the name of the current fastlane lane",
|
33
33
|
"- `prefix` is anything you want to stick in front of the version number, e.g. 'v'",
|
34
|
+
"- `postfix` is anything you want to stick at the end of the version number, e.g. '-RC1'",
|
34
35
|
"- `build_number` is the build number, which defaults to the value emitted by the `increment_build_number` action",
|
35
36
|
"",
|
36
37
|
"For example for build 1234 in the 'appstore' lane it will tag the commit with `builds/appstore/1234`"
|
@@ -51,6 +52,10 @@ module Fastlane
|
|
51
52
|
env_name: "FL_GIT_TAG_PREFIX",
|
52
53
|
description: "Anything you want to put in front of the version number (e.g. 'v')",
|
53
54
|
default_value: ''),
|
55
|
+
FastlaneCore::ConfigItem.new(key: :postfix,
|
56
|
+
env_name: "FL_GIT_TAG_POSTFIX",
|
57
|
+
description: "Anything you want to put at the end of the version number (e.g. '-RC1')",
|
58
|
+
default_value: ''),
|
54
59
|
FastlaneCore::ConfigItem.new(key: :build_number,
|
55
60
|
env_name: "FL_GIT_TAG_BUILD_NUMBER",
|
56
61
|
description: "The build number. Defaults to the result of increment_build_number if you\'re using it",
|
@@ -85,6 +90,7 @@ module Fastlane
|
|
85
90
|
'add_git_tag(
|
86
91
|
grouping: "fastlane-builds",
|
87
92
|
prefix: "v",
|
93
|
+
postfix: "-RC1",
|
88
94
|
build_number: 123
|
89
95
|
)',
|
90
96
|
'# Alternatively, you can specify your own tag. Note that if you do specify a tag, all other arguments are ignored.
|
@@ -35,6 +35,7 @@ module Fastlane
|
|
35
35
|
|
36
36
|
if params[:team_id]
|
37
37
|
sett["DevelopmentTeam"] = params[:team_id]
|
38
|
+
build_configuration_list.set_setting("DEVELOPMENT_TEAM", params[:team_id])
|
38
39
|
UI.important("Set Team id to: #{params[:team_id]} for target: #{found_target[:name]}")
|
39
40
|
end
|
40
41
|
if params[:code_sign_identity]
|
@@ -23,7 +23,7 @@ module Fastlane
|
|
23
23
|
configs = project.objects.select { |obj| obj.isa == 'XCBuildConfiguration' && !obj.build_settings[identifier_key].nil? }
|
24
24
|
UI.user_error!("Info plist uses $(#{identifier_key}), but xcodeproj does not") unless configs.count > 0
|
25
25
|
|
26
|
-
configs = configs.select { |obj| obj.build_settings[info_plist_key]
|
26
|
+
configs = configs.select { |obj| resolve_path(obj.build_settings[info_plist_key], params[:xcodeproj]) == info_plist_path }
|
27
27
|
UI.user_error!("Xcodeproj doesn't have configuration with info plist #{params[:plist_path]}.") unless configs.count > 0
|
28
28
|
|
29
29
|
# For each of the build configurations, set app identifier
|
@@ -48,6 +48,7 @@ module Fastlane
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def self.resolve_path(path, xcodeproj_path)
|
51
|
+
return nil unless path
|
51
52
|
project_dir = File.dirname(xcodeproj_path)
|
52
53
|
# SRCROOT, SOURCE_ROOT and PROJECT_DIR are the same
|
53
54
|
%w{SRCROOT SOURCE_ROOT PROJECT_DIR}.each do |variable_name|
|
@@ -116,9 +116,10 @@ module Fastlane
|
|
116
116
|
selection_git_url = "Git URL"
|
117
117
|
selection_path = "Local Path"
|
118
118
|
selection_rubygems = "RubyGems.org ('#{plugin_name}' seems to not be available there)"
|
119
|
+
selection_gem_server = "Other Gem Server"
|
119
120
|
selection = UI.select(
|
120
121
|
"Seems like the plugin is not available on RubyGems, what do you want to do?",
|
121
|
-
[selection_git_url, selection_path, selection_rubygems]
|
122
|
+
[selection_git_url, selection_path, selection_rubygems, selection_gem_server]
|
122
123
|
)
|
123
124
|
|
124
125
|
if selection == selection_git_url
|
@@ -129,6 +130,9 @@ module Fastlane
|
|
129
130
|
return ", path: '#{path}'"
|
130
131
|
elsif selection == selection_rubygems
|
131
132
|
return ""
|
133
|
+
elsif selection == selection_gem_server
|
134
|
+
source_url = UI.input('Please enter the gem source URL which hosts the plugin you want to use, including the protocol (e.g. https:// or git://)')
|
135
|
+
return ", source: '#{source_url}'"
|
132
136
|
else
|
133
137
|
UI.user_error!("Unknown input #{selection}")
|
134
138
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Fastlane
|
2
|
-
VERSION = '2.82.0.beta.
|
2
|
+
VERSION = '2.82.0.beta.20180216010003'.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
|
@@ -90,7 +90,8 @@ module Spaceship
|
|
90
90
|
ready_to_submit: 'testflight.build.state.submit.ready',
|
91
91
|
ready_to_test: 'testflight.build.state.testing.ready',
|
92
92
|
export_compliance_missing: 'testflight.build.state.export.compliance.missing',
|
93
|
-
review_rejected: 'testflight.build.state.review.rejected'
|
93
|
+
review_rejected: 'testflight.build.state.review.rejected',
|
94
|
+
approved: 'testflight.build.state.review.approved'
|
94
95
|
}
|
95
96
|
|
96
97
|
# Find a Build by `build_id`.
|
@@ -155,6 +156,10 @@ module Spaceship
|
|
155
156
|
external_state == BUILD_STATES[:review_rejected]
|
156
157
|
end
|
157
158
|
|
159
|
+
def approved?
|
160
|
+
external_state == BUILD_STATES[:approved]
|
161
|
+
end
|
162
|
+
|
158
163
|
def processed?
|
159
164
|
active? || ready_to_submit? || export_compliance_missing? || review_rejected?
|
160
165
|
end
|
@@ -201,6 +206,7 @@ module Spaceship
|
|
201
206
|
|
202
207
|
def submit_for_testflight_review!
|
203
208
|
return if ready_to_test?
|
209
|
+
return if approved?
|
204
210
|
client.post_for_testflight_review(app_id: app_id, build_id: id, build: self)
|
205
211
|
end
|
206
212
|
|
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.82.0.beta.
|
4
|
+
version: 2.82.0.beta.20180216010003
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Olivier Halligon
|
@@ -25,7 +25,7 @@ authors:
|
|
25
25
|
autorequire:
|
26
26
|
bindir: bin
|
27
27
|
cert_chain: []
|
28
|
-
date: 2018-02-
|
28
|
+
date: 2018-02-16 00:00:00.000000000 Z
|
29
29
|
dependencies:
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: slack-notifier
|
@@ -309,7 +309,7 @@ dependencies:
|
|
309
309
|
requirements:
|
310
310
|
- - ">="
|
311
311
|
- !ruby/object:Gem::Version
|
312
|
-
version: 4.4.
|
312
|
+
version: 4.4.6
|
313
313
|
- - "<"
|
314
314
|
- !ruby/object:Gem::Version
|
315
315
|
version: 5.0.0
|
@@ -319,7 +319,7 @@ dependencies:
|
|
319
319
|
requirements:
|
320
320
|
- - ">="
|
321
321
|
- !ruby/object:Gem::Version
|
322
|
-
version: 4.4.
|
322
|
+
version: 4.4.6
|
323
323
|
- - "<"
|
324
324
|
- !ruby/object:Gem::Version
|
325
325
|
version: 5.0.0
|