Skip to content

Instantly share code, notes, and snippets.

@wodin
Created October 6, 2021 09:52
Show Gist options
  • Save wodin/827fe81ada72910f401d2539d4bd5f42 to your computer and use it in GitHub Desktop.
Save wodin/827fe81ada72910f401d2539d4bd5f42 to your computer and use it in GitHub Desktop.
Building wodin/expo-zip-example
/tmp$ git clone https://github.com/wodin/expo-zip-example
Cloning into 'expo-zip-example'...
remote: Enumerating objects: 38, done.
remote: Counting objects: 100% (38/38), done.
remote: Compressing objects: 100% (22/22), done.
remote: Total 38 (delta 15), reused 38 (delta 15), pack-reused 0
Receiving objects: 100% (38/38), 170.29 KiB | 369.00 KiB/s, done.
Resolving deltas: 100% (15/15), done.
/tmp$ cd expo-zip-example
/tmp/expo-zip-example$ yarn
yarn install v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.13: The platform "linux" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
Done in 12.87s.
/tmp/expo-zip-example$ eas build --profile development --platform android
★ eas-cli@0.30.0 is now available, please upgrade.
Proceeding with outdated version

✔ We detected that your eas.json is using a deprecated format, do you want to migrate to the new format? … yes

Warning! Your repository working tree is dirty.
This operation needs to be run on a clean working tree, please commit all your changes before proceeding.
✔ Commit changes to git? … yes
✔ Commit message: … Update eas.json to new format
✔ Linked to project @wodin/zip-test
✔ Using remote Android credentials (Expo server)
✔ Using Keystore from configuration: Build Credentials XXXXXXXXXX (default)
✔ Uploaded to EAS 2s Learn more.

Build details: https://expo.dev/accounts/wodin/builds/65b9a09c-ee02-48b3-96a3-02d76c243deb

Waiting for build to complete. You can press Ctrl+C to exit.
✔ Build finished

QR code

🤖 Open this link on your Android devices (or scan the QR code) to install the app:
https://expo.dev/accounts/wodin/builds/65b9a09c-ee02-48b3-96a3-02d76c243deb
@wodin
Copy link
Author

wodin commented Oct 6, 2021

Note

The above is just the Android build, but it should work the same for iOS.
Also, if you have Android Studio and Xcode installed on your local machine you can use eas build --local to build locally instead of using Expo's build service.

@wodin
Copy link
Author

wodin commented Oct 6, 2021

After installing it on my phone I ran:

expo start --dev-client

Then I opened the newly installed app on my phone (not the Expo Go app) and scanned the QR code that expo start --dev-client displays.
The JavaScript bundle downloaded and the app started. In the console where I was running expo start --dev-client the following output was printed:

Android Bundling complete 9767ms
Running app on SM-G950F
Finished downloading to file:///data/user/0/com.example.ziptest/cache/sample.zip
unzip completed at /data/user/0/com.example.ziptest/cache/sample

And the app displayed the contents of the unzipped sample.txt file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment