lib/produce/itunes_connect.rb in produce-1.3.2 vs lib/produce/itunes_connect.rb in produce-1.4.0
- old
+ new
@@ -26,11 +26,12 @@
primary_language: language,
version: Produce.config[:app_version] || "1.0",
sku: Produce.config[:sku].to_s, # might be an int
bundle_id: app_identifier,
bundle_id_suffix: Produce.config[:bundle_identifier_suffix],
- company_name: Produce.config[:company_name])
+ company_name: Produce.config[:company_name],
+ platform: Produce.config[:platform])
UI.crash!("Something went wrong when creating the new app on iTC") if generated_app["adamId"].to_s.empty?
application = fetch_application
counter = 0
@@ -48,10 +49,10 @@
UI.crash!("Something went wrong when creating the new app - it's not listed in the App's list") unless application
UI.success "Successfully created new app '#{Produce.config[:app_name]}' on iTunes Connect with ID #{application.apple_id}"
end
- return Spaceship::Application.find(@full_bundle_identifier).apple_id
+ return Spaceship::Application.find(@full_bundle_identifier, mac: Produce.config[:platform] == "osx").apple_id
end
private
def fetch_application