class Spaceship::Tunes::AppSubmission
Represents a submission for review of an iTunes Connect Application
This class handles the submission of all review information and documents
Attributes
@return (Boolean) Ad ID Info - Limits ads tracking
@return (Boolean) Ad ID Info - Serves ads
@return (Boolean) Ad ID Info - Tracks actions
@return (Boolean) Ad ID Info - Tracks installs
@return (Boolean) Ad ID Info - Uses idfa
@return (Spaceship::Tunes::Application
) A reference to the application
this submission is for
@return (Boolean) Content Rights - Contains third party content
@return (Boolean) Content Rights - Has rights of content
@return (String
) Export Compliance - App type
@return (Boolean) Export Compliance - Available on French Store
@return (Not Yet Implemented) Export Compliance - CCAT File
@return (Boolean) Export Compliance - Compliance Required
@return (Boolean) Export Compliance - Contains proprietary cryptography
@return (Boolean) Export Compliance - Contains third-party cryptography
@return (Boolean) Export Compliance - Encryption Updated
@return (Boolean) Export Compliance - Is exempt
@return (String
) Export Compliance - Platform
@return (Boolean) Export Compliance - Uses encryption
@return (Boolean) Submitted for Review
@return (AppVersion
) The version to use for this submission
Public Class Methods
@param application (Spaceship::Tunes::Application
) The app this submission is for
# File lib/spaceship/tunes/app_submission.rb, line 116 def create(application, version) attrs = client.prepare_app_submissions(application.apple_id, application.edit_version.version_id) attrs[:application] = application attrs[:version] = version return self.factory(attrs) end
Create a new object based on a hash. This is used to create a new object based on the server response.
# File lib/spaceship/tunes/app_submission.rb, line 98 def factory(attrs) # fill content rights section if iTC returns nil if attrs["contentRights"].nil? attrs["contentRights"] = { "containsThirdPartyContent" => { "value" => nil }, "hasRights" => { "value" => nil } } end obj = self.new(attrs) return obj end
Public Instance Methods
Save and complete the app submission
# File lib/spaceship/tunes/app_submission.rb, line 126 def complete! client.send_app_submission(application.apple_id, raw_data) @submitted_for_review = true end
# File lib/spaceship/tunes/app_submission.rb, line 131 def setup @submitted_for_review = false end