spaceship/lib/spaceship/connect_api/provisioning/provisioning.rb in fastlane-2.186.0 vs spaceship/lib/spaceship/connect_api/provisioning/provisioning.rb in fastlane-2.187.0
- old
+ new
@@ -66,15 +66,55 @@
bundleId: {
data: {
type: "bundleIds",
id: bundle_id_id
}
+ },
+ capability: {
+ data: {
+ type: "capabilities",
+ id: capability_type
+ }
}
}
}
}
-
provisioning_request_client.post("bundleIdCapabilities", body)
+ end
+
+ def patch_bundle_id_capability(bundle_id_id:, seed_id:, enabled: false, capability_type:, settings: [])
+ body = {
+ data: {
+ type: "bundleIds",
+ id: bundle_id_id,
+ attributes: {
+ teamId: seed_id
+ },
+ relationships: {
+ bundleIdCapabilities: {
+ data: [
+ {
+ type: "bundleIdCapabilities",
+ attributes: {
+ enabled: enabled,
+ settings: settings
+ },
+ relationships: {
+ capability: {
+ data: {
+ type: "capabilities",
+ id: capability_type
+ }
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+
+ provisioning_request_client.patch("bundleIds/#{bundle_id_id}", body)
end
def delete_bundle_id_capability(bundle_id_capability_id:)
provisioning_request_client.delete("bundleIdCapabilities/#{bundle_id_capability_id}")
end