Skip to content

Commit 4405db6

Browse files
committed
Create service function enableBundleIdCapability
1 parent 2ed55b1 commit 4405db6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Sources/AppStoreConnectCLI/Services/AppStoreConnectService.swift

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,24 @@ class AppStoreConnectService {
683683
.map(Device.init)
684684
}
685685

686+
func enableBundleIdCapability(
687+
bundleId: String,
688+
capabilityType: CapabilityType
689+
) throws {
690+
let bundleIdResourceId = try ReadBundleIdOperation(
691+
options: .init(bundleId: bundleId)
692+
)
693+
.execute(with: requestor)
694+
.await()
695+
.id
696+
697+
_ = try EnableBundleIdCapabilityOperation(
698+
options: .init(bundleIdResourceId: bundleIdResourceId, capabilityType: capabilityType)
699+
)
700+
.execute(with: requestor)
701+
.await()
702+
}
703+
686704
/// Make a request for something `Decodable`.
687705
///
688706
/// - Parameters:

0 commit comments

Comments
 (0)