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

[IJ plugin] Don't suggest v4 migration until it is stable #5477

Merged
merged 1 commit into from Dec 15, 2023

Conversation

BoD
Copy link
Contributor

@BoD BoD commented Dec 13, 2023

No description provided.

Copy link

netlify bot commented Dec 13, 2023

Deploy Preview for apollo-android-docs canceled.

Name Link
🔨 Latest commit e96fafb
🔍 Latest deploy log https://app.netlify.com/sites/apollo-android-docs/deploys/65798f622f8c290008935934

Comment on lines +31 to +32
companion object {
const val apollo4LatestVersion = "4.0.0-beta.4"
Copy link
Contributor

Choose a reason for hiding this comment

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

You could use com.apollographql.apollo3.compiler.APOLLO_VERSION to have this match the published version automatically without having to bump this every time

Comment on lines +40 to +41
// Do not warn until 4.0 is stable (but keep enabled always in unit tests)
private val isEnabled = isUnitTestMode() || !ApolloV3ToV4MigrationProcessor.apollo4LatestVersion.contains('-')
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't work for SNAPSHOTs like 4.0.1-SNAPSHOT which is OK if you maintain apollo4LatestVersion manually. Alternative would be using something like https://github.com/swiftzer/semver to do proper semver but that's more involved. Your call.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll keep as-is to very slightly (debatable!) err on Bill's razor's side

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good 👍 . Also, who's Bill? 👀

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Our friend good ol' Bill Occam!

Copy link
Contributor

Choose a reason for hiding this comment

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

Aahh William! Or is he known under 2 names? Which would be quite ironic 🙃

@BoD BoD merged commit 54a1864 into main Dec 15, 2023
9 checks passed
@BoD BoD deleted the ij-plugin-dont-warn-until-v4-is-stable branch December 15, 2023 10:25
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.

None yet

2 participants