Change production key in eas.json
to this
"production": {
"android": {
"buildType": "apk"
}
}
So now your eas.json
like this
{
"cli": {
"version": ">= 0.52.0"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"distribution": "internal"
},
"production": {
"android": {
"buildType": "apk"
}
}
},
"submit": {
"production": {}
}
}
To build into .apk file, you can build using production profile. The command like this
eas build --profile production --platform android
Change production key in eas.json
to this
"production": {
"android": {
"buildType": "apk"
}
}
So now your eas.json
like this
{
"cli": {
"version": ">= 0.52.0"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"distribution": "internal"
},
"production": {
"android": {
"buildType": "apk"
}
}
},
"submit": {
"production": {}
}
}
To build into .apk file, you can build using production profile. The command like this
eas build --profile production --platform android
Here is the detailed instruction: https://docs.expo.dev/build/eas-json/
You need to create eas.json in the project directory as:
{
"build": {
"preview": {
"android": {
"buildType": "apk"
}
},
"production": {}
},
"cli": {
"version": ">= 0.52.0"
}
}
Then use the following command:
eas build -p android --profile preview
Regards, Shameel
Is there anyway to build .apk or .aab locally instead of eas build?
I would like to generate an .apk file, to do that I need to have the SHA1 key that eas build are using to generate the .aab file
APK build without EAS
White screen on Android after building APK with EAS Build
Videos
Is there any way that we can build .apk or .aab file locally instead of eas build.
I am on free plan
There's no issue in waiting but for the last 30 minutes its stuck on less than 5 minutes.
I have an app integrated with firebase for authentication and database, I want to test the features of this app on my phone without any environment on top. Like a production build. But without eas because it's very slow in free tier.
How can I build an apk similar to that of production and directly download it on my android phone?