Skip to content

feat(flutter): Add Flutter support - #735

Merged
buenaflor merged 49 commits into
getsentry:masterfrom
denrase:feat/flutter-support
Feb 3, 2025
Merged

buenaflor merged 49 commits into
getsentry:masterfrom
denrase:feat/flutter-support

Conversation

@denrase

@denrase denrase commented Dec 3, 2024 •

Copy link
Copy Markdown
Collaborator
  • Add flutter as a platform
  • Patch main.dart with import, sentry setup and sample snippet
  • Patch pubspec.yaml with sentry_flutter dependency and plugin to upload debug symbols and source maps

Closes getsentry/sentry-dart#2424
Relates to #558

We need to read both pubspec.yaml and sentry.properties. The current plugin treats them as mutually exclusive. Fixed here:

Blocked by getsentry/sentry-dart-plugin#295

@denrase denrase changed the title WIP: Flutter Support Add Flutter support Dec 9, 2024
@denrase denrase changed the title Add Flutter support feat(flutter): Add Flutter support Dec 9, 2024
@denrase
denrase marked this pull request as ready for review December 9, 2024 13:57
@denrase

denrase commented Dec 9, 2024

Copy link
Copy Markdown
Collaborator Author

@buenaflor Ready for the first review/feedback round :)

@buenaflor buenaflor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'll have another look later

Comment thread src/flutter/flutter-wizzard.ts Resolved
Comment thread src/flutter/flutter-wizzard.ts Resolved

@Lms24 Lms24 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hey, leaving a first pass review for general wizard recommendations. This is not technical as I have very little to no context around Flutter.

  • Ideally, we can make the SDK features selectable from the start as we've done recently with the JS-SDK wizards. See #558
  • Great to see some tests for this flow! :) I recommend adding an e2e test app as well as this proved quite useful for our other wizards.

Feel free to disregard my advice as I'll happily leave the final call to the mobile team. Don't want to block you, just share some recommendations :)

Comment thread src/flutter/flutter-wizzard.ts Resolved
@denrase
denrase requested a review from smeubank December 19, 2024 10:20
@buenaflor

Copy link
Copy Markdown
Contributor

@krystofwoldrich could you take another looks pls 🙏

Comment thread src/flutter/code-tools.ts Resolved
Comment thread src/flutter/templates.ts Resolved
@denrase
denrase requested a review from buenaflor January 21, 2025 15:54
@denrase

denrase commented Jan 22, 2025

Copy link
Copy Markdown
Collaborator Author

@buenaflor Updated the description with the plugin PR, by which this PR is blocked.

@buenaflor

Copy link
Copy Markdown
Contributor

@denrase dart plugin 2.4.0 is out so this is unblocked

@denrase

denrase commented Jan 27, 2025

Copy link
Copy Markdown
Collaborator Author

We fetch the most recent version, so apart form another review round we should be god to go.

const pluginVersion = await fetchSdkVersion('sentry.dart.plugin');

@buenaflor

buenaflor commented Jan 28, 2025 •

Copy link
Copy Markdown
Contributor

@denrase imo it looks good, there's some test failing though, dunno if it's flaky

Seems like the tests are failing, I already re-ran them

@Lms24

Lms24 commented Jan 28, 2025

Copy link
Copy Markdown
Member

there's some test failing though, dunno if it's flaky

Just passing by since I saw this comment: If you rebase the PR to latest master the tests should pass. This was fixed in #766

@denrase

denrase commented Jan 28, 2025

Copy link
Copy Markdown
Collaborator Author

@Lms24 PR #766 is already merged in here. The nuxt tests are failing with a timeout.

Bildschirmfoto 2025-01-28 um 14 37 11 Bildschirmfoto 2025-01-28 um 14 37 19

@Lms24

Lms24 commented Jan 28, 2025

Copy link
Copy Markdown
Member

Hmm so @andreiborza and I looked into this and we have a slight suspicion what could cause it but honestly, nothing concrete. Given it worked in the latest run, let's ignore it for now 😅

Out of scope for this PR but leaving it here: If this comes up again or in other PRs, we should make our method of checking for a successful app start more robust. Either we make a request against the started endpoint or we use something like Playwright to check for a successful pageload/whatever.

@buenaflor

Copy link
Copy Markdown
Contributor

seems like tests run now, guess it was flaky?

@buenaflor buenaflor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm 👍

Comment thread src/flutter/flutter-wizard.ts Resolved
@krystofwoldrich

Copy link
Copy Markdown
Contributor

@denrase Thank you for adding the Flutter wizard, I've checked the latest changes and it looks good.

I noticed one small typo #735 (comment)

@denrase

denrase commented Jan 29, 2025

Copy link
Copy Markdown
Collaborator Author

@krystofwoldrich done, thank you! 🙇

@buenaflor

Copy link
Copy Markdown
Contributor

@Lms24 I'm noticing nuxt tests are timing out again, should we wait for a fix or are can we merge? I've re-ran a couple times but didn't succeed yet

@buenaflor
buenaflor merged commit e50def3 into getsentry:master Feb 3, 2025
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.

Add sentry wizard support

5 participants