xxxxxxxxxx
{
"cli": {
"version": ">= 0.52.0"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"distribution": "internal"
},
"production": {
"android": {
"buildType": "apk"
}
}
},
"submit": {
"production": {}
}
}
xxxxxxxxxx
//edit eas.json
{
"cli": {
"version": ">= 0.52.0"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"android": {
"buildType": "apk"
},
"distribution": "internal"
},
"production": {}
},
"submit": {
"production": {}
}
}
//build with that profile
eas build -p android --profile preview
xxxxxxxxxx
To specify building an APK instead of an App-bundle with
EAS Build, Add build type to the appropriate release-channel:
// Add this in eas.json to your release channel
"android": {
"buildType": "apk"
}
xxxxxxxxxx
// eas.json
{
"build": {
"preview": {
"android": {
"buildType": "apk"
}
},
"preview2": {
"android": {
"gradleCommand": ":app:assembleRelease"
}
},
"preview3": {
"developmentClient": true
},
"preview4": {
"distribution": "internal"
},
"production": {}
}
}
// command
eas build -p android --profile preview
xxxxxxxxxx
// You want to change your eas.json to use buildType
{
"cli": {
"version": ">= 3.13.2" // whatever version you have
},
"build": {
"development": {
"distribution": "internal", // preset distribution
"android": {
"gradleCommand": ":app:assembleDebug"
},
"ios": {
"buildConfiguration": "Debug"
}
},
"preview": {
"distribution": "internal"
},
"production": {
"distribution": "internal",
"android": {
"buildType": "apk" // NEW ADDITION. Options are apk or app-bundle
}
}
},
// submit not needed, but here is a potential android submit
"submit": {
"production": {
"android": {
"serviceAccountKeyPath": "",
"track": "internal"
}
}
}
}
// Then rerun `eas build -p android`