fix: shorebird release takes a long time to complete even for starter project
App ID: 007a2cb9-86ee-4f73-90db-1d3322af1863
Description shorebird release takes a long time to create artifact even for starter flutter app (Counter app)
**Expected Behavior:
Takes time similar to flutter build command when creating an apk , aab or ipa
Additional Context
➜ flutter_codepush_poc git:(main) : shorebird release android --artifact apk
✓ Fetching apps (0.7s)
✓ Building app bundle with Flutter 3.24.0 (a44a61357b) (14.3s)
✓ Building APK with Flutter 3.24.0 (a44a61357b) (9.0s)
✓ Release version: 1.0.1+1 (3.6s)
✓ Fetching releases (0.7s)
🚀 Ready to create a new release!
📱 App: flutter_codepush_poc (007a2cb9-86ee-4f73-90db-1d3322af1863)
📦 Release Version: 1.0.1+1
🕹️ Platform: android
🐦 Flutter Version: 3.24.0 (a44a61357b)
Would you like to continue? (y/N) Yes
✓ Fetching releases (0.4s)
✓ Creating release (1.0s)
✓ Updating release status (0.4s)
✓ Creating artifacts (347.4s)
✓ Updating release status (2.9s)
✅ Published Release 1.0.1+1!
Your next step is to upload the app bundle to the Play Store:
/Users/natesh.bhat/Desktop/isha/flutter_codepush_poc/build/app/outputs/bundle/release/app-release.aab
Or distribute the apk:
/Users/natesh.bhat/Desktop/isha/flutter_codepush_poc/build/app/outputs/flutter-apk/app-release.apk
For information on uploading to the Play Store, see:
https://support.google.com/googleplay/android-developer/answer/9859152?hl=en
To create a patch for this release, run shorebird patch --platforms=android --release-version=1.0.1+1
Note: shorebird patch --platforms=android without the --release-version option will patch the current version of the app.
shorebird release runs flutter build along with several other commands, so it will always take longer than just running flutter build by itself.
That said, it looks like this command spent the longest amount of time on the Creating artifacts step, which is not an especially compute-intensive step. Is your internet connection weak/slow/spotty?
That could have been one of the problems. Yesterday I did face some Internet lags