Skip to content

Commit

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

Changelog: [Internal]

Differential Revision: D55605824
  • Loading branch information
arushikesarwani94 authored and facebook-github-bot committed Apr 2, 2024
1 parent 858bea9 commit 37e1f39
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 26 deletions.
4 changes: 4 additions & 0 deletions packages/react-native/ReactAndroid/api/ReactAndroid.api
Original file line number Diff line number Diff line change
Expand Up @@ -3654,9 +3654,13 @@ public final class com/facebook/react/runtime/JSCInstance$Companion {
}

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

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

public class com/facebook/react/runtime/ReactHostImpl : com/facebook/react/ReactHost {
public fun <init> (Landroid/content/Context;Lcom/facebook/react/runtime/ReactHostDelegate;Lcom/facebook/react/fabric/ComponentFactory;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;Lcom/facebook/react/interfaces/exceptionmanager/ReactJsExceptionHandler;ZZ)V
public fun <init> (Landroid/content/Context;Lcom/facebook/react/runtime/ReactHostDelegate;Lcom/facebook/react/fabric/ComponentFactory;ZLcom/facebook/react/interfaces/exceptionmanager/ReactJsExceptionHandler;Z)V
Expand Down

This file was deleted.

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

0 comments on commit 37e1f39

Please sign in to comment.