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 *NativeMap classes to Kotlin
Summary: # Changelog: [Internal] - This converts the vertical of NativeArray/ReadableNativeArray/WritableNativeArray classes to Kotlin. Differential Revision: D57329244
- Loading branch information
1 parent
292ebd8
commit ff719eb
Showing
7 changed files
with
327 additions
and
412 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/NativeMap.java
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeMap.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,23 @@ | ||
/* | ||
* 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 a Map whose keys and values are stored in native code (C++). */ | ||
@DoNotStrip | ||
public abstract class NativeMap(@field:DoNotStrip private val mHybridData: HybridData?) { | ||
external override fun toString(): String | ||
|
||
private companion object { | ||
init { | ||
ReactBridge.staticInit() | ||
} | ||
} | ||
} |
298 changes: 0 additions & 298 deletions
298
.../react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableNativeMap.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.