Skip to content

Commit

Permalink
Migrate JSCInstance to Kotlin (facebook#43750)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#43750

Changelog: [Internal]

Differential Revision: D55610929
  • Loading branch information
arushikesarwani94 authored and facebook-github-bot committed Apr 2, 2024
1 parent 2477fbc commit c3c1937
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 29 deletions.
7 changes: 5 additions & 2 deletions packages/react-native/ReactAndroid/api/ReactAndroid.api
Original file line number Diff line number Diff line change
Expand Up @@ -3645,9 +3645,12 @@ public class com/facebook/react/runtime/CoreReactPackage$$ReactModuleInfoProvide
public fun getReactModuleInfos ()Ljava/util/Map;
}

public class com/facebook/react/runtime/JSCInstance : com/facebook/react/runtime/JSRuntimeFactory {
public final class com/facebook/react/runtime/JSCInstance : com/facebook/react/runtime/JSRuntimeFactory {
public static final field Companion Lcom/facebook/react/runtime/JSCInstance$Companion;
public fun <init> ()V
protected static fun initHybrid ()Lcom/facebook/jni/HybridData;
}

public final class com/facebook/react/runtime/JSCInstance$Companion {
}

public abstract class com/facebook/react/runtime/JSRuntimeFactory {
Expand Down

This file was deleted.

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
}
}

0 comments on commit c3c1937

Please sign in to comment.