fastlane_core 0.46.1 → 0.46.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fastlane_core/itunes_transporter.rb +25 -14
- data/lib/fastlane_core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57c9dfb3493b58bd5d74cca8e791effe06c970b8
|
4
|
+
data.tar.gz: 829ed1c0dfb471b3f3f38f865447a6ddd4561628
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e522176c56c7d91cc0f6b802c52d829b5727f588aca609c32b818c44698fb690ff192ca2f09ace14e6b8ffa4506a859fae1135ef7aa977859d256b466244efe
|
7
|
+
data.tar.gz: 9ca1c53365ce1237e82159b588df7341233de8ed6bffa6a578d1b9dc6ff6e8de0902349d2fd6448d10e1a8ae2c3b12592d218ab715cf250768aa30ba407f9f3d
|
@@ -133,7 +133,7 @@ module FastlaneCore
|
|
133
133
|
|
134
134
|
# Generates commands and executes the iTMSTransporter through the shell script it provides by the same name
|
135
135
|
class ShellScriptTransporterExecutor < TransporterExecutor
|
136
|
-
def build_upload_command(username, password, source = "/tmp")
|
136
|
+
def build_upload_command(username, password, source = "/tmp", provider_short_name = "")
|
137
137
|
[
|
138
138
|
'"' + Helper.transporter_path + '"',
|
139
139
|
"-m upload",
|
@@ -142,19 +142,21 @@ module FastlaneCore
|
|
142
142
|
"-f '#{source}'",
|
143
143
|
ENV["DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS"], # that's here, because the user might overwrite the -t option
|
144
144
|
"-t 'Signiant'",
|
145
|
-
"-k 100000"
|
146
|
-
|
145
|
+
"-k 100000",
|
146
|
+
("-itc_provider #{provider_short_name}" unless provider_short_name.to_s.empty?)
|
147
|
+
].compact.join(' ')
|
147
148
|
end
|
148
149
|
|
149
|
-
def build_download_command(username, password, apple_id, destination = "/tmp")
|
150
|
+
def build_download_command(username, password, apple_id, destination = "/tmp", provider_short_name = "")
|
150
151
|
[
|
151
152
|
'"' + Helper.transporter_path + '"',
|
152
153
|
"-m lookupMetadata",
|
153
154
|
"-u \"#{username}\"",
|
154
155
|
"-p #{shell_escaped_password(password)}",
|
155
156
|
"-apple_id #{apple_id}",
|
156
|
-
"-destination '#{destination}'"
|
157
|
-
|
157
|
+
"-destination '#{destination}'",
|
158
|
+
("-itc_provider #{provider_short_name}" unless provider_short_name.to_s.empty?)
|
159
|
+
].compact.join(' ')
|
158
160
|
end
|
159
161
|
|
160
162
|
def handle_error(password)
|
@@ -190,7 +192,7 @@ module FastlaneCore
|
|
190
192
|
# Generates commands and executes the iTMSTransporter by invoking its Java app directly, to avoid the crazy parameter
|
191
193
|
# escaping problems in its accompanying shell script.
|
192
194
|
class JavaTransporterExecutor < TransporterExecutor
|
193
|
-
def build_upload_command(username, password, source = "/tmp")
|
195
|
+
def build_upload_command(username, password, source = "/tmp", provider_short_name = "")
|
194
196
|
[
|
195
197
|
Helper.transporter_java_executable_path.shellescape,
|
196
198
|
"-Djava.ext.dirs=#{Helper.transporter_java_ext_dir.shellescape}",
|
@@ -209,11 +211,12 @@ module FastlaneCore
|
|
209
211
|
ENV["DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS"], # that's here, because the user might overwrite the -t option
|
210
212
|
'-t Signiant',
|
211
213
|
'-k 100000',
|
214
|
+
("-itc_provider #{provider_short_name}" unless provider_short_name.to_s.empty?),
|
212
215
|
'2>&1' # cause stderr to be written to stdout
|
213
216
|
].compact.join(' ') # compact gets rid of the possibly nil ENV value
|
214
217
|
end
|
215
218
|
|
216
|
-
def build_download_command(username, password, apple_id, destination = "/tmp")
|
219
|
+
def build_download_command(username, password, apple_id, destination = "/tmp", provider_short_name = "")
|
217
220
|
[
|
218
221
|
Helper.transporter_java_executable_path.shellescape,
|
219
222
|
"-Djava.ext.dirs=#{Helper.transporter_java_ext_dir.shellescape}",
|
@@ -230,8 +233,9 @@ module FastlaneCore
|
|
230
233
|
"-p #{password.shellescape}",
|
231
234
|
"-apple_id #{apple_id.shellescape}",
|
232
235
|
"-destination #{destination.shellescape}",
|
236
|
+
("-itc_provider #{provider_short_name}" unless provider_short_name.to_s.empty?),
|
233
237
|
'2>&1' # cause stderr to be written to stdout
|
234
|
-
].join(' ')
|
238
|
+
].compact.join(' ')
|
235
239
|
end
|
236
240
|
|
237
241
|
def handle_error(password)
|
@@ -270,7 +274,13 @@ module FastlaneCore
|
|
270
274
|
# @param use_shell_script if true, forces use of the iTMSTransporter shell script.
|
271
275
|
# if false, allows a direct call to the iTMSTransporter Java app (preferred).
|
272
276
|
# see: https://github.com/fastlane/fastlane/pull/4003
|
273
|
-
|
277
|
+
# @param provider_short_name The provider short name to be given to the iTMSTransporter to identify the
|
278
|
+
# correct team for this work. The provider short name is usually your Developer
|
279
|
+
# Portal team ID, but in certain cases it is different!
|
280
|
+
# see: https://github.com/fastlane/fastlane/issues/1524#issuecomment-196370628
|
281
|
+
# for more information about how to use the iTMSTransporter to list your provider
|
282
|
+
# short names
|
283
|
+
def initialize(user = nil, password = nil, use_shell_script = false, provider_short_name = nil)
|
274
284
|
# Xcode 6.x doesn't have the same iTMSTransporter Java setup as later Xcode versions, so
|
275
285
|
# we can't default to using the better direct Java invocation strategy for those versions.
|
276
286
|
use_shell_script ||= Helper.is_mac? && Helper.xcode_version.start_with?('6.')
|
@@ -292,6 +302,7 @@ module FastlaneCore
|
|
292
302
|
end
|
293
303
|
|
294
304
|
@transporter_executor = use_shell_script ? ShellScriptTransporterExecutor.new : JavaTransporterExecutor.new
|
305
|
+
@provider_short_name = provider_short_name
|
295
306
|
end
|
296
307
|
|
297
308
|
# Downloads the latest version of the app metadata package from iTC.
|
@@ -304,8 +315,8 @@ module FastlaneCore
|
|
304
315
|
dir ||= "/tmp"
|
305
316
|
|
306
317
|
UI.message("Going to download app metadata from iTunes Connect")
|
307
|
-
command = @transporter_executor.build_download_command(@user, @password, app_id, dir)
|
308
|
-
UI.verbose(@transporter_executor.build_download_command(@user, 'YourPassword', app_id, dir))
|
318
|
+
command = @transporter_executor.build_download_command(@user, @password, app_id, dir, @provider_short_name)
|
319
|
+
UI.verbose(@transporter_executor.build_download_command(@user, 'YourPassword', app_id, dir, @provider_short_name))
|
309
320
|
|
310
321
|
begin
|
311
322
|
result = @transporter_executor.execute(command, ItunesTransporter.hide_transporter_output?)
|
@@ -340,8 +351,8 @@ module FastlaneCore
|
|
340
351
|
UI.message("Going to upload updated app to iTunes Connect")
|
341
352
|
UI.success("This might take a few minutes, please don't interrupt the script")
|
342
353
|
|
343
|
-
command = @transporter_executor.build_upload_command(@user, @password, actual_dir)
|
344
|
-
UI.verbose(@transporter_executor.build_upload_command(@user, 'YourPassword', actual_dir))
|
354
|
+
command = @transporter_executor.build_upload_command(@user, @password, actual_dir, @provider_short_name)
|
355
|
+
UI.verbose(@transporter_executor.build_upload_command(@user, 'YourPassword', actual_dir, @provider_short_name))
|
345
356
|
|
346
357
|
begin
|
347
358
|
result = @transporter_executor.execute(command, ItunesTransporter.hide_transporter_output?)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.46.
|
4
|
+
version: 0.46.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
@@ -385,7 +385,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
385
385
|
version: '0'
|
386
386
|
requirements: []
|
387
387
|
rubyforge_project:
|
388
|
-
rubygems_version: 2.4.
|
388
|
+
rubygems_version: 2.4.5.1
|
389
389
|
signing_key:
|
390
390
|
specification_version: 4
|
391
391
|
summary: Contains all shared code/dependencies of the fastlane.tools
|