Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In the sequence, clone the official repository for partners via SSH.

Clone code:

git clone ssh://git@code.totaralms.com/totara-mobile.git
git checkout master

Install EAS tools:

...

You will need to set up a new project in Expo and fill in the fields in app.config.jsts

  • Slug

  • Name

  • Version

  • EAS Project Id

...

  • GOOGLE_SERVICES_FILE_ANDROID

  • GOOGLE_SERVICES_FILE_IOS

  • SLACK_WEBHOOK_URL (Optional - for Slack build notifications)

  • APPETIZE_API_KEY (Optional - for Appetize testing)

  • APPETIZE_IOS_APP_PUBLIC_KEY (Optional - for Appetize testing)

  • APPETIZE_ANDROID_APP_PUBLIC_KEY (Optional - for Appetize testing)

  • SENTRY_AUTH_TOKEN

  • SENTRY_DSN

  • SENTRY_ORG

  • SENTRY_PROJECT

Expo secrets

...

...

If you received an error as below:

Is a common one we see and as far as we have been able to tell, it's a problem in the Expo infrastructure and re-runnning the build in the Expo UI tends to fix it.

Code Block
✖ Prebuild failed
Error: [android.dangerous]: withAndroidDangerousBaseMod: Could not find MIME for Buffer <null>
Error: [android.dangerous]: withAndroidDangerousBaseMod: Could not find MIME for Buffer <null>
    at Jimp.parseBitmap (/home/expo/workingdir/build/node_modules/jimp-compact/dist/jimp.js:1:125518)
    at Jimp.parseBitmap (/home/expo/workingdir/build/node_modules/jimp-compact/dist/jimp.js:1:8514)
    at /home/expo/workingdir/build/node_modules/jimp-compact/dist/jimp.js:1:7613
    at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)
npx expo prebuild --skip-dependency-update react --platform android exited with non-zero code: 1

Starting a Build

To start a build in Expo using EAS:

...