lib/spaceship/tunes/tunes_client.rb in spaceship-0.38.5 vs lib/spaceship/tunes/tunes_client.rb in spaceship-0.39.0
- old
+ new
@@ -262,15 +262,15 @@
# @param version (String): The version number is shown on the App Store and should
# match the one you used in Xcode.
# @param sku (String): A unique ID for your app that is not visible on the App Store.
# @param bundle_id (String): The bundle ID must match the one you used in Xcode. It
# can't be changed after you submit your first build.
- def create_application!(name: nil, primary_language: nil, version: nil, sku: nil, bundle_id: nil, bundle_id_suffix: nil, company_name: nil)
+ def create_application!(name: nil, primary_language: nil, version: nil, sku: nil, bundle_id: nil, bundle_id_suffix: nil, company_name: nil, platform: nil)
# First, we need to fetch the data from Apple, which we then modify with the user's values
primary_language ||= "English"
- app_type = 'ios'
- r = request(:get, "ra/apps/create/v2/?platformString=#{app_type}")
+ platform ||= "ios"
+ r = request(:get, "ra/apps/create/v2/?platformString=#{platform}")
data = parse_response(r, 'data')
# Now fill in the values we have
# some values are nil, that's why there is a hash
data['versionString'] = { value: version }
@@ -279,13 +279,13 @@
data['primaryLanguage'] = { value: primary_language }
data['primaryLocaleCode'] = { value: primary_language.to_itc_locale }
data['vendorId'] = { value: sku }
data['bundleIdSuffix'] = { value: bundle_id_suffix }
data['companyName'] = { value: company_name } if company_name
- data['enabledPlatformsForCreation'] = { value: [app_type] }
+ data['enabledPlatformsForCreation'] = { value: [platform] }
- data['initialPlatform'] = app_type
- data['enabledPlatformsForCreation'] = { value: [app_type] }
+ data['initialPlatform'] = platform
+ data['enabledPlatformsForCreation'] = { value: [platform] }
# Now send back the modified hash
r = request(:post) do |req|
req.url 'ra/apps/create/v2'
req.body = data.to_json