mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Mark NativeModule interop classes with InteropLegacyArchitecture (#50926)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/50926 Mark NativeModule interop classes with InteropLegacyArchitecture changelog: [internal] internal Reviewed By: shwanton Differential Revision: D73407611 fbshipit-source-id: 57de0ec81209ec0947520278f3adbc9c0bb58369
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a7b0619846
commit
7e4ec7d8d3
+2
-2
@@ -9,12 +9,12 @@ package com.facebook.react.bridge
|
||||
|
||||
import com.facebook.jni.HybridData
|
||||
import com.facebook.proguard.annotations.DoNotStrip
|
||||
import com.facebook.react.common.annotations.internal.LegacyArchitecture
|
||||
import com.facebook.react.common.annotations.internal.InteropLegacyArchitecture
|
||||
import com.facebook.react.common.annotations.internal.LegacyArchitectureLogger
|
||||
|
||||
/** This does nothing interesting, except avoid breaking existing code. */
|
||||
@DoNotStrip
|
||||
@LegacyArchitecture
|
||||
@InteropLegacyArchitecture
|
||||
public open class CxxModuleWrapper protected constructor(hybridData: HybridData) :
|
||||
CxxModuleWrapperBase(hybridData) {
|
||||
private companion object {
|
||||
|
||||
+2
-2
@@ -9,7 +9,7 @@ package com.facebook.react.bridge
|
||||
|
||||
import com.facebook.jni.HybridData
|
||||
import com.facebook.proguard.annotations.DoNotStrip
|
||||
import com.facebook.react.common.annotations.internal.LegacyArchitecture
|
||||
import com.facebook.react.common.annotations.internal.InteropLegacyArchitecture
|
||||
import com.facebook.react.common.annotations.internal.LegacyArchitectureLogLevel
|
||||
import com.facebook.react.common.annotations.internal.LegacyArchitectureLogger
|
||||
|
||||
@@ -20,7 +20,7 @@ import com.facebook.react.common.annotations.internal.LegacyArchitectureLogger
|
||||
* the underlying Cxx module will be extracted by the bridge and called directly.
|
||||
*/
|
||||
@DoNotStrip
|
||||
@LegacyArchitecture
|
||||
@InteropLegacyArchitecture
|
||||
public open class CxxModuleWrapperBase
|
||||
protected constructor(
|
||||
// For creating a wrapper from C++, or from a derived class.
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
package com.facebook.react.bridge
|
||||
|
||||
import com.facebook.proguard.annotations.DoNotStrip
|
||||
import com.facebook.react.common.annotations.internal.LegacyArchitecture
|
||||
import com.facebook.react.common.annotations.internal.InteropLegacyArchitecture
|
||||
import com.facebook.react.common.annotations.internal.LegacyArchitectureLogLevel
|
||||
import com.facebook.react.common.annotations.internal.LegacyArchitectureLogger.assertLegacyArchitecture
|
||||
import com.facebook.react.turbomodule.core.interfaces.TurboModule
|
||||
@@ -23,7 +23,7 @@ import java.lang.reflect.Method
|
||||
* read and means fewer JNI calls.
|
||||
*/
|
||||
@DoNotStrip
|
||||
@LegacyArchitecture
|
||||
@InteropLegacyArchitecture
|
||||
internal class JavaModuleWrapper(
|
||||
private val jsInstance: JSInstance,
|
||||
private val moduleHolder: ModuleHolder
|
||||
|
||||
Reference in New Issue
Block a user