-
Notifications
You must be signed in to change notification settings - Fork 33
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
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -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` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`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`) |
There was a problem hiding this comment.
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?
return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return; | |
} | |
} else { | |
project.focusBuildOutput(); | |
} |
const isEasBuild = | ||
(!!eas?.android && projectState.selectedDevice?.platform === DevicePlatform.Android) || | ||
(!!eas?.ios && projectState.selectedDevice?.platform === DevicePlatform.IOS); |
There was a problem hiding this comment.
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
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.