module Spaceship::Tunes::AppStatus
Defines the different states of the app
As specified by Apple: developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/Chapters/ChangingAppStatus.html
Constants
- DEVELOPER_REJECTED
Developer rejected this version/binary
- DEVELOPER_REMOVED_FROM_SALE
The developer took the app from the App Store
- IN_REVIEW
Currently in Review
- PENDING_CONTRACT
You have to renew your Apple account to keep using iTunes Connect
- PENDING_DEVELOPER_RELEASE
- PREPARE_FOR_SUBMISSION
You can edit this version, upload new binaries and more
- PROCESSING_FOR_APP_STORE
- READY_FOR_SALE
App is currently live in the App Store
- REJECTED
App rejected for whatever reason
- UPLOAD_RECEIVED
- WAITING_FOR_REVIEW
Waiting for Apple's Review
Public Class Methods
get_from_string(text)
click to toggle source
Get the app status matching based on a string (given by iTunes Connect)
# File lib/spaceship/tunes/app_status.rb, line 40 def self.get_from_string(text) mapping = { 'readyForSale' => READY_FOR_SALE, 'prepareForUpload' => PREPARE_FOR_SUBMISSION, 'devRejected' => DEVELOPER_REJECTED, 'pendingContract' => PENDING_CONTRACT, 'developerRemovedFromSale' => DEVELOPER_REMOVED_FROM_SALE, 'waitingForReview' => WAITING_FOR_REVIEW, 'inReview' => IN_REVIEW, 'pendingDeveloperRelease' => PENDING_DEVELOPER_RELEASE } mapping.each do |k, v| return v if k == text end return nil end