Skip to content

Conversation

justnero
Copy link
Contributor

@justnero justnero commented Aug 23, 2025

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

  • Added correct types for packages/core/plugin/src/withSentryAndroidGradlePlugin.ts
  • Adjusted function argument names to make clear distinction and not overlap

💡 Motivation and Context

Fixes #5097

💚 How did you test it?

npm run lint:lerna
npm run test

And a manual change test on my project to verify it's actually the only reason.

📝 Checklist

  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled
  • I updated the docs if needed. (Not needed)
  • I updated the wizard if needed. (Not needed)
  • All tests passing
  • No breaking changes

🔮 Next steps

This probably misses the same expect.toEqual assertions for other branches, but overall is guaranteed by the type safety itself.

const cfg = withAppBuildGradle(config, config => {
if (config.modResults.language === 'groovy') {
config.modResults.contents = modifyAppBuildGradle(config.modResults.contents);
const cfg = withAppBuildGradle(config, appBuildGradle => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice catch!

@lucas-zimerman
Copy link
Collaborator

Overall looks good! I will do final checks tomorrow and if all good, I will approve it,

Copy link
Collaborator

@antonis antonis left a comment

Choose a reason for hiding this comment

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

Thank your contribution @justnero 🙇
The changes LGTM!

Leaving the final approval/merge to @lucas-zimerman in case he has more feedback 🙏

Copy link
Collaborator

@lucas-zimerman lucas-zimerman left a comment

Choose a reason for hiding this comment

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

LGTM!

@lucas-zimerman lucas-zimerman enabled auto-merge (squash) August 27, 2025 10:22
@lucas-zimerman lucas-zimerman merged commit 1c1e36e into getsentry:main Aug 27, 2025
51 of 52 checks passed
@justnero justnero deleted the ensure-android-plugin-type-safety branch August 27, 2025 15:17
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.

Expo prebuild fails unless it's a clean prebuild
3 participants