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

Migrate NativeArray classes to Kotlin #44569

Closed
wants to merge 1 commit into from

Conversation

rshest
Copy link
Contributor

@rshest rshest commented May 14, 2024

Summary:

Changelog:

[Internal] -

This converts the vertical of NativeArray/ReadableNativeArray/WritableNativeArray classes to Kotlin.

Differential Revision: D57327835

@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 May 14, 2024
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

@rshest rshest force-pushed the export-D57327835 branch from e60cd87 to 1e8eb18 Compare May 15, 2024 11:04
rshest added a commit to rshest/react-native that referenced this pull request May 15, 2024
Summary:
Pull Request resolved: facebook#44569

# Changelog:
[Internal] -

This converts the vertical of NativeArray/ReadableNativeArray/WritableNativeArray classes to Kotlin.

NOTE: the `getArray`, `getMap` and `getString` being annotated as `NonNull` in the Java code is a scam - there is no guarantee that native side will send non-null to the Java side, and in practice, indeed, in certain cases it doesn't. So I opted to make it nullable instead - this way it's at least explicit and is not a ticking bomb hidden to explode behind the false sense of security.

Differential Revision: D57327835
rshest added a commit to rshest/react-native that referenced this pull request May 15, 2024
Summary:
Pull Request resolved: facebook#44569

# Changelog:
[Internal] -

This converts the vertical of NativeArray/ReadableNativeArray/WritableNativeArray classes to Kotlin.

Differential Revision: https://internalfb.com/D57327835
rshest added a commit to rshest/react-native that referenced this pull request May 15, 2024
Summary:
Pull Request resolved: facebook#44569

# Changelog:
[Internal] -

This converts the vertical of NativeArray/ReadableNativeArray/WritableNativeArray classes to Kotlin.

Differential Revision: https://internalfb.com/D57327835
rshest added a commit to rshest/react-native that referenced this pull request May 15, 2024
Summary:
Pull Request resolved: facebook#44569

# Changelog:
[Internal] -

This converts the vertical of NativeArray/ReadableNativeArray/WritableNativeArray classes to Kotlin.

NOTE: the `getArray`, `getMap` and `getString` being annotated as `NonNull` in the Java code is a scam - there is no guarantee that native side will send non-null to the Java side, and in practice, indeed, in certain cases it doesn't. So I opted to make it nullable instead - this way it's at least explicit and is not a ticking bomb hidden to explode behind the false sense of security.

Differential Revision: https://internalfb.com/D57327835
@facebook-github-bot
Copy link
Contributor

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

rshest added a commit to rshest/react-native that referenced this pull request May 15, 2024
Summary:
Pull Request resolved: facebook#44569

# Changelog:
[Internal] -

This converts the vertical of NativeArray/ReadableNativeArray/WritableNativeArray classes to Kotlin.

NOTE: the `getArray`, `getMap` and `getString` being annotated as `NonNull` in the Java code is a scam - there is no guarantee that native side will send non-null to the Java side, and in practice, indeed, in certain cases it doesn't. So I opted to make it nullable instead - this way it's at least explicit and is not a ticking bomb hidden to explode behind the false sense of security.

Differential Revision: D57327835
@rshest rshest force-pushed the export-D57327835 branch from 1e8eb18 to c713cb2 Compare May 15, 2024 14:37
rshest added a commit to rshest/react-native that referenced this pull request May 15, 2024
Summary:
Pull Request resolved: facebook#44569

# Changelog:
[Internal] -

This converts the vertical of NativeArray/ReadableNativeArray/WritableNativeArray classes to Kotlin.

NOTE: the `getArray`, `getMap` and `getString` being annotated as `NonNull` in the Java code is a scam - there is no guarantee that native side will send non-null to the Java side, and in practice, indeed, in certain cases it doesn't. So I opted to make it nullable instead - this way it's at least explicit and is not a ticking bomb hidden to explode behind the false sense of security.

Differential Revision: https://internalfb.com/D57327835
rshest added a commit to rshest/react-native that referenced this pull request May 15, 2024
Summary:
Pull Request resolved: facebook#44569

# Changelog:
[Internal] -

This converts the vertical of NativeArray/ReadableNativeArray/WritableNativeArray classes to Kotlin.

NOTE: the `getArray`, `getMap` and `getString` being annotated as `NonNull` in the Java code is a scam - there is no guarantee that native side will send non-null to the Java side, and in practice, indeed, in certain cases it doesn't. So I opted to make it nullable instead - this way it's at least explicit and is not a ticking bomb hidden to explode behind the false sense of security.

Differential Revision: https://internalfb.com/D57327835
rshest added a commit to rshest/react-native that referenced this pull request May 15, 2024
Summary:
Pull Request resolved: facebook#44569

