Map<String, String> _environmentOverrides({
required String executable,
}) {
if (executable == 'flutter') {
// If this ever changes we also need to update the `shorebird` shell
// wrapper which downloads runs Flutter to fetch artifacts the first time.
- return {'FLUTTER_STORAGE_BASE_URL': 'https://download.shorebird.dev'};
+ return {'FLUTTER_STORAGE_BASE_URL': 'http://localhost:8080'};
}
return {};
}
}
In addition, the local build.gradle needs to be modified to allow http:
It would be nice to expose an environment variable that can be specified to override this without modifying the source e.g. SHOREBIRD_ARTIFACT_PROXY_URL.
Not sure about how to improve the build.gradle experience but open to suggestions.
Description
Currently, in order to use a local instance of the artifact proxy, we need to manually change two places:
shorebird/third_party/flutter/bin/internal/shared.sh
shorebird/packages/shorebird_cli/lib/src/shorebird_process.dart
In addition, the local
build.gradle
needs to be modified to allowhttp
:It would be nice to expose an environment variable that can be specified to override this without modifying the source e.g.
SHOREBIRD_ARTIFACT_PROXY_URL
.Not sure about how to improve the
build.gradle
experience but open to suggestions.