5af62e61cd
ErrorReporter: - Init ErrorReporter at Setup onCreate using any previously saved URL (before the fix, init() was only called at step 3, so install errors happening in step 4 were silently dropped) - Add ErrorReporter.reportMessage() call in the STATUS_FAILURE else branch of installWithPackageInstaller (was showing error UI but sending nothing) Gateway pre-configuration: - finishSetup() now detects has_scale=true + gateway installed - If so, POSTs scale_enabled=true + scale_gateway_url=ws://127.0.0.1:8765 to the EverShelf server's save_settings API endpoint - This means the webapp works with the scale out-of-the-box after setup without the user having to go into web Settings and configure it manually