|
|
@@ -125,10 +125,15 @@ platform :ios do
|
|
|
)
|
|
|
|
|
|
def configure_bundle_id(name, identifier, capabilities)
|
|
|
- bundle_id = Spaceship::ConnectAPI::BundleId.find(identifier) || Spaceship::ConnectAPI::BundleId.create(name: name, identifier: identifier)
|
|
|
- capabilities.each { |capability|
|
|
|
- bundle_id.create_capability(capability)
|
|
|
- }
|
|
|
+ bundle_id = Spaceship::ConnectAPI::BundleId.find(identifier) || Spaceship::ConnectAPI::BundleId.create(
|
|
|
+ name: name,
|
|
|
+ identifier: identifier,
|
|
|
+ platform: "IOS"
|
|
|
+ )
|
|
|
+ existing = bundle_id.get_capabilities.map(&:capability_type)
|
|
|
+ capabilities.reject { |c| existing.include?(c) }.each do |cap|
|
|
|
+ bundle_id.create_capability(cap)
|
|
|
+ end
|
|
|
end
|
|
|
|
|
|
configure_bundle_id("LoopFollow", "com.#{TEAMID}.LoopFollow", [
|