unity-builder
unity-builder copied to clipboard
When using Build Profiles the AndroidExportType sets the file target and can conflict
Issue When using Build Profiles with Android builds the AndroidExportType must be set. This can result in a Build Profile targeting a bundle when the AndroidExportType is a package. unity-builder sets the output file as an apk. When the build profile and the outfile file type are mismatched we will hit a Gradle failure when trying to process the final build output.
How to reproduce Specify a Build Profile with Bundle output, and AndroidExportType set to androidPackage
Expected behavior The Build Profile should either ignore or override the AndroidExportType. Simplest fix overrides that in the Builder, proper fix would be to ignore invalid params to the Unity invoke for Build Profiles.