-
Notifications
You must be signed in to change notification settings - Fork 660
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
Conversation
✅ Deploy Preview for apollo-android-docs canceled.
|
companion object { | ||
const val apollo4LatestVersion = "4.0.0-beta.4" |
There was a problem hiding this comment.
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
// Do not warn until 4.0 is stable (but keep enabled always in unit tests) | ||
private val isEnabled = isUnitTestMode() || !ApolloV3ToV4MigrationProcessor.apollo4LatestVersion.contains('-') |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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? 👀
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
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 🙃
No description provided.