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

Fix typos in unimplimented methods in MainAPI #1549

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Luna712
Copy link
Contributor

@Luna712 Luna712 commented Feb 8, 2025

No description provided.

@Luna712 Luna712 changed the title Fix typo in unimplimented method in MainAPI Fix typos in unimplimented methods in MainAPI Feb 9, 2025
this.addSimklId(SimklSyncServices.Imdb, id)
}

@Suppress("UNUSED_PARAMETER")
fun LoadResponse.addTrackId(id: String?) {
// TODO add trackt sync
fun LoadResponse.addTraktId(id: String?) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

While this might seam like an easy fix, it is not. Modifying the api means that until a new stable, either stable or pre is going to crash, even if the implementation is empty. To fix this, please add back the old functions too, but mark them as @Deprecated("Outdated API", ReplaceWith("addTraktId(id)")), and make them call the new functions.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Dont forget @Prerelease tag. Or instead add @JvmName("oldjvmnamehere").

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh right thanks. Good point.

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.

2 participants