# Changelog:
[Internal] -

This converts the vertical of NativeArray/ReadableNativeArray/WritableNativeArray classes to Kotlin.

NOTE: the `getArray`, `getMap` and `getString` being annotated as `NonNull` in the Java code is a scam - there is no guarantee that native side will send non-null to the Java side, and in practice, indeed, in certain cases it doesn't. So I opted to make it nullable instead - this way it's at least explicit and is not a ticking bomb hidden to explode behind the false sense of security.

Differential Revision: https://internalfb.com/D57327835
rshest added a commit to rshest/react-native that referenced this pull request May 15, 2024
Summary:
Pull Request resolved: facebook#44569

# Changelog:
[Internal] -

This converts the vertical of NativeArray/ReadableNativeArray/WritableNativeArray classes to Kotlin.

NOTE: the `getArray`, `getMap` and `getString` being annotated as `NonNull` in the Java code is a scam - there is no guarantee that native side will send non-null to the Java side, and in practice, indeed, in certain cases it doesn't. So I opted to make it nullable instead - this way it's at least explicit and is not a ticking bomb hidden to explode behind the false sense of security.

Differential Revision: https://internalfb.com/D57327835
@facebook-github-bot
Copy link
Contributor

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

@rshest rshest force-pushed the export-D57327835 branch from c713cb2 to 998e654 Compare August 2, 2024 15:15
rshest added a commit to rshest/react-native that referenced this pull request Aug 2, 2024
Summary:
Pull Request resolved: facebook#44569

# Changelog:
[Internal] -

This converts the vertical of NativeArray/ReadableNativeArray/WritableNativeArray classes to Kotlin.

NOTE: the `getArray`, `getMap` and `getString` being annotated as `NonNull` in the Java code is a scam - there is no guarantee that native side will send non-null to the Java side, and in practice, indeed, in certain cases it doesn't. So I opted to make it nullable instead - this way it's at least explicit and is not a ticking bomb hidden to explode behind the false sense of security.

Reviewed By: javache

Differential Revision: D57327835
@facebook-github-bot
Copy link
Contributor

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

rshest added a commit to rshest/react-native that referenced this pull request Aug 2, 2024
Summary:
Pull Request resolved: facebook#44569

# Changelog:
[Internal] -

This converts the vertical of NativeArray/ReadableNativeArray/WritableNativeArray classes to Kotlin.

NOTE: the `getArray`, `getMap` and `getString` being annotated as `NonNull` in the Java code is a scam - there is no guarantee that native side will send non-null to the Java side, and in practice, indeed, in certain cases it doesn't. So I opted to make it nullable instead - this way it's at least explicit and is not a ticking bomb hidden to explode behind the false sense of security.

Reviewed By: javache

Differential Revision: D57327835
@rshest rshest force-pushed the export-D57327835 branch from 998e654 to c0f52b8 Compare August 2, 2024 16:32
Summary:
Pull Request resolved: facebook#44569

# Changelog:
[Internal] -

This converts the vertical of NativeArray/ReadableNativeArray/WritableNativeArray classes to Kotlin.

NOTE: the `getArray`, `getMap` and `getString` being annotated as `NonNull` in the Java code is a scam - there is no guarantee that native side will send non-null to the Java side, and in practice, indeed, in certain cases it doesn't. So I opted to make it nullable instead - this way it's at least explicit and is not a ticking bomb hidden to explode behind the false sense of security.

Reviewed By: javache

Differential Revision: D57327835
@facebook-github-bot
Copy link
Contributor

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

@rshest rshest force-pushed the export-D57327835 branch from c0f52b8 to d165515 Compare August 2, 2024 16:41
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Aug 2, 2024
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 878e1f3.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @rshest in 878e1f3

When will my fix make it into a release? | How to file a pick request?

bvanderhoof pushed a commit to bvanderhoof/react-native that referenced this pull request Aug 3, 2024
Summary:
Pull Request resolved: facebook#44569
Changelog:
[Internal] -
Reverting this diff due to internal build crashes:

This converts the vertical of NativeArray/ReadableNativeArray/WritableNativeArray classes to Kotlin.

Reviewed By: bvanderhoof

Differential Revision: D60707170
facebook-github-bot pushed a commit that referenced this pull request Aug 3, 2024
Summary:
Pull Request resolved: #45884

Pull Request resolved: #44569
Changelog:
[Internal] -
Reverting this diff due to internal build crashes:

This converts the vertical of NativeArray/ReadableNativeArray/WritableNativeArray classes to Kotlin.

Reviewed By: bvanderhoof

Differential Revision: D60707170

fbshipit-source-id: 95e66ebe725d0ff625b50f4711872b9f70ec2f7c
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