CodeBlanks Logo Icon CodeBlanks

EAS Submit

Learn store submission with EAS Submit.

What is EAS Submit?

EAS Submit is the service that sends a built app to the stores. It works separately for Google Play Store and Apple App Store. You start it with eas submit --platform android.

Submission needs store account details: a service account JSON key for Android, an App Store Connect API key for iOS. These are held in the "submit" section of eas.json. EAS Submit also handles signing and version checks; it cuts down manual upload steps.

The submit section

The "submit" section in eas.json holds the store credentials. Android uses "serviceAccountKeyPath", iOS uses "ascApiKeyPath". Paths are relative to the project root.

Example: "submit": { "production": { "android": { "serviceAccountKeyPath": "./keys/play.json" } } } }. Never leave key files in a public folder; add them to .gitignore. You can also pass credentials through environment variables; this separates file paths from code.

Practice Add the submit profile

Add a "submit" section to the eas.json skeleton. Inside it have a "production" profile. This profile carries an "android" object and a "serviceAccountKeyPath" field.

Starter code

App.js
{
  "build": {
    "preview": { "android": { "buildType": "apk" } }
  }
  // add the submit section here
}

Sample solution

App.js
{
  "build": {
    "preview": { "android": { "buildType": "apk" } }
  },
  "submit": {
    "production": {
      "android": {
        "serviceAccountKeyPath": "./keys/play.json"
      }
    }
  }
}

Questions and answers

Review the lesson questions together with their answers. To test yourself, solve the lesson interactively.

1 Match each flow piece to its role

Term Meaning
eas submit Sends to store
Google Play Android store
App Store iOS store
service account Android auth

2 Write the submit subcommand

Question
eas ____ --platform android
Answer
eas submit --platform android

Explanation: eas submit sends to the store.

3 Which key is used for iOS submission?

App.js
"submit": { "production": { "ios": { /* ? */ } } }
  • googleServicesPath
  • ascApiKeyPath Correct answer
  • serviceAccountKeyPath
  • keystorePath

Explanation: ascApiKeyPath takes the path to the App Store Connect API key.

All lessons in Advanced