forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate NativeArray classes to Kotlin (facebook#44569)
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
- Loading branch information
1 parent
524e3ee
commit ae698f4
Showing
12 changed files
with
200 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 0 additions & 28 deletions
28
packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeArray.java
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeArray.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
package com.facebook.react.bridge | ||
|
||
import com.facebook.jni.HybridData | ||
import com.facebook.proguard.annotations.DoNotStrip | ||
|
||
/** Base class for an array whose members are stored in native code (C++). */ | ||
@DoNotStrip | ||
public abstract class NativeArray | ||
protected constructor(@field:DoNotStrip private val mHybridData: HybridData?) : | ||
NativeArrayInterface { | ||
external override fun toString(): String | ||
|
||
protected companion object { | ||
init { | ||
ReactBridge.staticInit() | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
174 changes: 0 additions & 174 deletions
174
...eact-native/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableNativeArray.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.