Skip to content

Conversation

@eseidel
Copy link

@eseidel eseidel commented Dec 12, 2025

Previously we were using globals, so it was not possible to have two separate engines pointing to two separate patches, but now it should be.

Fixes shorebirdtech/shorebird#1592.

Precursor to solving shorebirdtech/shorebird#2350.

@eseidel eseidel requested a review from bryanoltman December 12, 2025 05:50
fi

DART_SDK_BASE_URL="${FLUTTER_STORAGE_BASE_URL:-https://storage.googleapis.com}${ENGINE_REALM:+/$ENGINE_REALM}"
DART_SDK_BASE_URL="${FLUTTER_STORAGE_BASE_URL:-https://download.shorebird.dev}${ENGINE_REALM:+/$ENGINE_REALM}"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was an attempt to fix the bots. I believe this is the correct direction for us to go in, to move away from depending on FLUTTER_STORAGE_BASE_URL to be set and instead change all places where flutter goes to Google's servers and instead go to ours.

@eseidel eseidel merged commit 48ffc7c into shorebird/dev Dec 12, 2025
4 of 6 checks passed
@eseidel eseidel deleted the es/elf_cache branch December 12, 2025 17:04
eseidel added a commit that referenced this pull request Dec 13, 2025
)

* fix: stop using globals for patch data

* chore: run et format

* chore: add missing files

* test: add unittest

* chore: run et format

* chore: move elf_cache down into runtime

* chore: rename elf* to patch*

* chore: clean up logs

* chore: clean up comments

* chore: use Shorebird dart

* chore: small cleanup
eseidel added a commit that referenced this pull request Jan 8, 2026
)

* fix: stop using globals for patch data

* chore: run et format

* chore: add missing files

* test: add unittest

* chore: run et format

* chore: move elf_cache down into runtime

* chore: rename elf* to patch*

* chore: clean up logs

* chore: clean up comments

* chore: use Shorebird dart

* chore: small cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Support running multiple Flutter Engines with different Dart code in the same process

2 participants