fastlane 2.161.0 → 2.166.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +78 -78
- data/cert/lib/cert/options.rb +28 -1
- data/cert/lib/cert/runner.rb +51 -34
- data/deliver/lib/deliver/.upload_screenshots.rb.swp +0 -0
- data/deliver/lib/deliver/app_screenshot_iterator.rb +4 -4
- data/deliver/lib/deliver/module.rb +2 -0
- data/deliver/lib/deliver/options.rb +5 -5
- data/deliver/lib/deliver/queue_worker.rb +14 -29
- data/deliver/lib/deliver/upload_metadata.rb +20 -5
- data/deliver/lib/deliver/upload_screenshots.rb +28 -13
- data/fastlane/lib/fastlane/actions/.download_dsyms.rb.swp +0 -0
- data/fastlane/lib/fastlane/actions/actions_helper.rb +1 -1
- data/fastlane/lib/fastlane/actions/app_store_build_number.rb +39 -3
- data/fastlane/lib/fastlane/actions/app_store_connect_api_key.rb +9 -0
- data/fastlane/lib/fastlane/actions/appledoc.rb +1 -1
- data/fastlane/lib/fastlane/actions/check_app_store_metadata.rb +1 -0
- data/fastlane/lib/fastlane/actions/docs/capture_ios_screenshots.md +5 -1
- data/fastlane/lib/fastlane/actions/docs/sync_code_signing.md +9 -0
- data/fastlane/lib/fastlane/actions/get_certificates.rb +1 -0
- data/fastlane/lib/fastlane/actions/get_provisioning_profile.rb +1 -0
- data/fastlane/lib/fastlane/actions/import_from_git.rb +9 -1
- data/fastlane/lib/fastlane/actions/is_ci.rb +1 -1
- data/fastlane/lib/fastlane/actions/latest_testflight_build_number.rb +15 -0
- data/fastlane/lib/fastlane/actions/register_device.rb +46 -5
- data/fastlane/lib/fastlane/actions/register_devices.rb +50 -16
- data/fastlane/lib/fastlane/actions/set_changelog.rb +31 -3
- data/fastlane/lib/fastlane/actions/sync_code_signing.rb +1 -0
- data/fastlane/lib/fastlane/actions/update_fastlane.rb +24 -8
- data/fastlane/lib/fastlane/actions/upload_to_app_store.rb +3 -2
- data/fastlane/lib/fastlane/cli_tools_distributor.rb +1 -1
- data/fastlane/lib/fastlane/fast_file.rb +74 -23
- data/fastlane/lib/fastlane/plugins/template/.rubocop.yml +1 -0
- data/fastlane/lib/fastlane/swift_fastlane_function.rb +1 -1
- data/fastlane/lib/fastlane/version.rb +1 -1
- data/fastlane/swift/Deliverfile.swift +1 -1
- data/fastlane/swift/DeliverfileProtocol.swift +4 -4
- data/fastlane/swift/Fastlane.swift +119 -23
- data/fastlane/swift/Gymfile.swift +1 -1
- data/fastlane/swift/GymfileProtocol.swift +1 -1
- data/fastlane/swift/LaneFileProtocol.swift +15 -19
- data/fastlane/swift/MainProcess.swift +1 -1
- data/fastlane/swift/Matchfile.swift +1 -1
- data/fastlane/swift/MatchfileProtocol.swift +20 -4
- data/fastlane/swift/Precheckfile.swift +1 -1
- data/fastlane/swift/PrecheckfileProtocol.swift +1 -1
- data/fastlane/swift/Scanfile.swift +1 -1
- data/fastlane/swift/ScanfileProtocol.swift +5 -1
- data/fastlane/swift/Screengrabfile.swift +1 -1
- data/fastlane/swift/ScreengrabfileProtocol.swift +1 -1
- data/fastlane/swift/Snapshotfile.swift +1 -1
- data/fastlane/swift/SnapshotfileProtocol.swift +1 -1
- data/fastlane/swift/main.swift +1 -1
- data/fastlane_core/lib/fastlane_core/analytics/analytics_session.rb +6 -7
- data/fastlane_core/lib/fastlane_core/device_manager.rb +8 -4
- data/fastlane_core/lib/fastlane_core/helper.rb +10 -2
- data/fastlane_core/lib/fastlane_core/itunes_transporter.rb +3 -3
- data/fastlane_core/lib/fastlane_core/keychain_importer.rb +3 -3
- data/gym/lib/gym/generators/package_command_generator_xcode7.rb +2 -2
- data/match/lib/match/generator.rb +6 -1
- data/match/lib/match/importer.rb +63 -18
- data/match/lib/match/migrate.rb +13 -2
- data/match/lib/match/nuke.rb +65 -22
- data/match/lib/match/options.rb +33 -2
- data/match/lib/match/runner.rb +38 -10
- data/match/lib/match/spaceship_ensure.rb +27 -21
- data/match/lib/match/storage/google_cloud_storage.rb +20 -3
- data/match/lib/match/storage/s3_storage.rb +19 -3
- data/scan/lib/scan/detect_values.rb +8 -9
- data/scan/lib/scan/module.rb +4 -0
- data/scan/lib/scan/options.rb +9 -0
- data/scan/lib/scan/runner.rb +2 -1
- data/sigh/lib/assets/resign.sh +1 -1
- data/sigh/lib/sigh/download_all.rb +16 -4
- data/sigh/lib/sigh/options.rb +21 -0
- data/sigh/lib/sigh/runner.rb +83 -41
- data/snapshot/lib/assets/SnapshotHelper.swift +4 -0
- data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_base.rb +2 -1
- data/snapshot/lib/snapshot/test_command_generator.rb +1 -1
- data/snapshot/lib/snapshot/test_command_generator_base.rb +3 -1
- data/snapshot/lib/snapshot/test_command_generator_xcode_8.rb +1 -1
- data/spaceship/lib/spaceship/client.rb +9 -4
- data/spaceship/lib/spaceship/connect_api.rb +27 -0
- data/spaceship/lib/spaceship/connect_api/api_client.rb +12 -3
- data/spaceship/lib/spaceship/connect_api/client.rb +20 -7
- data/spaceship/lib/spaceship/connect_api/models/app.rb +51 -0
- data/spaceship/lib/spaceship/connect_api/models/app_screenshot.rb +3 -1
- data/spaceship/lib/spaceship/connect_api/models/beta_tester.rb +2 -1
- data/spaceship/lib/spaceship/connect_api/models/certificate.rb +42 -0
- data/spaceship/lib/spaceship/connect_api/models/custom_app_organization.rb +43 -0
- data/spaceship/lib/spaceship/connect_api/models/custom_app_user.rb +41 -0
- data/spaceship/lib/spaceship/connect_api/models/device.rb +5 -0
- data/spaceship/lib/spaceship/connect_api/models/profile.rb +7 -1
- data/spaceship/lib/spaceship/connect_api/models/user_invitation.rb +59 -0
- data/spaceship/lib/spaceship/connect_api/provisioning/provisioning.rb +45 -2
- data/spaceship/lib/spaceship/connect_api/spaceship.rb +7 -4
- data/spaceship/lib/spaceship/connect_api/testflight/testflight.rb +13 -0
- data/spaceship/lib/spaceship/connect_api/token.rb +6 -1
- data/spaceship/lib/spaceship/connect_api/tunes/tunes.rb +71 -0
- data/spaceship/lib/spaceship/connect_api/users/users.rb +40 -0
- data/supply/lib/supply.rb +1 -1
- data/supply/lib/supply/uploader.rb +1 -1
- metadata +24 -18
@@ -0,0 +1,41 @@
|
|
1
|
+
require_relative '../model'
|
2
|
+
module Spaceship
|
3
|
+
class ConnectAPI
|
4
|
+
class CustomAppUser
|
5
|
+
include Spaceship::ConnectAPI::Model
|
6
|
+
|
7
|
+
attr_accessor :apple_id
|
8
|
+
|
9
|
+
attr_mapping({
|
10
|
+
"appleId" => "apple_id"
|
11
|
+
})
|
12
|
+
|
13
|
+
def self.type
|
14
|
+
return "customAppUsers"
|
15
|
+
end
|
16
|
+
|
17
|
+
#
|
18
|
+
# API
|
19
|
+
#
|
20
|
+
|
21
|
+
def self.all(app_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
22
|
+
resps = Spaceship::ConnectAPI.get_custom_app_users(
|
23
|
+
app_id: app_id,
|
24
|
+
filter: filter,
|
25
|
+
includes: includes,
|
26
|
+
limit: nil,
|
27
|
+
sort: nil
|
28
|
+
).all_pages
|
29
|
+
return resps.flat_map(&:to_models)
|
30
|
+
end
|
31
|
+
|
32
|
+
def self.create(app_id: nil, apple_id: nil)
|
33
|
+
return Spaceship::ConnectAPI.post_custom_app_user(app_id: app_id, apple_id: apple_id).first
|
34
|
+
end
|
35
|
+
|
36
|
+
def delete!
|
37
|
+
Spaceship::ConnectAPI.delete_custom_app_user(custom_app_user_id: id)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -48,6 +48,11 @@ module Spaceship
|
|
48
48
|
resps = Spaceship::ConnectAPI.get_devices(filter: filter, includes: includes).all_pages
|
49
49
|
return resps.flat_map(&:to_models)
|
50
50
|
end
|
51
|
+
|
52
|
+
def self.create(name: nil, platform: nil, udid: nil)
|
53
|
+
resp = Spaceship::ConnectAPI.post_device(name: name, platform: platform, udid: udid)
|
54
|
+
return resp.to_models.first
|
55
|
+
end
|
51
56
|
end
|
52
57
|
end
|
53
58
|
end
|
@@ -27,7 +27,8 @@ module Spaceship
|
|
27
27
|
"expirationDate" => "expiration_date",
|
28
28
|
|
29
29
|
"bundleId" => "bundle_id",
|
30
|
-
"certificates" => "certificates"
|
30
|
+
"certificates" => "certificates",
|
31
|
+
"devices" => "devices"
|
31
32
|
})
|
32
33
|
|
33
34
|
module ProfileState
|
@@ -83,6 +84,11 @@ module Spaceship
|
|
83
84
|
return resp.to_models.first
|
84
85
|
end
|
85
86
|
|
87
|
+
def fetch_all_devices(filter: {}, includes: nil, sort: nil)
|
88
|
+
resps = Spaceship::ConnectAPI.get_devices(profile_id: id, filter: filter, includes: includes).all_pages
|
89
|
+
return resps.flat_map(&:to_models)
|
90
|
+
end
|
91
|
+
|
86
92
|
def delete!
|
87
93
|
return Spaceship::ConnectAPI.delete_profile(profile_id: id)
|
88
94
|
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
require_relative '../model'
|
2
|
+
module Spaceship
|
3
|
+
class ConnectAPI
|
4
|
+
class UserInvitation
|
5
|
+
include Spaceship::ConnectAPI::Model
|
6
|
+
|
7
|
+
attr_accessor :first_name
|
8
|
+
attr_accessor :last_name
|
9
|
+
attr_accessor :email
|
10
|
+
attr_accessor :roles
|
11
|
+
attr_accessor :all_apps_visible
|
12
|
+
attr_accessor :provisioning_allowed
|
13
|
+
|
14
|
+
attr_mapping({
|
15
|
+
"firstName" => "first_name",
|
16
|
+
"lastName" => "last_name",
|
17
|
+
"email" => "email",
|
18
|
+
"roles" => "roles",
|
19
|
+
"allAppsVisible" => "all_apps_visible",
|
20
|
+
"provisioningAllowed" => "provisioning_allowed"
|
21
|
+
})
|
22
|
+
|
23
|
+
module UserRole
|
24
|
+
ADMIN = "ADMIN"
|
25
|
+
FINANCE = "FINANCE"
|
26
|
+
TECHNICAL = "TECHNICAL"
|
27
|
+
SALES = "SALES"
|
28
|
+
MARKETING = "MARKETING"
|
29
|
+
DEVELOPER = "DEVELOPER"
|
30
|
+
ACCOUNT_HOLDER = "ACCOUNT_HOLDER"
|
31
|
+
READ_ONLY = "READ_ONLY"
|
32
|
+
APP_MANAGER = "APP_MANAGER"
|
33
|
+
ACCESS_TO_REPORTS = "ACCESS_TO_REPORTS"
|
34
|
+
CUSTOMER_SUPPORT = "CUSTOMER_SUPPORT"
|
35
|
+
end
|
36
|
+
|
37
|
+
def self.type
|
38
|
+
return "userInvitations"
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Managing invitations
|
43
|
+
#
|
44
|
+
|
45
|
+
def self.all(filter: {}, includes: nil, sort: nil)
|
46
|
+
resps = Spaceship::ConnectAPI.get_user_invitations(filter: filter, includes: includes, sort: sort).all_pages
|
47
|
+
return resps.flat_map(&:to_models)
|
48
|
+
end
|
49
|
+
|
50
|
+
def self.find(email: nil, includes: nil)
|
51
|
+
return all(filter: { email: email }, includes: includes)
|
52
|
+
end
|
53
|
+
|
54
|
+
def delete!
|
55
|
+
Spaceship::ConnectAPI.delete_user_invitation(user_invitation_id: id)
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -36,13 +36,56 @@ module Spaceship
|
|
36
36
|
provisioning_request_client.get("certificates", params)
|
37
37
|
end
|
38
38
|
|
39
|
+
def get_certificate(certificate_id: nil, includes: nil)
|
40
|
+
params = provisioning_request_client.build_params(filter: nil, includes: includes, limit: nil, sort: nil)
|
41
|
+
provisioning_request_client.get("certificates/#{certificate_id}", params)
|
42
|
+
end
|
43
|
+
|
44
|
+
def post_certificate(attributes: {})
|
45
|
+
body = {
|
46
|
+
data: {
|
47
|
+
attributes: attributes,
|
48
|
+
type: "certificates"
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
provisioning_request_client.post("certificates", body)
|
53
|
+
end
|
54
|
+
|
55
|
+
def delete_certificate(certificate_id: nil)
|
56
|
+
raise "Certificate id is nil" if certificate_id.nil?
|
57
|
+
|
58
|
+
provisioning_request_client.delete("certificates/#{certificate_id}")
|
59
|
+
end
|
60
|
+
|
39
61
|
#
|
40
62
|
# devices
|
41
63
|
#
|
42
64
|
|
43
|
-
def get_devices(filter: {}, includes: nil, limit: nil, sort: nil)
|
65
|
+
def get_devices(profile_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
44
66
|
params = provisioning_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
|
45
|
-
|
67
|
+
if profile_id.nil?
|
68
|
+
provisioning_request_client.get("devices", params)
|
69
|
+
else
|
70
|
+
provisioning_request_client.get("profiles/#{profile_id}/devices", params)
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
def post_device(name: nil, platform: nil, udid: nil)
|
75
|
+
attributes = {
|
76
|
+
name: name,
|
77
|
+
platform: platform,
|
78
|
+
udid: udid
|
79
|
+
}
|
80
|
+
|
81
|
+
body = {
|
82
|
+
data: {
|
83
|
+
attributes: attributes,
|
84
|
+
type: "devices"
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
provisioning_request_client.post("devices", body)
|
46
89
|
end
|
47
90
|
|
48
91
|
#
|
@@ -44,20 +44,23 @@ module Spaceship
|
|
44
44
|
|
45
45
|
# Initializes client with Apple's App Store Connect JWT auth key.
|
46
46
|
#
|
47
|
-
# This method will automatically use the
|
47
|
+
# This method will automatically use the arguments from environment
|
48
48
|
# variables if not given.
|
49
49
|
#
|
50
|
-
#
|
50
|
+
# The key_id, issuer_id and either filepath or key are needed to authenticate.
|
51
51
|
#
|
52
52
|
# @param key_id (String) (optional): The key id
|
53
53
|
# @param issuer_id (String) (optional): The issuer id
|
54
54
|
# @param filepath (String) (optional): The filepath
|
55
|
+
# @param key (String) (optional): The key
|
56
|
+
# @param duration (Integer) (optional): How long this session should last
|
57
|
+
# @param in_house (Boolean) (optional): Whether this session is an Enterprise one
|
55
58
|
#
|
56
59
|
# @raise InvalidUserCredentialsError: raised if authentication failed
|
57
60
|
#
|
58
61
|
# @return (Spaceship::ConnectAPI::Client) The client the login method was called for
|
59
|
-
def auth(key_id: nil, issuer_id: nil, filepath: nil)
|
60
|
-
@client = ConnectAPI::Client.auth(key_id: key_id, issuer_id: issuer_id, filepath: filepath)
|
62
|
+
def auth(key_id: nil, issuer_id: nil, filepath: nil, key: nil, duration: nil, in_house: nil)
|
63
|
+
@client = ConnectAPI::Client.auth(key_id: key_id, issuer_id: issuer_id, filepath: filepath, key: key, duration: duration, in_house: in_house)
|
61
64
|
end
|
62
65
|
|
63
66
|
# Authenticates with Apple's web services. This method has to be called once
|
@@ -277,6 +277,19 @@ module Spaceship
|
|
277
277
|
test_flight_request_client.delete("betaTesters/#{beta_tester_id}/relationships/betaGroups", nil, body)
|
278
278
|
end
|
279
279
|
|
280
|
+
def delete_beta_testers_from_app(beta_tester_ids: [], app_id: nil)
|
281
|
+
body = {
|
282
|
+
data: beta_tester_ids.map do |id|
|
283
|
+
{
|
284
|
+
type: "betaTesters",
|
285
|
+
id: id
|
286
|
+
}
|
287
|
+
end
|
288
|
+
}
|
289
|
+
|
290
|
+
test_flight_request_client.delete("apps/#{app_id}/relationships/betaTesters", nil, body)
|
291
|
+
end
|
292
|
+
|
280
293
|
#
|
281
294
|
# betaTesterMetrics
|
282
295
|
#
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'jwt'
|
2
|
+
require 'base64'
|
2
3
|
require 'openssl'
|
3
4
|
|
4
5
|
# extract pem from .p8
|
@@ -39,7 +40,7 @@ module Spaceship
|
|
39
40
|
self.create(json)
|
40
41
|
end
|
41
42
|
|
42
|
-
def self.create(key_id: nil, issuer_id: nil, filepath: nil, key: nil, duration: nil, in_house: nil)
|
43
|
+
def self.create(key_id: nil, issuer_id: nil, filepath: nil, key: nil, is_key_content_base64: false, duration: nil, in_house: nil)
|
43
44
|
key_id ||= ENV['SPACESHIP_CONNECT_API_KEY_ID']
|
44
45
|
issuer_id ||= ENV['SPACESHIP_CONNECT_API_ISSUER_ID']
|
45
46
|
filepath ||= ENV['SPACESHIP_CONNECT_API_KEY_FILEPATH']
|
@@ -51,6 +52,10 @@ module Spaceship
|
|
51
52
|
key ||= ENV['SPACESHIP_CONNECT_API_KEY']
|
52
53
|
key ||= File.binread(filepath)
|
53
54
|
|
55
|
+
if !key.nil? && is_key_content_base64
|
56
|
+
key = Base64.decode64(key)
|
57
|
+
end
|
58
|
+
|
54
59
|
self.new(
|
55
60
|
key_id: key_id,
|
56
61
|
issuer_id: issuer_id,
|
@@ -890,6 +890,77 @@ module Spaceship
|
|
890
890
|
tunes_request_client.post("appStoreVersionReleaseRequests", body)
|
891
891
|
end
|
892
892
|
|
893
|
+
#
|
894
|
+
# customAppUsers
|
895
|
+
#
|
896
|
+
|
897
|
+
def get_custom_app_users(app_id: nil, filter: nil, includes: nil, limit: nil, sort: nil)
|
898
|
+
params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
|
899
|
+
tunes_request_client.get("apps/#{app_id}/customAppUsers", params)
|
900
|
+
end
|
901
|
+
|
902
|
+
def post_custom_app_user(app_id: nil, apple_id: nil)
|
903
|
+
body = {
|
904
|
+
data: {
|
905
|
+
type: "customAppUsers",
|
906
|
+
attributes: {
|
907
|
+
appleId: apple_id
|
908
|
+
},
|
909
|
+
relationships: {
|
910
|
+
app: {
|
911
|
+
data: {
|
912
|
+
type: "apps",
|
913
|
+
id: app_id
|
914
|
+
}
|
915
|
+
}
|
916
|
+
}
|
917
|
+
}
|
918
|
+
}
|
919
|
+
|
920
|
+
tunes_request_client.post("customAppUsers", body)
|
921
|
+
end
|
922
|
+
|
923
|
+
def delete_custom_app_user(custom_app_user_id: nil)
|
924
|
+
params = tunes_request_client.build_params(filter: nil, includes: nil, limit: nil, sort: nil)
|
925
|
+
tunes_request_client.delete("customAppUsers/#{custom_app_user_id}", params)
|
926
|
+
end
|
927
|
+
|
928
|
+
#
|
929
|
+
# customOrganizationUsers
|
930
|
+
#
|
931
|
+
|
932
|
+
def get_custom_app_organization(app_id: nil, filter: nil, includes: nil, limit: nil, sort: nil)
|
933
|
+
params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
|
934
|
+
tunes_request_client.get("apps/#{app_id}/customAppOrganizations", params)
|
935
|
+
end
|
936
|
+
|
937
|
+
def post_custom_app_organization(app_id: nil, device_enrollment_program_id: nil, name: nil)
|
938
|
+
body = {
|
939
|
+
data: {
|
940
|
+
type: "customAppOrganizations",
|
941
|
+
attributes: {
|
942
|
+
deviceEnrollmentProgramId: device_enrollment_program_id,
|
943
|
+
name: name
|
944
|
+
},
|
945
|
+
relationships: {
|
946
|
+
app: {
|
947
|
+
data: {
|
948
|
+
type: "apps",
|
949
|
+
id: app_id
|
950
|
+
}
|
951
|
+
}
|
952
|
+
}
|
953
|
+
}
|
954
|
+
}
|
955
|
+
|
956
|
+
tunes_request_client.post("customAppOrganizations", body)
|
957
|
+
end
|
958
|
+
|
959
|
+
def delete_custom_app_organization(custom_app_organization_id: nil)
|
960
|
+
params = tunes_request_client.build_params(filter: nil, includes: nil, limit: nil, sort: nil)
|
961
|
+
tunes_request_client.delete("customAppOrganizations/#{custom_app_organization_id}", params)
|
962
|
+
end
|
963
|
+
|
893
964
|
#
|
894
965
|
# idfaDeclarations
|
895
966
|
#
|
@@ -17,11 +17,18 @@ module Spaceship
|
|
17
17
|
# users
|
18
18
|
#
|
19
19
|
|
20
|
+
# Get list of users
|
20
21
|
def get_users(filter: {}, includes: nil, limit: nil, sort: nil)
|
21
22
|
params = users_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
|
22
23
|
users_request_client.get("users", params)
|
23
24
|
end
|
24
25
|
|
26
|
+
# Delete existing user
|
27
|
+
def delete_user(user_id: nil)
|
28
|
+
users_request_client.delete("users/#{user_id}")
|
29
|
+
end
|
30
|
+
|
31
|
+
# Change app permissions for user
|
25
32
|
def add_user_visible_apps(user_id: nil, app_ids: nil)
|
26
33
|
body = {
|
27
34
|
data: app_ids.map do |app_id|
|
@@ -34,6 +41,39 @@ module Spaceship
|
|
34
41
|
|
35
42
|
users_request_client.post("users/#{user_id}/relationships/visibleApps", body)
|
36
43
|
end
|
44
|
+
|
45
|
+
#
|
46
|
+
# invitations (invited users)
|
47
|
+
#
|
48
|
+
|
49
|
+
# Get all invited users (not yet accepted)
|
50
|
+
def get_user_invitations(filter: {}, includes: nil, limit: nil, sort: nil)
|
51
|
+
params = users_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
|
52
|
+
users_request_client.get("userInvitations", params)
|
53
|
+
end
|
54
|
+
|
55
|
+
# Invite new users to App Store Connect
|
56
|
+
def post_user_invitation(email: nil, first_name: nil, last_name: nil, roles: [], provisioning_allowed: nil, all_apps_visible: nil)
|
57
|
+
body = {
|
58
|
+
data: {
|
59
|
+
type: "userInvitations",
|
60
|
+
attributes: {
|
61
|
+
email: email,
|
62
|
+
firstName: first_name,
|
63
|
+
lastName: last_name,
|
64
|
+
roles: roles,
|
65
|
+
provisioningAllowed: provisioning_allowed,
|
66
|
+
allAppsVisible: all_apps_visible
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
users_request_client.post("userInvitations", body)
|
71
|
+
end
|
72
|
+
|
73
|
+
# Remove invited user from team (not yet accepted)
|
74
|
+
def delete_user_invitation(user_invitation_id: nil)
|
75
|
+
users_request_client.delete("userInvitations/#{user_invitation_id}")
|
76
|
+
end
|
37
77
|
end
|
38
78
|
end
|
39
79
|
end
|
data/supply/lib/supply.rb
CHANGED
@@ -16,7 +16,7 @@ module Supply
|
|
16
16
|
end
|
17
17
|
|
18
18
|
AVAILABLE_METADATA_FIELDS = %w(title short_description full_description video)
|
19
|
-
IMAGES_TYPES = %w(featureGraphic icon
|
19
|
+
IMAGES_TYPES = %w(featureGraphic icon tvBanner) # https://developers.google.com/android-publisher/api-ref/rest/v3/AppImageType
|
20
20
|
SCREENSHOT_TYPES = %w(phoneScreenshots sevenInchScreenshots tenInchScreenshots tvScreenshots wearScreenshots)
|
21
21
|
|
22
22
|
IMAGES_FOLDER_NAME = "images"
|
@@ -111,7 +111,7 @@ module Supply
|
|
111
111
|
releases = track.releases
|
112
112
|
|
113
113
|
releases = releases.select { |r| r.status == status } if status
|
114
|
-
releases = releases.select { |r| r.version_codes.map(&:to_s).include?(version_code.to_s) } if version_code
|
114
|
+
releases = releases.select { |r| (r.version_codes || []).map(&:to_s).include?(version_code.to_s) } if version_code
|
115
115
|
|
116
116
|
if releases.size > 1
|
117
117
|
UI.user_error!("More than one release found in this track. Please specify with the :version_code option to select a release.")
|
metadata
CHANGED
@@ -1,35 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.166.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
-
|
9
|
-
-
|
7
|
+
- Andrew McBurney
|
8
|
+
- Joshua Liebowitz
|
9
|
+
- Max Ott
|
10
10
|
- Josh Holtz
|
11
11
|
- Jérôme Lacoste
|
12
|
+
- Stefan Natchev
|
13
|
+
- Olivier Halligon
|
14
|
+
- Jorge Revuelta H
|
15
|
+
- Jan Piotrowski
|
16
|
+
- Helmut Januschka
|
17
|
+
- Matthew Ellis
|
18
|
+
- Manu Wallner
|
19
|
+
- Aaron Brager
|
12
20
|
- Jimmy Dee
|
13
21
|
- Maksym Grebenets
|
14
|
-
-
|
15
|
-
- Helmut Januschka
|
22
|
+
- Daniel Jankowski
|
16
23
|
- Luka Mirosevic
|
17
|
-
- Olivier Halligon
|
18
|
-
- Jorge Revuelta H
|
19
|
-
- Max Ott
|
20
|
-
- Felix Krause
|
21
24
|
- Danielle Tomlinson
|
22
|
-
- Daniel Jankowski
|
23
25
|
- Fumiya Nakamura
|
24
|
-
-
|
25
|
-
-
|
26
|
-
-
|
27
|
-
- Andrew McBurney
|
28
|
-
- Stefan Natchev
|
26
|
+
- Iulian Onofrei
|
27
|
+
- Felix Krause
|
28
|
+
- Kohki Miki
|
29
29
|
autorequire:
|
30
30
|
bindir: bin
|
31
31
|
cert_chain: []
|
32
|
-
date: 2020-
|
32
|
+
date: 2020-11-02 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: slack-notifier
|
@@ -943,6 +943,7 @@ files:
|
|
943
943
|
- deliver/lib/assets/ScreenshotsHelp
|
944
944
|
- deliver/lib/assets/summary.html.erb
|
945
945
|
- deliver/lib/deliver.rb
|
946
|
+
- deliver/lib/deliver/.upload_screenshots.rb.swp
|
946
947
|
- deliver/lib/deliver/app_screenshot.rb
|
947
948
|
- deliver/lib/deliver/app_screenshot_iterator.rb
|
948
949
|
- deliver/lib/deliver/commands_generator.rb
|
@@ -983,6 +984,7 @@ files:
|
|
983
984
|
- fastlane/lib/fastlane/.erb_template_helper.rb.swp
|
984
985
|
- fastlane/lib/fastlane/action.rb
|
985
986
|
- fastlane/lib/fastlane/action_collector.rb
|
987
|
+
- fastlane/lib/fastlane/actions/.download_dsyms.rb.swp
|
986
988
|
- fastlane/lib/fastlane/actions/.git_commit.rb.swp
|
987
989
|
- fastlane/lib/fastlane/actions/README.md
|
988
990
|
- fastlane/lib/fastlane/actions/actions_helper.rb
|
@@ -1654,6 +1656,8 @@ files:
|
|
1654
1656
|
- spaceship/lib/spaceship/connect_api/models/bundle_id.rb
|
1655
1657
|
- spaceship/lib/spaceship/connect_api/models/bundle_id_capability.rb
|
1656
1658
|
- spaceship/lib/spaceship/connect_api/models/certificate.rb
|
1659
|
+
- spaceship/lib/spaceship/connect_api/models/custom_app_organization.rb
|
1660
|
+
- spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
|
1657
1661
|
- spaceship/lib/spaceship/connect_api/models/device.rb
|
1658
1662
|
- spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb
|
1659
1663
|
- spaceship/lib/spaceship/connect_api/models/pre_release_version.rb
|
@@ -1662,6 +1666,7 @@ files:
|
|
1662
1666
|
- spaceship/lib/spaceship/connect_api/models/sandbox_tester.rb
|
1663
1667
|
- spaceship/lib/spaceship/connect_api/models/territory.rb
|
1664
1668
|
- spaceship/lib/spaceship/connect_api/models/user.rb
|
1669
|
+
- spaceship/lib/spaceship/connect_api/models/user_invitation.rb
|
1665
1670
|
- spaceship/lib/spaceship/connect_api/provisioning/client.rb
|
1666
1671
|
- spaceship/lib/spaceship/connect_api/provisioning/provisioning.rb
|
1667
1672
|
- spaceship/lib/spaceship/connect_api/response.rb
|
@@ -1825,7 +1830,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1825
1830
|
- !ruby/object:Gem::Version
|
1826
1831
|
version: '0'
|
1827
1832
|
requirements: []
|
1828
|
-
|
1833
|
+
rubyforge_project:
|
1834
|
+
rubygems_version: 2.6.14.4
|
1829
1835
|
signing_key:
|
1830
1836
|
specification_version: 4
|
1831
1837
|
summary: The easiest way to automate beta deployments and releases for your iOS and
|