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 JSCInstance to Kotlin (facebook#43750)
Summary: Pull Request resolved: facebook#43750 Changelog: [Internal] Differential Revision: D55610929
- Loading branch information
1 parent
2477fbc
commit c3c1937
Showing
3 changed files
with
29 additions
and
29 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
27 changes: 0 additions & 27 deletions
27
packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/JSCInstance.java
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/JSCInstance.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,24 @@ | ||
/* | ||
* 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.runtime | ||
|
||
import com.facebook.jni.HybridData | ||
import com.facebook.jni.annotations.DoNotStrip | ||
import com.facebook.soloader.SoLoader | ||
import com.facebook.soloader.annotation.SoLoaderLibrary | ||
|
||
@SoLoaderLibrary("jscinstance") | ||
public class JSCInstance constructor() : JSRuntimeFactory(initHybrid()) { | ||
public companion object { | ||
init { | ||
SoLoader.loadLibrary("jscinstance") | ||
} | ||
|
||
@DoNotStrip protected external fun initHybrid(): HybridData | ||
} | ||
} |