Module: Spaceship::Tunes::AppStatus

Defined in:
spaceship/lib/spaceship/tunes/app_status.rb

Overview

Constant Summary collapse

PREPARE_FOR_SUBMISSION =

You can edit this version, upload new binaries and more

"Prepare for Submission"
READY_FOR_SALE =

App is currently live in the App Store

"Ready for Sale"
WAITING_FOR_REVIEW =

Waiting for Apple's Review

"Waiting For Review"
IN_REVIEW =

Currently in Review

"In Review"
REJECTED =

App rejected for whatever reason

"Rejected"
DEVELOPER_REMOVED_FROM_SALE =

The developer took the app from the App Store

"Developer Removed From Sale"
DEVELOPER_REJECTED =

Developer rejected this version/binary

"Developer Rejected"
PENDING_CONTRACT =

You have to renew your Apple account to keep using App Store Connect

"Pending Contract"
UPLOAD_RECEIVED =
"Upload Received"
PENDING_DEVELOPER_RELEASE =
"Pending Developer Release"
PROCESSING_FOR_APP_STORE =
"Processing for App Store"
METADATA_REJECTED =

WAITING_FOR_EXPORT_COMPLIANCE = “Waiting For Export Compliance”

"Metadata Rejected"
REMOVED_FROM_SALE =
"Removed From Sale"

Class Method Summary collapse

Class Method Details

.get_from_string(text) ⇒ Object

Get the app status matching based on a string (given by App Store Connect)


40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# 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