Skip to content

Fix typos in unimplimented methods in MainAPI#1549

Merged
fire-light42 merged 3 commits into
recloudstream:masterfrom
Luna712:method-typo
Jun 22, 2025
Merged

Fix typos in unimplimented methods in MainAPI#1549
fire-light42 merged 3 commits into
recloudstream:masterfrom
Luna712:method-typo

Conversation

@Luna712

@Luna712 Luna712 commented Feb 8, 2025

Copy link
Copy Markdown
Contributor

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
@Suppress("UNUSED_PARAMETER")
fun LoadResponse.addTrackId(id: String?) {
// TODO add trackt sync
fun LoadResponse.addTraktId(id: String?) {

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

@fire-light42 fire-light42 merged commit fedfb22 into recloudstream:master Jun 22, 2025
2 checks passed
@Luna712 Luna712 deleted the method-typo branch December 6, 2025 17:49
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