Skip to content

Conversation

@runningcode
Copy link
Contributor

@runningcode runningcode commented Jan 26, 2026

Update the size analysis and build distribution documentation to use dynamic version fetching for the Sentry Android Gradle plugin instead of a hardcoded version.

Fixes EME-758

…structions (EME-758)

Replace hardcoded version (6.0.0-rc.1) with dynamic version fetched from
package registry. This ensures the docs always show the latest available
version for size analysis and build distribution features.

Co-Authored-By: Claude <noreply@anthropic.com>
@linear
Copy link

linear bot commented Jan 26, 2026

@vercel
Copy link

vercel bot commented Jan 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
develop-docs Ready Ready Preview, Comment Jan 27, 2026 8:55am
sentry-docs Ready Ready Preview, Comment Jan 27, 2026 8:55am

Request Review

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

Use optional chaining to handle case where packageRegistry.data might be null,
consistent with other components like PlatformSdkDetail and JsBundleList.

Co-Authored-By: Claude <noreply@anthropic.com>
export async function GradleUploadInstructions({feature}: Props) {
const featureName = feature === 'sizeAnalysis' ? 'size analysis' : 'distribution';

const packageRegistry = await getPackageRegistry();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the mdx injection doesn't work here since this is a tsx file so this is the best solution i could come up with.

this code is used for size analysis and build distribution

@runningcode runningcode requested a review from chromy January 26, 2026 14:58
@chromy
Copy link
Contributor

chromy commented Jan 26, 2026

I think we need to add something else if we do this:

source.includes('<LambdaLayerDetail');

but maybe we can use:

type PlatformSdkPackageNameProps = {
? (or something very similar but that gets the version).

Adds GradleUploadInstructions to the registry dependency detection in
mdx.ts so that MDX files using this component are properly cache
invalidated when the Release Registry data changes.

Also updates the fallback version to 7.12.3 for testing.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@runningcode
Copy link
Contributor Author

Nice catch @chromy! I've updated the PR

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
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.

3 participants