fastlane 2.163.0 → 2.168.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +80 -80
- data/cert/lib/cert/options.rb +1 -1
- data/cert/lib/cert/runner.rb +2 -2
- data/deliver/lib/deliver/app_screenshot.rb +6 -2
- data/deliver/lib/deliver/queue_worker.rb +14 -29
- data/deliver/lib/deliver/upload_metadata.rb +7 -2
- data/deliver/lib/deliver/upload_screenshots.rb +3 -5
- 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/add_git_tag.rb +9 -2
- data/fastlane/lib/fastlane/actions/appledoc.rb +1 -1
- 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/import_from_git.rb +9 -1
- data/fastlane/lib/fastlane/actions/is_ci.rb +1 -1
- data/fastlane/lib/fastlane/actions/register_devices.rb +4 -1
- data/fastlane/lib/fastlane/actions/set_changelog.rb +31 -3
- data/fastlane/lib/fastlane/actions/slather.rb +2 -2
- data/fastlane/lib/fastlane/actions/spm.rb +6 -0
- data/fastlane/lib/fastlane/actions/update_fastlane.rb +29 -8
- data/fastlane/lib/fastlane/actions/upload_to_app_store.rb +3 -3
- data/fastlane/lib/fastlane/cli_tools_distributor.rb +2 -2
- data/fastlane/lib/fastlane/fast_file.rb +74 -23
- data/fastlane/lib/fastlane/features.rb +1 -1
- data/fastlane/lib/fastlane/plugins/template/.rubocop.yml +2 -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 +1 -1
- data/fastlane/swift/Fastfile.swift +1 -1
- data/fastlane/swift/Fastlane.swift +37 -16
- data/fastlane/swift/Gymfile.swift +1 -1
- data/fastlane/swift/GymfileProtocol.swift +1 -1
- data/fastlane/swift/LaneFileProtocol.swift +2 -2
- data/fastlane/swift/MainProcess.swift +2 -0
- data/fastlane/swift/Matchfile.swift +1 -1
- data/fastlane/swift/MatchfileProtocol.swift +8 -4
- data/fastlane/swift/Precheckfile.swift +1 -1
- data/fastlane/swift/PrecheckfileProtocol.swift +1 -1
- data/fastlane/swift/Runner.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/SocketClient.swift +1 -1
- data/fastlane_core/lib/fastlane_core/cert_checker.rb +12 -7
- data/fastlane_core/lib/fastlane_core/device_manager.rb +8 -4
- data/fastlane_core/lib/fastlane_core/helper.rb +11 -3
- data/fastlane_core/lib/fastlane_core/itunes_transporter.rb +3 -3
- data/fastlane_core/lib/fastlane_core/keychain_importer.rb +1 -1
- data/fastlane_core/lib/fastlane_core/provisioning_profile.rb +3 -1
- data/fastlane_core/lib/fastlane_core/ui/disable_colors.rb +8 -0
- data/gym/lib/gym/code_signing_mapping.rb +1 -1
- data/match/lib/match/importer.rb +33 -21
- data/match/lib/match/module.rb +1 -1
- data/match/lib/match/nuke.rb +9 -5
- data/match/lib/match/options.rb +8 -2
- data/pilot/lib/pilot/build_manager.rb +9 -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 +4 -3
- data/sigh/lib/assets/resign.sh +1 -1
- data/sigh/lib/sigh/runner.rb +4 -4
- 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/connect_api.rb +2 -0
- data/spaceship/lib/spaceship/connect_api/client.rb +7 -4
- data/spaceship/lib/spaceship/connect_api/models/.app.rb.swp +0 -0
- data/spaceship/lib/spaceship/connect_api/models/.app_screenshot.rb.swp +0 -0
- data/spaceship/lib/spaceship/connect_api/models/.build.rb.swp +0 -0
- data/spaceship/lib/spaceship/connect_api/models/age_rating_declaration.rb +3 -2
- data/spaceship/lib/spaceship/connect_api/models/app.rb +127 -51
- data/spaceship/lib/spaceship/connect_api/models/app_info.rb +15 -10
- data/spaceship/lib/spaceship/connect_api/models/app_info_localization.rb +6 -4
- data/spaceship/lib/spaceship/connect_api/models/app_preview.rb +15 -11
- data/spaceship/lib/spaceship/connect_api/models/app_preview_set.rb +13 -9
- data/spaceship/lib/spaceship/connect_api/models/app_screenshot.rb +9 -7
- data/spaceship/lib/spaceship/connect_api/models/app_screenshot_set.rb +15 -11
- data/spaceship/lib/spaceship/connect_api/models/app_store_review_attachment.rb +7 -5
- data/spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb +6 -4
- data/spaceship/lib/spaceship/connect_api/models/app_store_version.rb +54 -36
- data/spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb +21 -14
- data/spaceship/lib/spaceship/connect_api/models/app_store_version_submission.rb +3 -2
- data/spaceship/lib/spaceship/connect_api/models/beta_app_review_submission.rb +3 -2
- data/spaceship/lib/spaceship/connect_api/models/beta_feedback.rb +6 -4
- data/spaceship/lib/spaceship/connect_api/models/beta_group.rb +12 -2
- data/spaceship/lib/spaceship/connect_api/models/beta_tester.rb +12 -8
- data/spaceship/lib/spaceship/connect_api/models/build.rb +24 -16
- data/spaceship/lib/spaceship/connect_api/models/build_delivery.rb +3 -2
- data/spaceship/lib/spaceship/connect_api/models/bundle_id.rb +9 -6
- data/spaceship/lib/spaceship/connect_api/models/bundle_id_capability.rb +6 -4
- data/spaceship/lib/spaceship/connect_api/models/certificate.rb +12 -8
- 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 +6 -4
- data/spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb +6 -4
- data/spaceship/lib/spaceship/connect_api/models/profile.rb +12 -8
- data/spaceship/lib/spaceship/connect_api/models/reset_ratings_request.rb +3 -2
- data/spaceship/lib/spaceship/connect_api/models/sandbox_tester.rb +9 -6
- data/spaceship/lib/spaceship/connect_api/models/territory.rb +3 -2
- data/spaceship/lib/spaceship/connect_api/models/user.rb +6 -4
- data/spaceship/lib/spaceship/connect_api/models/user_invitation.rb +9 -6
- data/spaceship/lib/spaceship/connect_api/spaceship.rb +7 -4
- data/spaceship/lib/spaceship/connect_api/testflight/testflight.rb +12 -0
- data/spaceship/lib/spaceship/connect_api/tunes/tunes.rb +71 -0
- data/spaceship/lib/spaceship/tunes/iap_detail.rb +1 -1
- data/spaceship/lib/spaceship/tunes/tunes_client.rb +2 -2
- data/supply/lib/supply.rb +1 -1
- data/supply/lib/supply/options.rb +1 -1
- data/supply/lib/supply/uploader.rb +4 -3
- metadata +24 -20
- data/fastlane/lib/fastlane/actions/.register_device.rb.swp +0 -0
- data/fastlane/lib/fastlane/actions/.register_devices.rb.swp +0 -0
@@ -39,32 +39,37 @@ module Spaceship
|
|
39
39
|
# API
|
40
40
|
#
|
41
41
|
|
42
|
-
def self.all(app_store_version_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
43
|
-
|
42
|
+
def self.all(client: nil, app_store_version_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
43
|
+
client ||= Spaceship::ConnectAPI
|
44
|
+
resp = client.get_app_store_version_localizations(app_store_version_id: app_store_version_id, filter: filter, includes: includes, limit: limit, sort: sort)
|
44
45
|
return resp.to_models
|
45
46
|
end
|
46
47
|
|
47
|
-
def update(attributes: nil)
|
48
|
+
def update(client: nil, attributes: nil)
|
49
|
+
client ||= Spaceship::ConnectAPI
|
48
50
|
attributes = reverse_attr_mapping(attributes)
|
49
|
-
|
51
|
+
client.patch_app_store_version_localization(app_store_version_localization_id: id, attributes: attributes)
|
50
52
|
end
|
51
53
|
|
52
|
-
def delete!(filter: {}, includes: nil, limit: nil, sort: nil)
|
53
|
-
Spaceship::ConnectAPI
|
54
|
+
def delete!(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
55
|
+
client ||= Spaceship::ConnectAPI
|
56
|
+
client.delete_app_store_version_localization(app_store_version_localization_id: id)
|
54
57
|
end
|
55
58
|
|
56
59
|
#
|
57
60
|
# App Preview Sets
|
58
61
|
#
|
59
62
|
|
60
|
-
def get_app_preview_sets(filter: {}, includes: "appPreviews", limit: nil, sort: nil)
|
63
|
+
def get_app_preview_sets(client: nil, filter: {}, includes: "appPreviews", limit: nil, sort: nil)
|
64
|
+
client ||= Spaceship::ConnectAPI
|
61
65
|
filter ||= {}
|
62
66
|
filter["appStoreVersionLocalization"] = id
|
63
|
-
return Spaceship::ConnectAPI::AppPreviewSet.all(filter: filter, includes: includes, limit: limit, sort: sort)
|
67
|
+
return Spaceship::ConnectAPI::AppPreviewSet.all(client: client, filter: filter, includes: includes, limit: limit, sort: sort)
|
64
68
|
end
|
65
69
|
|
66
|
-
def create_app_preview_set(attributes: nil)
|
67
|
-
|
70
|
+
def create_app_preview_set(client: nil, attributes: nil)
|
71
|
+
client ||= Spaceship::ConnectAPI
|
72
|
+
resp = client.post_app_preview_set(app_store_version_localization_id: id, attributes: attributes)
|
68
73
|
return resp.to_models.first
|
69
74
|
end
|
70
75
|
|
@@ -72,12 +77,14 @@ module Spaceship
|
|
72
77
|
# App Screenshot Sets
|
73
78
|
#
|
74
79
|
|
75
|
-
def get_app_screenshot_sets(filter: {}, includes: "appScreenshots", limit: nil, sort: nil)
|
76
|
-
|
80
|
+
def get_app_screenshot_sets(client: nil, filter: {}, includes: "appScreenshots", limit: nil, sort: nil)
|
81
|
+
client ||= Spaceship::ConnectAPI
|
82
|
+
return Spaceship::ConnectAPI::AppScreenshotSet.all(client: client, app_store_version_localization_id: id, filter: filter, includes: includes, limit: limit, sort: sort)
|
77
83
|
end
|
78
84
|
|
79
|
-
def create_app_screenshot_set(attributes: nil)
|
80
|
-
|
85
|
+
def create_app_screenshot_set(client: nil, attributes: nil)
|
86
|
+
client ||= Spaceship::ConnectAPI
|
87
|
+
resp = client.post_app_screenshot_set(app_store_version_localization_id: id, attributes: attributes)
|
81
88
|
return resp.to_models.first
|
82
89
|
end
|
83
90
|
end
|
@@ -18,8 +18,9 @@ module Spaceship
|
|
18
18
|
# API
|
19
19
|
#
|
20
20
|
|
21
|
-
def delete!(filter: {}, includes: nil, limit: nil, sort: nil)
|
22
|
-
Spaceship::ConnectAPI
|
21
|
+
def delete!(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
22
|
+
client ||= Spaceship::ConnectAPI
|
23
|
+
client.delete_app_store_version_submission(app_store_version_submission_id: id)
|
23
24
|
end
|
24
25
|
end
|
25
26
|
end
|
@@ -18,8 +18,9 @@ module Spaceship
|
|
18
18
|
# API
|
19
19
|
#
|
20
20
|
|
21
|
-
def delete!
|
22
|
-
|
21
|
+
def delete!(client: nil)
|
22
|
+
client ||= Spaceship::ConnectAPI
|
23
|
+
return client.delete_beta_app_review_submission(beta_app_review_submission_id: id)
|
23
24
|
end
|
24
25
|
end
|
25
26
|
end
|
@@ -63,12 +63,14 @@ module Spaceship
|
|
63
63
|
# API
|
64
64
|
#
|
65
65
|
|
66
|
-
def self.all(filter: {}, includes: "tester,build,screenshots", limit: nil, sort: nil)
|
67
|
-
|
66
|
+
def self.all(client: nil, filter: {}, includes: "tester,build,screenshots", limit: nil, sort: nil)
|
67
|
+
client ||= Spaceship::ConnectAPI
|
68
|
+
return client.get_beta_feedback(filter: filter, includes: includes, limit: limit, sort: sort)
|
68
69
|
end
|
69
70
|
|
70
|
-
def delete!
|
71
|
-
|
71
|
+
def delete!(client: nil)
|
72
|
+
client ||= Spaceship::ConnectAPI
|
73
|
+
return client.delete_beta_feedback(feedback_id: self.id)
|
72
74
|
end
|
73
75
|
end
|
74
76
|
end
|
@@ -33,8 +33,18 @@ module Spaceship
|
|
33
33
|
#
|
34
34
|
|
35
35
|
# beta_testers - [{email: "", firstName: "", lastName: ""}]
|
36
|
-
def post_bulk_beta_tester_assignments(beta_testers: nil)
|
37
|
-
|
36
|
+
def post_bulk_beta_tester_assignments(client: nil, beta_testers: nil)
|
37
|
+
client ||= Spaceship::ConnectAPI
|
38
|
+
return client.post_bulk_beta_tester_assignments(beta_group_id: id, beta_testers: beta_testers)
|
39
|
+
end
|
40
|
+
|
41
|
+
def delete!
|
42
|
+
return Spaceship::ConnectAPI.delete_beta_group(group_id: id)
|
43
|
+
end
|
44
|
+
|
45
|
+
def fetch_builds
|
46
|
+
resps = Spaceship::ConnectAPI.get_builds_for_beta_group(group_id: id).all_pages
|
47
|
+
return resps.flat_map(&:to_models)
|
38
48
|
end
|
39
49
|
end
|
40
50
|
end
|
@@ -34,23 +34,27 @@ module Spaceship
|
|
34
34
|
# API
|
35
35
|
#
|
36
36
|
|
37
|
-
def self.all(filter: {}, includes: nil, limit: nil, sort: nil)
|
38
|
-
|
37
|
+
def self.all(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
38
|
+
client ||= Spaceship::ConnectAPI
|
39
|
+
resps = client.get_beta_testers(filter: filter, includes: includes).all_pages
|
39
40
|
return resps.flat_map(&:to_models)
|
40
41
|
end
|
41
42
|
|
42
|
-
def self.find(email: nil, includes: nil)
|
43
|
-
|
43
|
+
def self.find(client: nil, email: nil, includes: nil)
|
44
|
+
client ||= Spaceship::ConnectAPI
|
45
|
+
return all(client: client, filter: { email: email }, includes: includes).first
|
44
46
|
end
|
45
47
|
|
46
|
-
def delete_from_apps(apps: nil)
|
48
|
+
def delete_from_apps(client: nil, apps: nil)
|
49
|
+
client ||= Spaceship::ConnectAPI
|
47
50
|
app_ids = apps.map(&:id)
|
48
|
-
return
|
51
|
+
return client.delete_beta_tester_from_apps(beta_tester_id: id, app_ids: app_ids)
|
49
52
|
end
|
50
53
|
|
51
|
-
def delete_from_beta_groups(beta_groups: nil)
|
54
|
+
def delete_from_beta_groups(client: nil, beta_groups: nil)
|
55
|
+
client ||= Spaceship::ConnectAPI
|
52
56
|
beta_group_ids = beta_groups.map(&:id)
|
53
|
-
return
|
57
|
+
return client.delete_beta_tester_from_beta_groups(beta_tester_id: id, beta_group_ids: beta_group_ids)
|
54
58
|
end
|
55
59
|
end
|
56
60
|
end
|
@@ -106,8 +106,9 @@ module Spaceship
|
|
106
106
|
# API
|
107
107
|
#
|
108
108
|
|
109
|
-
def self.all(app_id: nil, version: nil, build_number: nil, platform: nil, processing_states: "PROCESSING,FAILED,INVALID,VALID", includes: ESSENTIAL_INCLUDES, sort: "-uploadedDate", limit: 30)
|
110
|
-
|
109
|
+
def self.all(client: nil, app_id: nil, version: nil, build_number: nil, platform: nil, processing_states: "PROCESSING,FAILED,INVALID,VALID", includes: ESSENTIAL_INCLUDES, sort: "-uploadedDate", limit: 30)
|
110
|
+
client ||= Spaceship::ConnectAPI
|
111
|
+
resps = client.get_builds(
|
111
112
|
filter: { app: app_id, "preReleaseVersion.version" => version, version: build_number, processingState: processing_states },
|
112
113
|
includes: includes,
|
113
114
|
sort: sort,
|
@@ -125,23 +126,27 @@ module Spaceship
|
|
125
126
|
return models
|
126
127
|
end
|
127
128
|
|
128
|
-
def self.get(build_id: nil, includes: ESSENTIAL_INCLUDES)
|
129
|
-
|
129
|
+
def self.get(client: nil, build_id: nil, includes: ESSENTIAL_INCLUDES)
|
130
|
+
client ||= Spaceship::ConnectAPI
|
131
|
+
return client.get_build(build_id: build_id, includes: includes).first
|
130
132
|
end
|
131
133
|
|
132
|
-
def update(attributes: nil)
|
134
|
+
def update(client: nil, attributes: nil)
|
135
|
+
client ||= Spaceship::ConnectAPI
|
133
136
|
attributes = reverse_attr_mapping(attributes)
|
134
|
-
return
|
137
|
+
return client.patch_builds(build_id: id, attributes: attributes).first
|
135
138
|
end
|
136
139
|
|
137
|
-
def add_beta_groups(beta_groups: nil)
|
140
|
+
def add_beta_groups(client: nil, beta_groups: nil)
|
141
|
+
client ||= Spaceship::ConnectAPI
|
138
142
|
beta_groups ||= []
|
139
143
|
beta_group_ids = beta_groups.map(&:id)
|
140
|
-
return
|
144
|
+
return client.add_beta_groups_to_build(build_id: id, beta_group_ids: beta_group_ids)
|
141
145
|
end
|
142
146
|
|
143
|
-
def get_beta_build_localizations(filter: {}, includes: nil, limit: nil, sort: nil)
|
144
|
-
|
147
|
+
def get_beta_build_localizations(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
148
|
+
client ||= Spaceship::ConnectAPI
|
149
|
+
resps = client.get_beta_build_localizations(
|
145
150
|
filter: { build: id },
|
146
151
|
includes: includes,
|
147
152
|
sort: sort,
|
@@ -150,8 +155,9 @@ module Spaceship
|
|
150
155
|
return resps.flat_map(&:to_models)
|
151
156
|
end
|
152
157
|
|
153
|
-
def get_build_beta_details(filter: {}, includes: nil, limit: nil, sort: nil)
|
154
|
-
|
158
|
+
def get_build_beta_details(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
159
|
+
client ||= Spaceship::ConnectAPI
|
160
|
+
resps = client.get_build_beta_details(
|
155
161
|
filter: { build: id },
|
156
162
|
includes: includes,
|
157
163
|
sort: sort,
|
@@ -160,12 +166,14 @@ module Spaceship
|
|
160
166
|
return resps.flat_map(&:to_models)
|
161
167
|
end
|
162
168
|
|
163
|
-
def post_beta_app_review_submission
|
164
|
-
|
169
|
+
def post_beta_app_review_submission(client: nil)
|
170
|
+
client ||= Spaceship::ConnectAPI
|
171
|
+
return client.post_beta_app_review_submissions(build_id: id)
|
165
172
|
end
|
166
173
|
|
167
|
-
def expire!
|
168
|
-
|
174
|
+
def expire!(client: nil)
|
175
|
+
client ||= Spaceship::ConnectAPI
|
176
|
+
return client.patch_builds(build_id: id, attributes: { expired: true })
|
169
177
|
end
|
170
178
|
end
|
171
179
|
end
|
@@ -24,8 +24,9 @@ module Spaceship
|
|
24
24
|
# API
|
25
25
|
#
|
26
26
|
|
27
|
-
def self.all(app_id: nil, version: nil, build_number: nil)
|
28
|
-
|
27
|
+
def self.all(client: nil, app_id: nil, version: nil, build_number: nil)
|
28
|
+
client ||= Spaceship::ConnectAPI
|
29
|
+
resps = client.get_build_deliveries(
|
29
30
|
filter: { app: app_id, cfBundleShortVersionString: version, cfBundleVersion: build_number },
|
30
31
|
limit: 1
|
31
32
|
).all_pages
|
@@ -39,19 +39,22 @@ module Spaceship
|
|
39
39
|
# API
|
40
40
|
#
|
41
41
|
|
42
|
-
def self.all(filter: {}, includes: nil, limit: nil, sort: nil)
|
43
|
-
|
42
|
+
def self.all(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
43
|
+
client ||= Spaceship::ConnectAPI
|
44
|
+
resps = client.get_bundle_ids(filter: filter, includes: includes).all_pages
|
44
45
|
return resps.flat_map(&:to_models)
|
45
46
|
end
|
46
47
|
|
47
|
-
def self.find(identifier, includes: nil)
|
48
|
-
|
48
|
+
def self.find(identifier, includes: nil, client: nil)
|
49
|
+
client ||= Spaceship::ConnectAPI
|
50
|
+
return all(client: client, filter: { identifier: identifier }, includes: includes).find do |app|
|
49
51
|
app.identifier == identifier
|
50
52
|
end
|
51
53
|
end
|
52
54
|
|
53
|
-
def self.get(bundle_id_id: nil, includes: nil)
|
54
|
-
|
55
|
+
def self.get(client: nil, bundle_id_id: nil, includes: nil)
|
56
|
+
client ||= Spaceship::ConnectAPI
|
57
|
+
return client.get_bundle_id(bundle_id_id: bundle_id_id, includes: includes).first
|
55
58
|
end
|
56
59
|
end
|
57
60
|
end
|
@@ -59,12 +59,14 @@ module Spaceship
|
|
59
59
|
# API
|
60
60
|
#
|
61
61
|
|
62
|
-
def self.all(filter: {}, includes: nil, limit: nil, sort: nil)
|
63
|
-
|
62
|
+
def self.all(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
63
|
+
client ||= Spaceship::ConnectAPI
|
64
|
+
return client.get_users(filter: filter, includes: includes)
|
64
65
|
end
|
65
66
|
|
66
|
-
def self.find(email: nil, includes: nil)
|
67
|
-
|
67
|
+
def self.find(client: nil, email: nil, includes: nil)
|
68
|
+
client ||= Spaceship::ConnectAPI
|
69
|
+
return all(client: client, filter: { email: email }, includes: includes)
|
68
70
|
end
|
69
71
|
end
|
70
72
|
end
|
@@ -75,27 +75,31 @@ module Spaceship
|
|
75
75
|
# API
|
76
76
|
#
|
77
77
|
|
78
|
-
def self.all(filter: {}, includes: nil, limit: nil, sort: nil)
|
79
|
-
|
78
|
+
def self.all(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
79
|
+
client ||= Spaceship::ConnectAPI
|
80
|
+
resps = client.get_certificates(filter: filter, includes: includes).all_pages
|
80
81
|
return resps.flat_map(&:to_models)
|
81
82
|
end
|
82
83
|
|
83
|
-
def self.create(certificate_type: nil, csr_content: nil)
|
84
|
+
def self.create(client: nil, certificate_type: nil, csr_content: nil)
|
85
|
+
client ||= Spaceship::ConnectAPI
|
84
86
|
attributes = {
|
85
87
|
certificateType: certificate_type,
|
86
88
|
csrContent: csr_content
|
87
89
|
}
|
88
|
-
resp =
|
90
|
+
resp = client.post_certificate(attributes: attributes)
|
89
91
|
return resp.to_models.first
|
90
92
|
end
|
91
93
|
|
92
|
-
def self.get(certificate_id: nil, includes: nil)
|
93
|
-
|
94
|
+
def self.get(client: nil, certificate_id: nil, includes: nil)
|
95
|
+
client ||= Spaceship::ConnectAPI
|
96
|
+
resp = client.get_certificate(certificate_id: certificate_id, includes: includes)
|
94
97
|
return resp.to_models.first
|
95
98
|
end
|
96
99
|
|
97
|
-
def delete!
|
98
|
-
Spaceship::ConnectAPI
|
100
|
+
def delete!(client: nil)
|
101
|
+
client ||= Spaceship::ConnectAPI
|
102
|
+
client.delete_certificate(certificate_id: id)
|
99
103
|
end
|
100
104
|
end
|
101
105
|
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
require_relative '../model'
|
2
|
+
module Spaceship
|
3
|
+
class ConnectAPI
|
4
|
+
class CustomAppOrganization
|
5
|
+
include Spaceship::ConnectAPI::Model
|
6
|
+
|
7
|
+
attr_accessor :device_enrollment_program_id
|
8
|
+
attr_accessor :name
|
9
|
+
|
10
|
+
attr_mapping({
|
11
|
+
"deviceEnrollmentProgramId" => "device_enrollment_program_id",
|
12
|
+
"name" => "name"
|
13
|
+
})
|
14
|
+
|
15
|
+
def self.type
|
16
|
+
return "customAppOrganizations"
|
17
|
+
end
|
18
|
+
|
19
|
+
#
|
20
|
+
# API
|
21
|
+
#
|
22
|
+
|
23
|
+
def self.all(app_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
24
|
+
resps = Spaceship::ConnectAPI.get_custom_app_organization(
|
25
|
+
app_id: app_id,
|
26
|
+
filter: filter,
|
27
|
+
includes: includes,
|
28
|
+
limit: nil,
|
29
|
+
sort: nil
|
30
|
+
).all_pages
|
31
|
+
return resps.flat_map(&:to_models)
|
32
|
+
end
|
33
|
+
|
34
|
+
def self.create(app_id: nil, device_enrollment_program_id: nil, name: nil)
|
35
|
+
return Spaceship::ConnectAPI.post_custom_app_organization(app_id: app_id, device_enrollment_program_id: device_enrollment_program_id, name: name).first
|
36
|
+
end
|
37
|
+
|
38
|
+
def delete!
|
39
|
+
Spaceship::ConnectAPI.delete_custom_app_organization(custom_app_organization_id: id)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -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
|
@@ -44,13 +44,15 @@ module Spaceship
|
|
44
44
|
# API
|
45
45
|
#
|
46
46
|
|
47
|
-
def self.all(filter: {}, includes: nil, limit: nil, sort: nil)
|
48
|
-
|
47
|
+
def self.all(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
48
|
+
client ||= Spaceship::ConnectAPI
|
49
|
+
resps = client.get_devices(filter: filter, includes: includes).all_pages
|
49
50
|
return resps.flat_map(&:to_models)
|
50
51
|
end
|
51
52
|
|
52
|
-
def self.create(name: nil, platform: nil, udid: nil)
|
53
|
-
|
53
|
+
def self.create(client: nil, name: nil, platform: nil, udid: nil)
|
54
|
+
client ||= Spaceship::ConnectAPI
|
55
|
+
resp = client.post_device(name: name, platform: platform, udid: udid)
|
54
56
|
return resp.to_models.first
|
55
57
|
end
|
56
58
|
end
|