#shorebird_code_push - Shorebird Engine not available

1 messages Β· Page 1 of 1 (latest)

unborn umbra
#

I have a problem implementing the shorebird package.

final shorebirdCodePush = ShorebirdCodePush();
shorebirdCodePush.currentPatchNumber().then((currentPatchVersion) {
_currentPatchVersion = currentPatchVersion;
});

I want to know which is the patch that I have installed in the device, but it always returns a null, when debugging, it sends me the following error:

I/flutter (24419): [ShorebirdCodePush]: Shorebird Engine not available, using no-op implementation.

But, if the patch is downloaded to the device, patch 2 was launched:

C:\Users\victo\Desktop\D2G\New D2G\15\d2g-consumer-ver15\build\app\outputs\flutter-apk> shorebird patch android
βœ“ Fetching apps (2.9s)
βœ“ Building patch (905.0s)
βœ“ Detected release version 2.0.1+68 (2.2s)
βœ“ Fetching releases (0.5s)
βœ“ Fetching release artifacts (0.4s)
βœ“ Fetching aab artifact (0.1s)
βœ“ Downloading release artifacts (222.4s)
βœ“ Verifying patch can be applied to release (0.3s)
βœ“ Creating artifacts (105.8s)

πŸš€ Ready to publish a new patch!

πŸ“± App: ....
πŸ“¦ Release Version:

Would you like to continue? (y/N) Yes
βœ“ Creating patch (1.0s)
βœ“ Uploading artifacts (2.8s)
βœ“ Fetching channels (0.1s)
βœ“ Promoting patch to stable (0.1s)

βœ… Published Patch 2!

wise crow
#

Hi @unborn umbra πŸ‘‹
The Shorebird Engine is only available in release builds that were generated using shorebird release <platform>. It will not be available in debug builds using flutter run.

You can use the shorebird preview command to preview an existing release to verify the shorebird_code_push package interactions. See https://docs.shorebird.dev/guides/staging-patches for more info.

Stage, validate, and promote patches