Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Eas builds on Android #727

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

filip131311
Copy link
Collaborator

This PR adds additional user facing information about eas builds, to let users know when production build is used instead of development one. More over eas build crashes are getting a new build error alert description to redirect users to Radon IDE log instead of non existing build logs.

Finally this PR adds .apk file extension to android packages to avoid errors with tools we use to install and uninstall application on device.

Fixes android portion of #678

How Has This Been Tested:

Run an application using eas on android using production and development profiles.

Copy link

vercel bot commented Nov 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
radon-ide ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 13, 2024 4:24pm

@@ -64,6 +64,13 @@ async function fetchBuild(config: EasConfig, platform: DevicePlatform) {

const build = maxBy(builds, "completedAt")!;

if (!build.binaryUrl.endsWith(".apk") && !build.binaryUrl.endsWith(".apex")) {
Logger.error(
`EAS build artefact needs to be in .apk or .apex format to work with the Radon IDE, make sure you set up eas to use "development" profile`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`EAS build artefact needs to be in .apk or .apex format to work with the Radon IDE, make sure you set up eas to use "development" profile`
`EAS build artifact needs to be a development build in .apk or .apex format to work with the Radon IDE, make sure you set up eas to use "development" profile`

const binaryPath = path.join(tmpDirectory, id);
const binaryPath =
platform === DevicePlatform.Android
? path.join(tmpDirectory, `${id}.apk`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error message from above says it can be in apex format too?

Comment on lines +33 to +34
return;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return;
}
} else {
project.focusBuildOutput();
}

Comment on lines +80 to +82
const isEasBuild =
(!!eas?.android && projectState.selectedDevice?.platform === DevicePlatform.Android) ||
(!!eas?.ios && projectState.selectedDevice?.platform === DevicePlatform.IOS);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't it be easier to pass information whether its eas or not via project? It seems like we have those checks already to tell which build to start, so duplicating it here would just increase the coupling

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants