Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(flutter): Add Flutter support #735

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

denrase
Copy link

@denrase denrase commented Dec 3, 2024

  • 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

Closes getsentry/sentry-dart#2424

@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
Copy link
Author

denrase commented Dec 9, 2024

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

Copy link

@buenaflor buenaflor left a comment

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

const { selectedProject, selfHosted, sentryUrl, authToken } =
await getOrAskForProjectData(options, 'flutter');

// const dsn = selectedProject.keys[0].dsn.public;
Copy link

@buenaflor buenaflor Dec 10, 2024

Choose a reason for hiding this comment

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

can we remove this comment?

${chalk.greenBright('Successfully installed the Sentry Flutter SDK!')}

${chalk.cyan(
`You can validate your setup by launching your application and checking Sentry issues page afterwards

Choose a reason for hiding this comment

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

Should it make sense to give more specific instructions? Since we set up the plugin as well the app should be able to have symbolicated stacktraces. Telling the user to start the app I assume most people will just run it in dev mode

Choose a reason for hiding this comment

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

btw @denrase wizard filename is wrong -> wizzard

Copy link
Member

@Lms24 Lms24 left a comment

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 Make Sentry features selectable in wizard #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 :)

Copy link
Member

Choose a reason for hiding this comment

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

flutter-wizard.ts not flutter-wizzard.ts

just a typo

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
4 participants