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

METADATA_REJECTED

WAITING_FOR_EXPORT_COMPLIANCE = “Waiting For Export Compliance”

PENDING_CONTRACT

You have to renew your Apple account to keep using App Store 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

REMOVED_FROM_SALE
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 App Store Connect)

# File spaceship/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,
    'rejected' => REJECTED,
    'pendingDeveloperRelease' => PENDING_DEVELOPER_RELEASE,
    'metadataRejected' => METADATA_REJECTED,
    'removedFromSale' => REMOVED_FROM_SALE
  }

  mapping.each do |k, v|
    return v if k == text
  end

  return nil
end