Skip to content

Undo a breaking change with I18nUtil.instance#45390

Closed
cortinico wants to merge 2 commits into
facebook:mainfrom
cortinico:export-D59638044
Closed

Undo a breaking change with I18nUtil.instance#45390
cortinico wants to merge 2 commits into
facebook:mainfrom
cortinico:export-D59638044

Conversation

@cortinico
Copy link
Copy Markdown
Contributor

Summary:
This undos a breaking change with I18nUtil for Kotlin consumer.
I've re-added a getInstance method so that Kotlin libraries won't break.
The method is added as Deprecated as those libraries need to migrate to .instance
accessors as more idiomatic.

Changelog:
[Android] [Fixed] - Undo a breaking change with I18nUtil.instance

Differential Revision: D59638044

Summary:
This undos a breaking change we're about to ship in 0.75, where Kotlin users
where forced to update this callsite to be `.getEntryIterator`.

This re-introduces a `entryIterator` val so both Kotlin and Java compatibility are retained.

Changelog:
[Android] [Fixed] - Undo breaking change for ReadableMap.entryIterator for Kotlin consumers

Differential Revision: D59637925
Summary:
This undos a breaking change with I18nUtil for Kotlin consumer.
I've re-added a `getInstance` method so that Kotlin libraries won't break.
The method is added as Deprecated as those libraries need to migrate to `.instance`
accessors as more idiomatic.

Changelog:
[Android] [Fixed] - Undo a breaking change with I18nUtil.instance

Differential Revision: D59638044
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Jul 11, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D59638044

*
* @deprecated Use instance instead
*/
@Deprecated("Use instance .instead, this is ", ReplaceWith("instance"))
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.

Suggested change
@Deprecated("Use instance .instead, this is ", ReplaceWith("instance"))
@Deprecated("Use .instance instead, this is ", ReplaceWith("instance"))

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 221755c.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jul 11, 2024
blakef pushed a commit that referenced this pull request Jul 15, 2024
Summary:
Pull Request resolved: #45390

This undos a breaking change with I18nUtil for Kotlin consumer.
I've re-added a `getInstance` method so that Kotlin libraries won't break.
The method is added as Deprecated as those libraries need to migrate to `.instance`
accessors as more idiomatic.

Changelog:
[Android] [Fixed] - Undo a breaking change with I18nUtil.instance

Reviewed By: alanleedev

Differential Revision: D59638044

fbshipit-source-id: 1c93a98676b5b01e89be3b974961c5f3ae919511
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants