Currently Project Auditor includes the last BuildReport as part of the analysis report. It is also supposed to update the BuildReport after each build. Unfortunately, this does not work well since the creation of the BuildReport asset relies on the OnPostprocessBuild callback. The problem with this callback is that the Library/LastBuild.buildreport file is not created yet when OnPostprocessBuild is executed. The other problem is that the UI does not inform the user that the report has been updated.
With this PR we are changing the behaviour so that:
a new BuildReport asset is always created from the last BuildReport after each a build, regardless of any Project Auditor analysis. This allows the user to easily select a BuildReport asset for viewing in the Inspector
the BuildReport included in the Project Auditor analysis is the latest at the time of analysis and will never be updated
Currently Project Auditor includes the last BuildReport as part of the analysis report. It is also supposed to update the BuildReport after each build. Unfortunately, this does not work well since the creation of the BuildReport asset relies on the OnPostprocessBuild callback. The problem with this callback is that the Library/LastBuild.buildreport file is not created yet when OnPostprocessBuild is executed. The other problem is that the UI does not inform the user that the report has been updated.
With this PR we are changing the behaviour so that: