spaceship/lib/spaceship/connect_api/testflight/testflight.rb in fastlane-2.214.0 vs spaceship/lib/spaceship/connect_api/testflight/testflight.rb in fastlane-2.215.0
- old
+ new
@@ -202,16 +202,22 @@
}
test_flight_request_client.delete("builds/#{build_id}/relationships/betaGroups", nil, body)
end
- def create_beta_group(app_id: nil, group_name: nil, is_internal_group: false, public_link_enabled: false, public_link_limit: 10_000, public_link_limit_enabled: false)
+ def create_beta_group(app_id: nil, group_name: nil, is_internal_group: false, public_link_enabled: false, public_link_limit: 10_000, public_link_limit_enabled: false, has_access_to_all_builds: nil)
+ if is_internal_group
+ has_access_to_all_builds = true if has_access_to_all_builds.nil?
+ else
+ # Access to all builds is only for internal groups
+ has_access_to_all_builds = nil
+ end
body = {
data: {
attributes: {
name: group_name,
isInternalGroup: is_internal_group,
- hasAccessToAllBuilds: is_internal_group ? true : false, # Undocumented of 2021-08-02 in ASC API docs and ASC Open API spec. This is the default behavior on App Store Connect and does work with both Apple ID and API Token
+ hasAccessToAllBuilds: has_access_to_all_builds, # Undocumented of 2021-08-02 in ASC API docs and ASC Open API spec. This is the default behavior on App Store Connect and does work with both Apple ID and API Token
publicLinkEnabled: public_link_enabled,
publicLinkLimit: public_link_limit,
publicLinkLimitEnabled: public_link_limit_enabled
},
relationships: {