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 JSRuntimeFactory to Kotlin (facebook#43748)
Summary: Pull Request resolved: facebook#43748 Changelog: [Internal] Differential Revision: D55605824
- Loading branch information
1 parent
858bea9
commit 37e1f39
Showing
3 changed files
with
32 additions
and
26 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
26 changes: 0 additions & 26 deletions
26
.../react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/JSRuntimeFactory.java
This file was deleted.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
...es/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/JSRuntimeFactory.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,28 @@ | ||
/* | ||
* 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.proguard.annotations.DoNotStrip | ||
import com.facebook.soloader.SoLoader | ||
import com.facebook.soloader.annotation.SoLoaderLibrary | ||
|
||
@SoLoaderLibrary("rninstance") | ||
public abstract class JSRuntimeFactory { | ||
public companion object { | ||
init { | ||
SoLoader.loadLibrary("rninstance") | ||
} | ||
} | ||
|
||
@DoNotStrip private val mHybridData: HybridData | ||
|
||
protected constructor(hybridData: HybridData) { | ||
mHybridData = hybridData | ||
} | ||
} |