spaceship/lib/spaceship/portal/provisioning_profile.rb in fastlane-2.9.0 vs spaceship/lib/spaceship/portal/provisioning_profile.rb in fastlane-2.10.0
- old
+ new
@@ -247,16 +247,18 @@
end
# @return (Array) Returns all profiles registered for this account
# If you're calling this from a subclass (like AdHoc), this will
# only return the profiles that are of this type
- def all(mac: false)
+ # @param mac (Bool) (optional): Pass true to get all Mac provisioning profiles
+ # @param xcode (Bool) (optional): Pass true to include Xcode managed provisioning profiles
+ def all(mac: false, xcode: false)
profiles = client.provisioning_profiles(mac: mac).map do |profile|
self.factory(profile)
end
# filter out the profiles managed by xcode
- profiles.delete_if(&:managed_by_xcode?)
+ profiles.delete_if(&:managed_by_xcode?) unless xcode
return profiles if self == ProvisioningProfile
# To distinguish between AppStore and AdHoc profiles, we need to send
# a details request (see `fetch_details`). This is an expensive operation