produce/lib/produce/developer_center.rb in fastlane-2.145.0 vs produce/lib/produce/developer_center.rb in fastlane-2.146.0

- old
+ new

@@ -57,11 +57,11 @@ UI.message("Creating new app '#{app_name}' on the Apple Dev Center") app = Spaceship.app.create!(bundle_id: app_identifier, name: app_name, enable_services: enable_services, - mac: Produce.config[:platform] == "osx") + mac: platform == "osx") if app.name != Produce.config[:app_name] UI.important("Your app name includes non-ASCII characters, which are not supported by the Apple Developer Portal.") UI.important("To fix this a unique (internal) name '#{app.name}' has been created for you. Your app's real name '#{Produce.config[:app_name]}'") UI.important("will still show up correctly on App Store Connect and the App Store.") @@ -120,11 +120,20 @@ Produce.config[:app_identifier].to_s end private + def platform + # This was added to support creation of multiple platforms + # Produce::ItunesConnect can take an array of platforms to create for App Store Connect + # but the Developer Center is now platform agnostic so we choose any platform here + # + # Platform won't be needed at all in the future when this is change over to use Spaceship::ConnectAPI + (Produce.config[:platforms] || []).first || Produce.config[:platform] + end + def app_exists? - Spaceship.app.find(app_identifier, mac: Produce.config[:platform] == "osx") != nil + Spaceship.app.find(app_identifier, mac: platform == "osx") != nil end def login Spaceship.login(Produce.config[:username], nil) Spaceship.select_team