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

Update RN Kotlin example for MainApplication.kt in manual-setup.mdx #8788

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

vbro1293
Copy link
Contributor

@vbro1293 vbro1293 commented Jan 2, 2024

I believe the getPackages Kotlin example is not valid Kotlin (it may have been ported from the react-native example comment - which now has a ticket to update the application of adding packages facebook/react-native#41856)

Pre-merge checklist

If you work at Sentry, you're able to merge your own PR without review, but please don't unless there's a good reason.

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs
  • PR was reviewed and approved by a member of the Sentry docs team

Description of changes

Update Kotlin example to valid Kotlin for MainApplication.kt

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

Extra resources

I believe the getPackages Kotlin example is not valid Kotlin (it may have been ported from the react-native example comment - which now has a ticket to update the application of adding packages facebook/react-native#41856)
@vbro1293 vbro1293 requested a review from a team as a code owner January 2, 2024 15:40
Copy link

vercel bot commented Jan 2, 2024

@vbro1293 is attempting to deploy a commit to the Sentry Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Jan 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 2, 2024 11:34pm

@shanamatthews
Copy link
Contributor

Thanks @vbro1293!

I'm going to have @krystofwoldrich review this to double check.

Copy link
Member

@krystofwoldrich krystofwoldrich left a comment

Choose a reason for hiding this comment

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

Thank you @vbro1293 for the update.

Note: The previous example was working as the packages val was not missing like in the RN example.

@krystofwoldrich krystofwoldrich changed the title Fix Kotlin example for MainApplication.kt in manual-setup.mdx Update RN Kotlin example for MainApplication.kt in manual-setup.mdx Jan 9, 2024
@krystofwoldrich krystofwoldrich merged commit 6b4bd76 into getsentry:master Jan 9, 2024
8 of 9 checks passed
@vbro1293
Copy link
Contributor Author

vbro1293 commented Jan 9, 2024

Nice, thanks @krystofwoldrich - I believe the main issue was that the use of new is not valid Kotlin

@github-actions github-actions bot locked and limited conversation to collaborators Jan 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants