@rusaint/react-native 0.10.0-dev.2 → 0.10.0-dev.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/android/CMakeLists.txt +1 -1
  2. package/android/build.gradle +3 -3
  3. package/android/cpp-adapter.cpp +8 -8
  4. package/android/generated/java/{dev/eatsteak/rusaint/reactnative/NativeReactNativeSpec.java → com/facebook/fbreact/specs/NativeRusaintReactNativeSpec.java} +4 -4
  5. package/android/generated/jni/CMakeLists.txt +5 -5
  6. package/android/generated/jni/{RNReactNativeSpec-generated.cpp → RNRusaintSpec-generated.cpp} +9 -9
  7. package/android/generated/jni/{RNReactNativeSpec.h → RNRusaintSpec.h} +4 -4
  8. package/android/generated/jni/react/renderer/components/RNRusaintSpec/RNRusaintSpecJSI-generated.cpp +32 -0
  9. package/{ios/generated/RNReactNativeSpecJSI.h → android/generated/jni/react/renderer/components/RNRusaintSpec/RNRusaintSpecJSI.h} +9 -9
  10. package/android/src/main/AndroidManifestNew.xml +5 -0
  11. package/android/src/main/java/dev/eatsteak/rusaint/reactnative/{ReactNativeModule.kt → RusaintReactNativeModule.kt} +4 -4
  12. package/android/src/main/java/dev/eatsteak/rusaint/reactnative/{ReactNativePackage.kt → RusaintReactNativePackage.kt} +6 -6
  13. package/build/RusaintReactNative.xcframework/_CodeSignature/CodeDirectory +0 -0
  14. package/build/RusaintReactNative.xcframework/_CodeSignature/CodeRequirements +0 -0
  15. package/build/RusaintReactNative.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
  16. package/build/{RusaintReactNativeFramework.xcframework → RusaintReactNative.xcframework}/_CodeSignature/CodeSignature +0 -0
  17. package/cpp/rusaint-react-native.cpp +1 -1
  18. package/cpp/rusaint-react-native.h +4 -4
  19. package/ios/{ReactNative.h → RusaintReactNative.h} +3 -3
  20. package/ios/{ReactNative.mm → RusaintReactNative.mm} +16 -16
  21. package/ios/generated/RCTAppDependencyProvider.h +25 -0
  22. package/ios/generated/RCTAppDependencyProvider.mm +35 -0
  23. package/ios/generated/RCTModuleProviders.h +16 -0
  24. package/ios/generated/RCTModuleProviders.mm +51 -0
  25. package/ios/generated/RCTModulesConformingToProtocolsProvider.h +18 -0
  26. package/ios/generated/RCTModulesConformingToProtocolsProvider.mm +54 -0
  27. package/ios/generated/RCTThirdPartyComponentsProvider.h +16 -0
  28. package/ios/generated/RCTThirdPartyComponentsProvider.mm +30 -0
  29. package/ios/generated/{RNReactNativeSpec/RNReactNativeSpec-generated.mm → RNRusaintSpec/RNRusaintSpec-generated.mm} +7 -7
  30. package/ios/generated/{RNReactNativeSpec/RNReactNativeSpec.h → RNRusaintSpec/RNRusaintSpec.h} +9 -9
  31. package/ios/generated/RNRusaintSpecJSI-generated.cpp +32 -0
  32. package/{android/generated/jni/react/renderer/components/RNReactNativeSpec/RNReactNativeSpecJSI.h → ios/generated/RNRusaintSpecJSI.h} +9 -9
  33. package/ios/generated/ReactAppDependencyProvider.podspec +34 -0
  34. package/{src/NativeReactNative.ts → lib/commonjs/NativeRusaintReactNative.ts} +1 -1
  35. package/lib/commonjs/index.js +2 -2
  36. package/lib/commonjs/index.js.map +1 -1
  37. package/lib/{commonjs/NativeReactNative.ts → module/NativeRusaintReactNative.ts} +1 -1
  38. package/lib/module/index.js +1 -1
  39. package/lib/module/index.js.map +1 -1
  40. package/lib/typescript/commonjs/src/{NativeReactNative.d.ts → NativeRusaintReactNative.d.ts} +1 -1
  41. package/lib/typescript/commonjs/src/NativeRusaintReactNative.d.ts.map +1 -0
  42. package/lib/typescript/module/src/{NativeReactNative.d.ts → NativeRusaintReactNative.d.ts} +1 -1
  43. package/lib/typescript/module/src/NativeRusaintReactNative.d.ts.map +1 -0
  44. package/package.json +7 -7
  45. package/rusaint-react-native.podspec +1 -1
  46. package/{lib/module/NativeReactNative.ts → src/NativeRusaintReactNative.ts} +1 -1
  47. package/src/index.tsx +1 -1
  48. package/android/generated/jni/react/renderer/components/RNReactNativeSpec/RNReactNativeSpecJSI-generated.cpp +0 -32
  49. package/build/RusaintReactNativeFramework.xcframework/_CodeSignature/CodeDirectory +0 -0
  50. package/build/RusaintReactNativeFramework.xcframework/_CodeSignature/CodeRequirements +0 -0
  51. package/build/RusaintReactNativeFramework.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
  52. package/ios/generated/RNReactNativeSpecJSI-generated.cpp +0 -32
  53. package/lib/typescript/commonjs/src/NativeReactNative.d.ts.map +0 -1
  54. package/lib/typescript/module/src/NativeReactNative.d.ts.map +0 -1
  55. /package/build/{RusaintReactNativeFramework.xcframework → RusaintReactNative.xcframework}/Info.plist +0 -0
  56. /package/build/{RusaintReactNativeFramework.xcframework → RusaintReactNative.xcframework}/_CodeSignature/CodeResources +0 -0
  57. /package/build/{RusaintReactNativeFramework.xcframework → RusaintReactNative.xcframework}/ios-arm64/librusaint_ffi.a +0 -0
  58. /package/build/{RusaintReactNativeFramework.xcframework → RusaintReactNative.xcframework}/ios-arm64-simulator/librusaint_ffi.a +0 -0
@@ -1,6 +1,6 @@
1
1
  # Generated by uniffi-bindgen-react-native
2
2
  cmake_minimum_required(VERSION 3.9.0)
3
- project(ReactNative)
3
+ project(RusaintReactNative)
4
4
 
5
5
  set (CMAKE_VERBOSE_MAKEFILE ON)
6
6
  set (CMAKE_CXX_STANDARD 17)
@@ -33,11 +33,11 @@ if (isNewArchitectureEnabled()) {
33
33
  }
34
34
 
35
35
  def getExtOrDefault(name) {
36
- return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["ReactNative_" + name]
36
+ return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["RusaintReactNative_" + name]
37
37
  }
38
38
 
39
39
  def getExtOrIntegerDefault(name) {
40
- return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["ReactNative_" + name]).toInteger()
40
+ return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["RusaintReactNative_" + name]).toInteger()
41
41
  }
42
42
 
43
43
  def supportsNamespace() {
@@ -137,7 +137,7 @@ dependencies {
137
137
  if (isNewArchitectureEnabled()) {
138
138
  react {
139
139
  jsRootDir = file("../src/")
140
- libraryName = "ReactNative"
140
+ libraryName = "RusaintReactNative"
141
141
  codegenJavaPackageName = "dev.eatsteak.rusaint.reactnative"
142
142
  }
143
143
  }
@@ -7,18 +7,18 @@
7
7
  namespace jsi = facebook::jsi;
8
8
  namespace react = facebook::react;
9
9
 
10
- // Automated testing checks Java_dev_eatsteak_rusaint_reactnative_ReactNativeModule and rusaint_reactnative
10
+ // Automated testing checks Java_dev_eatsteak_rusaint_reactnative_RusaintReactNativeModule and rusaintreactnative
11
11
  // by comparing the whole line here.
12
12
  /*
13
- Java_dev_eatsteak_rusaint_reactnative_ReactNativeModule_nativeMultiply(JNIEnv *env, jclass type, jdouble a, jdouble b) {
14
- return rusaint_reactnative::multiply(a, b);
13
+ Java_dev_eatsteak_rusaint_reactnative_RusaintReactNativeModule_nativeMultiply(JNIEnv *env, jclass type, jdouble a, jdouble b) {
14
+ return rusaintreactnative::multiply(a, b);
15
15
  }
16
16
  */
17
17
 
18
- // Installer coming from ReactNativeModule
18
+ // Installer coming from RusaintReactNativeModule
19
19
  extern "C"
20
20
  JNIEXPORT jboolean JNICALL
21
- Java_dev_eatsteak_rusaint_reactnative_ReactNativeModule_nativeInstallRustCrate(
21
+ Java_dev_eatsteak_rusaint_reactnative_RusaintReactNativeModule_nativeInstallRustCrate(
22
22
  JNIEnv *env,
23
23
  jclass type,
24
24
  jlong rtPtr,
@@ -52,12 +52,12 @@ Java_dev_eatsteak_rusaint_reactnative_ReactNativeModule_nativeInstallRustCrate(
52
52
  auto jsCallInvoker = nativePointer->getCallInvoker();
53
53
 
54
54
  auto runtime = reinterpret_cast<jsi::Runtime *>(rtPtr);
55
- return rusaint_reactnative::installRustCrate(*runtime, jsCallInvoker);
55
+ return rusaintreactnative::installRustCrate(*runtime, jsCallInvoker);
56
56
  }
57
57
 
58
58
  extern "C"
59
59
  JNIEXPORT jboolean JNICALL
60
- Java_dev_eatsteak_rusaint_reactnative_ReactNativeModule_nativeCleanupRustCrate(JNIEnv *env, jclass type, jlong rtPtr) {
60
+ Java_dev_eatsteak_rusaint_reactnative_RusaintReactNativeModule_nativeCleanupRustCrate(JNIEnv *env, jclass type, jlong rtPtr) {
61
61
  auto runtime = reinterpret_cast<jsi::Runtime *>(rtPtr);
62
- return rusaint_reactnative::cleanupRustCrate(*runtime);
62
+ return rusaintreactnative::cleanupRustCrate(*runtime);
63
63
  }
@@ -10,7 +10,7 @@
10
10
  * @nolint
11
11
  */
12
12
 
13
- package dev.eatsteak.rusaint.reactnative;
13
+ package com.facebook.fbreact.specs;
14
14
 
15
15
  import com.facebook.proguard.annotations.DoNotStrip;
16
16
  import com.facebook.react.bridge.ReactApplicationContext;
@@ -19,10 +19,10 @@ import com.facebook.react.bridge.ReactMethod;
19
19
  import com.facebook.react.turbomodule.core.interfaces.TurboModule;
20
20
  import javax.annotation.Nonnull;
21
21
 
22
- public abstract class NativeReactNativeSpec extends ReactContextBaseJavaModule implements TurboModule {
23
- public static final String NAME = "ReactNative";
22
+ public abstract class NativeRusaintReactNativeSpec extends ReactContextBaseJavaModule implements TurboModule {
23
+ public static final String NAME = "RusaintReactNative";
24
24
 
25
- public NativeReactNativeSpec(ReactApplicationContext reactContext) {
25
+ public NativeRusaintReactNativeSpec(ReactApplicationContext reactContext) {
26
26
  super(reactContext);
27
27
  }
28
28
 
@@ -6,18 +6,18 @@
6
6
  cmake_minimum_required(VERSION 3.13)
7
7
  set(CMAKE_VERBOSE_MAKEFILE on)
8
8
 
9
- file(GLOB react_codegen_SRCS CONFIGURE_DEPENDS *.cpp react/renderer/components/RNReactNativeSpec/*.cpp)
9
+ file(GLOB react_codegen_SRCS CONFIGURE_DEPENDS *.cpp react/renderer/components/RNRusaintSpec/*.cpp)
10
10
 
11
11
  add_library(
12
- react_codegen_RNReactNativeSpec
12
+ react_codegen_RNRusaintSpec
13
13
  OBJECT
14
14
  ${react_codegen_SRCS}
15
15
  )
16
16
 
17
- target_include_directories(react_codegen_RNReactNativeSpec PUBLIC . react/renderer/components/RNReactNativeSpec)
17
+ target_include_directories(react_codegen_RNRusaintSpec PUBLIC . react/renderer/components/RNRusaintSpec)
18
18
 
19
19
  target_link_libraries(
20
- react_codegen_RNReactNativeSpec
20
+ react_codegen_RNRusaintSpec
21
21
  fbjni
22
22
  jsi
23
23
  # We need to link different libraries based on whether we are building rncore or not, that's necessary
@@ -26,7 +26,7 @@ target_link_libraries(
26
26
  )
27
27
 
28
28
  target_compile_options(
29
- react_codegen_RNReactNativeSpec
29
+ react_codegen_RNRusaintSpec
30
30
  PRIVATE
31
31
  -DLOG_TAG=\"ReactNative\"
32
32
  -fexceptions
@@ -8,29 +8,29 @@
8
8
  * @generated by codegen project: GenerateModuleJniCpp.js
9
9
  */
10
10
 
11
- #include "RNReactNativeSpec.h"
11
+ #include "RNRusaintSpec.h"
12
12
 
13
13
  namespace facebook::react {
14
14
 
15
- static facebook::jsi::Value __hostFunction_NativeReactNativeSpecJSI_installRustCrate(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
15
+ static facebook::jsi::Value __hostFunction_NativeRusaintReactNativeSpecJSI_installRustCrate(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
16
16
  static jmethodID cachedMethodId = nullptr;
17
17
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, BooleanKind, "installRustCrate", "()Z", args, count, cachedMethodId);
18
18
  }
19
19
 
20
- static facebook::jsi::Value __hostFunction_NativeReactNativeSpecJSI_cleanupRustCrate(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
20
+ static facebook::jsi::Value __hostFunction_NativeRusaintReactNativeSpecJSI_cleanupRustCrate(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
21
21
  static jmethodID cachedMethodId = nullptr;
22
22
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, BooleanKind, "cleanupRustCrate", "()Z", args, count, cachedMethodId);
23
23
  }
24
24
 
25
- NativeReactNativeSpecJSI::NativeReactNativeSpecJSI(const JavaTurboModule::InitParams &params)
25
+ NativeRusaintReactNativeSpecJSI::NativeRusaintReactNativeSpecJSI(const JavaTurboModule::InitParams &params)
26
26
  : JavaTurboModule(params) {
27
- methodMap_["installRustCrate"] = MethodMetadata {0, __hostFunction_NativeReactNativeSpecJSI_installRustCrate};
28
- methodMap_["cleanupRustCrate"] = MethodMetadata {0, __hostFunction_NativeReactNativeSpecJSI_cleanupRustCrate};
27
+ methodMap_["installRustCrate"] = MethodMetadata {0, __hostFunction_NativeRusaintReactNativeSpecJSI_installRustCrate};
28
+ methodMap_["cleanupRustCrate"] = MethodMetadata {0, __hostFunction_NativeRusaintReactNativeSpecJSI_cleanupRustCrate};
29
29
  }
30
30
 
31
- std::shared_ptr<TurboModule> RNReactNativeSpec_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams &params) {
32
- if (moduleName == "ReactNative") {
33
- return std::make_shared<NativeReactNativeSpecJSI>(params);
31
+ std::shared_ptr<TurboModule> RNRusaintSpec_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams &params) {
32
+ if (moduleName == "RusaintReactNative") {
33
+ return std::make_shared<NativeRusaintReactNativeSpecJSI>(params);
34
34
  }
35
35
  return nullptr;
36
36
  }
@@ -17,15 +17,15 @@
17
17
  namespace facebook::react {
18
18
 
19
19
  /**
20
- * JNI C++ class for module 'NativeReactNative'
20
+ * JNI C++ class for module 'NativeRusaintReactNative'
21
21
  */
22
- class JSI_EXPORT NativeReactNativeSpecJSI : public JavaTurboModule {
22
+ class JSI_EXPORT NativeRusaintReactNativeSpecJSI : public JavaTurboModule {
23
23
  public:
24
- NativeReactNativeSpecJSI(const JavaTurboModule::InitParams &params);
24
+ NativeRusaintReactNativeSpecJSI(const JavaTurboModule::InitParams &params);
25
25
  };
26
26
 
27
27
 
28
28
  JSI_EXPORT
29
- std::shared_ptr<TurboModule> RNReactNativeSpec_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams &params);
29
+ std::shared_ptr<TurboModule> RNRusaintSpec_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams &params);
30
30
 
31
31
  } // namespace facebook::react
@@ -0,0 +1,32 @@
1
+ /**
2
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
+ *
4
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
5
+ * once the code is regenerated.
6
+ *
7
+ * @generated by codegen project: GenerateModuleCpp.js
8
+ */
9
+
10
+ #include "RNRusaintSpecJSI.h"
11
+
12
+ namespace facebook::react {
13
+
14
+ static jsi::Value __hostFunction_NativeRusaintReactNativeCxxSpecJSI_installRustCrate(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
15
+ return static_cast<NativeRusaintReactNativeCxxSpecJSI *>(&turboModule)->installRustCrate(
16
+ rt
17
+ );
18
+ }
19
+ static jsi::Value __hostFunction_NativeRusaintReactNativeCxxSpecJSI_cleanupRustCrate(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
20
+ return static_cast<NativeRusaintReactNativeCxxSpecJSI *>(&turboModule)->cleanupRustCrate(
21
+ rt
22
+ );
23
+ }
24
+
25
+ NativeRusaintReactNativeCxxSpecJSI::NativeRusaintReactNativeCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
26
+ : TurboModule("RusaintReactNative", jsInvoker) {
27
+ methodMap_["installRustCrate"] = MethodMetadata {0, __hostFunction_NativeRusaintReactNativeCxxSpecJSI_installRustCrate};
28
+ methodMap_["cleanupRustCrate"] = MethodMetadata {0, __hostFunction_NativeRusaintReactNativeCxxSpecJSI_cleanupRustCrate};
29
+ }
30
+
31
+
32
+ } // namespace facebook::react
@@ -15,9 +15,9 @@
15
15
  namespace facebook::react {
16
16
 
17
17
 
18
- class JSI_EXPORT NativeReactNativeCxxSpecJSI : public TurboModule {
18
+ class JSI_EXPORT NativeRusaintReactNativeCxxSpecJSI : public TurboModule {
19
19
  protected:
20
- NativeReactNativeCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
20
+ NativeRusaintReactNativeCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
21
21
 
22
22
  public:
23
23
  virtual bool installRustCrate(jsi::Runtime &rt) = 0;
@@ -26,7 +26,7 @@ public:
26
26
  };
27
27
 
28
28
  template <typename T>
29
- class JSI_EXPORT NativeReactNativeCxxSpec : public TurboModule {
29
+ class JSI_EXPORT NativeRusaintReactNativeCxxSpec : public TurboModule {
30
30
  public:
31
31
  jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
32
32
  return delegate_.create(rt, propName);
@@ -36,19 +36,19 @@ public:
36
36
  return delegate_.getPropertyNames(runtime);
37
37
  }
38
38
 
39
- static constexpr std::string_view kModuleName = "ReactNative";
39
+ static constexpr std::string_view kModuleName = "RusaintReactNative";
40
40
 
41
41
  protected:
42
- NativeReactNativeCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
43
- : TurboModule(std::string{NativeReactNativeCxxSpec::kModuleName}, jsInvoker),
42
+ NativeRusaintReactNativeCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
43
+ : TurboModule(std::string{NativeRusaintReactNativeCxxSpec::kModuleName}, jsInvoker),
44
44
  delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
45
45
 
46
46
 
47
47
  private:
48
- class Delegate : public NativeReactNativeCxxSpecJSI {
48
+ class Delegate : public NativeRusaintReactNativeCxxSpecJSI {
49
49
  public:
50
50
  Delegate(T *instance, std::shared_ptr<CallInvoker> jsInvoker) :
51
- NativeReactNativeCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {
51
+ NativeRusaintReactNativeCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {
52
52
 
53
53
  }
54
54
 
@@ -70,7 +70,7 @@ private:
70
70
  }
71
71
 
72
72
  private:
73
- friend class NativeReactNativeCxxSpec;
73
+ friend class NativeRusaintReactNativeCxxSpec;
74
74
  T *instance_;
75
75
  };
76
76
 
@@ -0,0 +1,5 @@
1
+
2
+ <!-- Generated by uniffi-bindgen-react-native -->
3
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
4
+ package="dev.eatsteak.rusaint.reactnative">
5
+ </manifest>
@@ -5,9 +5,9 @@ import com.facebook.react.bridge.ReactApplicationContext
5
5
  import com.facebook.react.module.annotations.ReactModule
6
6
  import com.facebook.react.turbomodule.core.interfaces.CallInvokerHolder
7
7
 
8
- @ReactModule(name = ReactNativeModule.NAME)
9
- class ReactNativeModule(reactContext: ReactApplicationContext) :
10
- NativeReactNativeSpec(reactContext) {
8
+ @ReactModule(name = RusaintReactNativeModule.NAME)
9
+ class RusaintReactNativeModule(reactContext: ReactApplicationContext) :
10
+ NativeRusaintReactNativeSpec(reactContext) {
11
11
 
12
12
  override fun getName(): String {
13
13
  return NAME
@@ -34,7 +34,7 @@ class ReactNativeModule(reactContext: ReactApplicationContext) :
34
34
  }
35
35
 
36
36
  companion object {
37
- const val NAME = "ReactNative"
37
+ const val NAME = "RusaintReactNative"
38
38
 
39
39
  init {
40
40
  System.loadLibrary("rusaint-react-native")
@@ -8,10 +8,10 @@ import com.facebook.react.module.model.ReactModuleInfo
8
8
  import com.facebook.react.module.model.ReactModuleInfoProvider
9
9
  import java.util.HashMap
10
10
 
11
- class ReactNativePackage : TurboReactPackage() {
11
+ class RusaintReactNativePackage : TurboReactPackage() {
12
12
  override fun getModule(name: String, reactContext: ReactApplicationContext): NativeModule? {
13
- return if (name == ReactNativeModule.NAME) {
14
- ReactNativeModule(reactContext)
13
+ return if (name == RusaintReactNativeModule.NAME) {
14
+ RusaintReactNativeModule(reactContext)
15
15
  } else {
16
16
  null
17
17
  }
@@ -20,9 +20,9 @@ class ReactNativePackage : TurboReactPackage() {
20
20
  override fun getReactModuleInfoProvider(): ReactModuleInfoProvider {
21
21
  return ReactModuleInfoProvider {
22
22
  val moduleInfos: MutableMap<String, ReactModuleInfo> = HashMap()
23
- moduleInfos[ReactNativeModule.NAME] = ReactModuleInfo(
24
- ReactNativeModule.NAME,
25
- ReactNativeModule.NAME,
23
+ moduleInfos[RusaintReactNativeModule.NAME] = ReactModuleInfo(
24
+ RusaintReactNativeModule.NAME,
25
+ RusaintReactNativeModule.NAME,
26
26
  false, // canOverrideExistingModule
27
27
  false, // needsEagerInit
28
28
  false, // isCxxModule
@@ -3,7 +3,7 @@
3
3
  #include "generated/rusaint.hpp"
4
4
  #include "generated/rusaint_ffi.hpp"
5
5
 
6
- namespace rusaint_reactnative {
6
+ namespace rusaintreactnative {
7
7
  using namespace facebook;
8
8
 
9
9
  uint8_t installRustCrate(jsi::Runtime &runtime, std::shared_ptr<react::CallInvoker> callInvoker) {
@@ -1,15 +1,15 @@
1
- #ifndef RUSAINT_REACTNATIVE_H
2
- #define RUSAINT_REACTNATIVE_H
1
+ #ifndef RUSAINTREACTNATIVE_H
2
+ #define RUSAINTREACTNATIVE_H
3
3
  // Generated by uniffi-bindgen-react-native
4
4
  #include <cstdint>
5
5
  #include <jsi/jsi.h>
6
6
  #include <ReactCommon/CallInvoker.h>
7
7
 
8
- namespace rusaint_reactnative {
8
+ namespace rusaintreactnative {
9
9
  using namespace facebook;
10
10
 
11
11
  uint8_t installRustCrate(jsi::Runtime &runtime, std::shared_ptr<react::CallInvoker> callInvoker);
12
12
  uint8_t cleanupRustCrate(jsi::Runtime &runtime);
13
13
  }
14
14
 
15
- #endif /* RUSAINT_REACTNATIVE_H */
15
+ #endif /* RUSAINTREACTNATIVE_H */
@@ -4,13 +4,13 @@
4
4
  #endif
5
5
 
6
6
  #ifdef RCT_NEW_ARCH_ENABLED
7
- #import "RNReactNativeSpec.h"
7
+ #import "RNRusaintSpec.h"
8
8
 
9
- @interface ReactNative : NSObject <NativeReactNativeSpec>
9
+ @interface RusaintReactNative : NSObject <NativeRusaintReactNativeSpec>
10
10
  #else
11
11
  #import <React/RCTBridgeModule.h>
12
12
 
13
- @interface ReactNative : NSObject <RCTBridgeModule>
13
+ @interface RusaintReactNative : NSObject <RCTBridgeModule>
14
14
  #endif
15
15
 
16
16
  @end
@@ -1,46 +1,46 @@
1
1
  // Generated by uniffi-bindgen-react-native
2
- #import "ReactNative.h"
2
+ #import "RusaintReactNative.h"
3
3
 
4
4
  namespace uniffi_generated {
5
5
  using namespace facebook::react;
6
6
  /**
7
- * ObjC++ class for module 'NativeReactNative'
7
+ * ObjC++ class for module 'NativeRusaintReactNative'
8
8
  */
9
- class JSI_EXPORT NativeReactNativeSpecJSI : public ObjCTurboModule {
9
+ class JSI_EXPORT NativeRusaintReactNativeSpecJSI : public ObjCTurboModule {
10
10
  public:
11
- NativeReactNativeSpecJSI(const ObjCTurboModule::InitParams &params);
11
+ NativeRusaintReactNativeSpecJSI(const ObjCTurboModule::InitParams &params);
12
12
  std::shared_ptr<CallInvoker> callInvoker;
13
13
  };
14
14
 
15
- static facebook::jsi::Value __hostFunction_ReactNative_installRustCrate(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
16
- auto& tm = static_cast<NativeReactNativeSpecJSI&>(turboModule);
15
+ static facebook::jsi::Value __hostFunction_RusaintReactNative_installRustCrate(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
16
+ auto& tm = static_cast<NativeRusaintReactNativeSpecJSI&>(turboModule);
17
17
  auto jsInvoker = tm.callInvoker;
18
- uint8_t result = rusaint_reactnative::installRustCrate(rt, jsInvoker);
18
+ uint8_t result = rusaintreactnative::installRustCrate(rt, jsInvoker);
19
19
  return facebook::jsi::Value(rt, result);
20
20
  }
21
- static facebook::jsi::Value __hostFunction_ReactNative_cleanupRustCrate(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
22
- uint8_t result = rusaint_reactnative::cleanupRustCrate(rt);
21
+ static facebook::jsi::Value __hostFunction_RusaintReactNative_cleanupRustCrate(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
22
+ uint8_t result = rusaintreactnative::cleanupRustCrate(rt);
23
23
  return facebook::jsi::Value(rt, result);
24
24
  }
25
25
 
26
- NativeReactNativeSpecJSI::NativeReactNativeSpecJSI(const ObjCTurboModule::InitParams &params)
26
+ NativeRusaintReactNativeSpecJSI::NativeRusaintReactNativeSpecJSI(const ObjCTurboModule::InitParams &params)
27
27
  : ObjCTurboModule(params), callInvoker(params.jsInvoker) {
28
- this->methodMap_["installRustCrate"] = MethodMetadata {1, __hostFunction_ReactNative_installRustCrate};
29
- this->methodMap_["cleanupRustCrate"] = MethodMetadata {1, __hostFunction_ReactNative_cleanupRustCrate};
28
+ this->methodMap_["installRustCrate"] = MethodMetadata {1, __hostFunction_RusaintReactNative_installRustCrate};
29
+ this->methodMap_["cleanupRustCrate"] = MethodMetadata {1, __hostFunction_RusaintReactNative_cleanupRustCrate};
30
30
  }
31
31
  } // namespace uniffi_generated
32
32
 
33
- @implementation ReactNative
33
+ @implementation RusaintReactNative
34
34
  RCT_EXPORT_MODULE()
35
35
 
36
36
  // Don't compile this code when we build for the old architecture.
37
37
  #ifdef RCT_NEW_ARCH_ENABLED
38
38
 
39
- // Automated testing checks rusaint_reactnative
39
+ // Automated testing checks rusaintreactnative
40
40
  // by comparing the whole line here.
41
41
  /*
42
42
  - (NSNumber *)multiply:(double)a b:(double)b {
43
- NSNumber *result = @(rusaint_reactnative::multiply(a, b));
43
+ NSNumber *result = @(rusaintreactnative::multiply(a, b));
44
44
  }
45
45
  */
46
46
 
@@ -59,7 +59,7 @@ RCT_EXPORT_MODULE()
59
59
  - (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
60
60
  (const facebook::react::ObjCTurboModule::InitParams &)params
61
61
  {
62
- return std::make_shared<uniffi_generated::NativeReactNativeSpecJSI>(params);
62
+ return std::make_shared<uniffi_generated::NativeRusaintReactNativeSpecJSI>(params);
63
63
  }
64
64
  #endif
65
65
 
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ #if __has_include(<React-RCTAppDelegate/RCTDependencyProvider.h>)
12
+ #import <React-RCTAppDelegate/RCTDependencyProvider.h>
13
+ #elif __has_include(<React_RCTAppDelegate/RCTDependencyProvider.h>)
14
+ #import <React_RCTAppDelegate/RCTDependencyProvider.h>
15
+ #else
16
+ #import "RCTDependencyProvider.h"
17
+ #endif
18
+
19
+ NS_ASSUME_NONNULL_BEGIN
20
+
21
+ @interface RCTAppDependencyProvider : NSObject <RCTDependencyProvider>
22
+
23
+ @end
24
+
25
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ #import "RCTAppDependencyProvider.h"
9
+ #import <ReactCodegen/RCTModulesConformingToProtocolsProvider.h>
10
+ #import <ReactCodegen/RCTThirdPartyComponentsProvider.h>
11
+ #import <ReactCodegen/RCTModuleProviders.h>
12
+
13
+ @implementation RCTAppDependencyProvider
14
+
15
+ - (nonnull NSArray<NSString *> *)URLRequestHandlerClassNames {
16
+ return RCTModulesConformingToProtocolsProvider.URLRequestHandlerClassNames;
17
+ }
18
+
19
+ - (nonnull NSArray<NSString *> *)imageDataDecoderClassNames {
20
+ return RCTModulesConformingToProtocolsProvider.imageDataDecoderClassNames;
21
+ }
22
+
23
+ - (nonnull NSArray<NSString *> *)imageURLLoaderClassNames {
24
+ return RCTModulesConformingToProtocolsProvider.imageURLLoaderClassNames;
25
+ }
26
+
27
+ - (nonnull NSDictionary<NSString *,Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents {
28
+ return RCTThirdPartyComponentsProvider.thirdPartyFabricComponents;
29
+ }
30
+
31
+ - (nonnull NSDictionary<NSString *, id<RCTModuleProvider>> *)moduleProviders {
32
+ return RCTModuleProviders.moduleProviders;
33
+ }
34
+
35
+ @end
@@ -0,0 +1,16 @@
1
+ /*
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ #import <Foundation/Foundation.h>
9
+
10
+ @protocol RCTModuleProvider;
11
+
12
+ @interface RCTModuleProviders: NSObject
13
+
14
+ + (NSDictionary<NSString *, id<RCTModuleProvider>> *)moduleProviders;
15
+
16
+ @end
@@ -0,0 +1,51 @@
1
+ /*
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ #import <Foundation/Foundation.h>
9
+
10
+ #import "RCTModuleProviders.h"
11
+ #import <ReactCommon/RCTTurboModule.h>
12
+ #import <React/RCTLog.h>
13
+
14
+ @implementation RCTModuleProviders
15
+
16
+ + (NSDictionary<NSString *, id<RCTModuleProvider>> *)moduleProviders
17
+ {
18
+ static NSDictionary<NSString *, id<RCTModuleProvider>> *providers = nil;
19
+ static dispatch_once_t onceToken;
20
+
21
+ dispatch_once(&onceToken, ^{
22
+ NSDictionary<NSString *, NSString *> * moduleMapping = @{
23
+
24
+ };
25
+
26
+ NSMutableDictionary *dict = [[NSMutableDictionary alloc] initWithCapacity:moduleMapping.count];
27
+
28
+ for (NSString *key in moduleMapping) {
29
+ NSString * moduleProviderName = moduleMapping[key];
30
+ Class klass = NSClassFromString(moduleProviderName);
31
+ if (!klass) {
32
+ RCTLogError(@"Module provider %@ cannot be found in the runtime", moduleProviderName);
33
+ continue;
34
+ }
35
+
36
+ id instance = [klass new];
37
+ if (![instance respondsToSelector:@selector(getTurboModule:)]) {
38
+ RCTLogError(@"Module provider %@ does not conform to RCTModuleProvider", moduleProviderName);
39
+ continue;
40
+ }
41
+
42
+ [dict setObject:instance forKey:key];
43
+ }
44
+
45
+ providers = dict;
46
+ });
47
+
48
+ return providers;
49
+ }
50
+
51
+ @end
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ #import <Foundation/Foundation.h>
9
+
10
+ @interface RCTModulesConformingToProtocolsProvider: NSObject
11
+
12
+ +(NSArray<NSString *> *)imageURLLoaderClassNames;
13
+
14
+ +(NSArray<NSString *> *)imageDataDecoderClassNames;
15
+
16
+ +(NSArray<NSString *> *)URLRequestHandlerClassNames;
17
+
18
+ @end
@@ -0,0 +1,54 @@
1
+ /*
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ #import "RCTModulesConformingToProtocolsProvider.h"
9
+
10
+ @implementation RCTModulesConformingToProtocolsProvider
11
+
12
+ +(NSArray<NSString *> *)imageURLLoaderClassNames
13
+ {
14
+ static NSArray<NSString *> *classNames = nil;
15
+ static dispatch_once_t onceToken;
16
+
17
+ dispatch_once(&onceToken, ^{
18
+ classNames = @[
19
+
20
+ ];
21
+ });
22
+
23
+ return classNames;
24
+ }
25
+
26
+ +(NSArray<NSString *> *)imageDataDecoderClassNames
27
+ {
28
+ static NSArray<NSString *> *classNames = nil;
29
+ static dispatch_once_t onceToken;
30
+
31
+ dispatch_once(&onceToken, ^{
32
+ classNames = @[
33
+
34
+ ];
35
+ });
36
+
37
+ return classNames;
38
+ }
39
+
40
+ +(NSArray<NSString *> *)URLRequestHandlerClassNames
41
+ {
42
+ static NSArray<NSString *> *classNames = nil;
43
+ static dispatch_once_t onceToken;
44
+
45
+ dispatch_once(&onceToken, ^{
46
+ classNames = @[
47
+
48
+ ];
49
+ });
50
+
51
+ return classNames;
52
+ }
53
+
54
+ @end
@@ -0,0 +1,16 @@
1
+ /*
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ #import <Foundation/Foundation.h>
9
+
10
+ @protocol RCTComponentViewProtocol;
11
+
12
+ @interface RCTThirdPartyComponentsProvider: NSObject
13
+
14
+ + (NSDictionary<NSString *, Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents;
15
+
16
+ @end
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ #import "RCTThirdPartyComponentsProvider.h"
12
+ #import <React/RCTComponentViewProtocol.h>
13
+
14
+ @implementation RCTThirdPartyComponentsProvider
15
+
16
+ + (NSDictionary<NSString *, Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents
17
+ {
18
+ static NSDictionary<NSString *, Class<RCTComponentViewProtocol>> *thirdPartyComponents = nil;
19
+ static dispatch_once_t nativeComponentsToken;
20
+
21
+ dispatch_once(&nativeComponentsToken, ^{
22
+ thirdPartyComponents = @{
23
+
24
+ };
25
+ });
26
+
27
+ return thirdPartyComponents;
28
+ }
29
+
30
+ @end
@@ -11,10 +11,10 @@
11
11
  * must have a single output. More files => more genrule()s => slower builds.
12
12
  */
13
13
 
14
- #import "RNReactNativeSpec.h"
14
+ #import "RNRusaintSpec.h"
15
15
 
16
16
 
17
- @implementation NativeReactNativeSpecBase
17
+ @implementation NativeRusaintReactNativeSpecBase
18
18
 
19
19
 
20
20
  - (void)setEventEmitterCallback:(EventEmitterCallbackWrapper *)eventEmitterCallbackWrapper
@@ -26,21 +26,21 @@
26
26
 
27
27
  namespace facebook::react {
28
28
 
29
- static facebook::jsi::Value __hostFunction_NativeReactNativeSpecJSI_installRustCrate(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
29
+ static facebook::jsi::Value __hostFunction_NativeRusaintReactNativeSpecJSI_installRustCrate(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
30
30
  return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, BooleanKind, "installRustCrate", @selector(installRustCrate), args, count);
31
31
  }
32
32
 
33
- static facebook::jsi::Value __hostFunction_NativeReactNativeSpecJSI_cleanupRustCrate(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
33
+ static facebook::jsi::Value __hostFunction_NativeRusaintReactNativeSpecJSI_cleanupRustCrate(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
34
34
  return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, BooleanKind, "cleanupRustCrate", @selector(cleanupRustCrate), args, count);
35
35
  }
36
36
 
37
- NativeReactNativeSpecJSI::NativeReactNativeSpecJSI(const ObjCTurboModule::InitParams &params)
37
+ NativeRusaintReactNativeSpecJSI::NativeRusaintReactNativeSpecJSI(const ObjCTurboModule::InitParams &params)
38
38
  : ObjCTurboModule(params) {
39
39
 
40
- methodMap_["installRustCrate"] = MethodMetadata {0, __hostFunction_NativeReactNativeSpecJSI_installRustCrate};
40
+ methodMap_["installRustCrate"] = MethodMetadata {0, __hostFunction_NativeRusaintReactNativeSpecJSI_installRustCrate};
41
41
 
42
42
 
43
- methodMap_["cleanupRustCrate"] = MethodMetadata {0, __hostFunction_NativeReactNativeSpecJSI_cleanupRustCrate};
43
+ methodMap_["cleanupRustCrate"] = MethodMetadata {0, __hostFunction_NativeRusaintReactNativeSpecJSI_cleanupRustCrate};
44
44
 
45
45
  }
46
46
  } // namespace facebook::react
@@ -15,9 +15,9 @@
15
15
  #error This file must be compiled as Obj-C++. If you are importing it, you must change your file extension to .mm.
16
16
  #endif
17
17
 
18
- // Avoid multiple includes of RNReactNativeSpec symbols
19
- #ifndef RNReactNativeSpec_H
20
- #define RNReactNativeSpec_H
18
+ // Avoid multiple includes of RNRusaintSpec symbols
19
+ #ifndef RNRusaintSpec_H
20
+ #define RNRusaintSpec_H
21
21
 
22
22
  #import <Foundation/Foundation.h>
23
23
  #import <RCTRequired/RCTRequired.h>
@@ -33,14 +33,14 @@
33
33
 
34
34
  NS_ASSUME_NONNULL_BEGIN
35
35
 
36
- @protocol NativeReactNativeSpec <RCTBridgeModule, RCTTurboModule>
36
+ @protocol NativeRusaintReactNativeSpec <RCTBridgeModule, RCTTurboModule>
37
37
 
38
38
  - (NSNumber *)installRustCrate;
39
39
  - (NSNumber *)cleanupRustCrate;
40
40
 
41
41
  @end
42
42
 
43
- @interface NativeReactNativeSpecBase : NSObject {
43
+ @interface NativeRusaintReactNativeSpecBase : NSObject {
44
44
  @protected
45
45
  facebook::react::EventEmitterCallback _eventEmitterCallback;
46
46
  }
@@ -51,13 +51,13 @@ facebook::react::EventEmitterCallback _eventEmitterCallback;
51
51
 
52
52
  namespace facebook::react {
53
53
  /**
54
- * ObjC++ class for module 'NativeReactNative'
54
+ * ObjC++ class for module 'NativeRusaintReactNative'
55
55
  */
56
- class JSI_EXPORT NativeReactNativeSpecJSI : public ObjCTurboModule {
56
+ class JSI_EXPORT NativeRusaintReactNativeSpecJSI : public ObjCTurboModule {
57
57
  public:
58
- NativeReactNativeSpecJSI(const ObjCTurboModule::InitParams &params);
58
+ NativeRusaintReactNativeSpecJSI(const ObjCTurboModule::InitParams &params);
59
59
  };
60
60
  } // namespace facebook::react
61
61
 
62
62
  NS_ASSUME_NONNULL_END
63
- #endif // RNReactNativeSpec_H
63
+ #endif // RNRusaintSpec_H
@@ -0,0 +1,32 @@
1
+ /**
2
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
+ *
4
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
5
+ * once the code is regenerated.
6
+ *
7
+ * @generated by codegen project: GenerateModuleCpp.js
8
+ */
9
+
10
+ #include "RNRusaintSpecJSI.h"
11
+
12
+ namespace facebook::react {
13
+
14
+ static jsi::Value __hostFunction_NativeRusaintReactNativeCxxSpecJSI_installRustCrate(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
15
+ return static_cast<NativeRusaintReactNativeCxxSpecJSI *>(&turboModule)->installRustCrate(
16
+ rt
17
+ );
18
+ }
19
+ static jsi::Value __hostFunction_NativeRusaintReactNativeCxxSpecJSI_cleanupRustCrate(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
20
+ return static_cast<NativeRusaintReactNativeCxxSpecJSI *>(&turboModule)->cleanupRustCrate(
21
+ rt
22
+ );
23
+ }
24
+
25
+ NativeRusaintReactNativeCxxSpecJSI::NativeRusaintReactNativeCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
26
+ : TurboModule("RusaintReactNative", jsInvoker) {
27
+ methodMap_["installRustCrate"] = MethodMetadata {0, __hostFunction_NativeRusaintReactNativeCxxSpecJSI_installRustCrate};
28
+ methodMap_["cleanupRustCrate"] = MethodMetadata {0, __hostFunction_NativeRusaintReactNativeCxxSpecJSI_cleanupRustCrate};
29
+ }
30
+
31
+
32
+ } // namespace facebook::react
@@ -15,9 +15,9 @@
15
15
  namespace facebook::react {
16
16
 
17
17
 
18
- class JSI_EXPORT NativeReactNativeCxxSpecJSI : public TurboModule {
18
+ class JSI_EXPORT NativeRusaintReactNativeCxxSpecJSI : public TurboModule {
19
19
  protected:
20
- NativeReactNativeCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
20
+ NativeRusaintReactNativeCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
21
21
 
22
22
  public:
23
23
  virtual bool installRustCrate(jsi::Runtime &rt) = 0;
@@ -26,7 +26,7 @@ public:
26
26
  };
27
27
 
28
28
  template <typename T>
29
- class JSI_EXPORT NativeReactNativeCxxSpec : public TurboModule {
29
+ class JSI_EXPORT NativeRusaintReactNativeCxxSpec : public TurboModule {
30
30
  public:
31
31
  jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
32
32
  return delegate_.create(rt, propName);
@@ -36,19 +36,19 @@ public:
36
36
  return delegate_.getPropertyNames(runtime);
37
37
  }
38
38
 
39
- static constexpr std::string_view kModuleName = "ReactNative";
39
+ static constexpr std::string_view kModuleName = "RusaintReactNative";
40
40
 
41
41
  protected:
42
- NativeReactNativeCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
43
- : TurboModule(std::string{NativeReactNativeCxxSpec::kModuleName}, jsInvoker),
42
+ NativeRusaintReactNativeCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
43
+ : TurboModule(std::string{NativeRusaintReactNativeCxxSpec::kModuleName}, jsInvoker),
44
44
  delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
45
45
 
46
46
 
47
47
  private:
48
- class Delegate : public NativeReactNativeCxxSpecJSI {
48
+ class Delegate : public NativeRusaintReactNativeCxxSpecJSI {
49
49
  public:
50
50
  Delegate(T *instance, std::shared_ptr<CallInvoker> jsInvoker) :
51
- NativeReactNativeCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {
51
+ NativeRusaintReactNativeCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {
52
52
 
53
53
  }
54
54
 
@@ -70,7 +70,7 @@ private:
70
70
  }
71
71
 
72
72
  private:
73
- friend class NativeReactNativeCxxSpec;
73
+ friend class NativeRusaintReactNativeCxxSpec;
74
74
  T *instance_;
75
75
  };
76
76
 
@@ -0,0 +1,34 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ #
3
+ # This source code is licensed under the MIT license found in the
4
+ # LICENSE file in the root directory of this source tree.
5
+
6
+ version = "0.79.2"
7
+ source = { :git => 'https://github.com/facebook/react-native.git' }
8
+ if version == '1000.0.0'
9
+ # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
10
+ source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
11
+ else
12
+ source[:tag] = "v#{version}"
13
+ end
14
+
15
+ Pod::Spec.new do |s|
16
+ s.name = "ReactAppDependencyProvider"
17
+ s.version = version
18
+ s.summary = "The third party dependency provider for the app"
19
+ s.homepage = "https://reactnative.dev/"
20
+ s.documentation_url = "https://reactnative.dev/"
21
+ s.license = "MIT"
22
+ s.author = "Meta Platforms, Inc. and its affiliates"
23
+ s.platforms = min_supported_versions
24
+ s.source = source
25
+ s.source_files = "**/RCTAppDependencyProvider.{h,mm}"
26
+
27
+ # This guard prevent to install the dependencies when we run `pod install` in the old architecture.
28
+ s.pod_target_xcconfig = {
29
+ "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
30
+ "DEFINES_MODULE" => "YES"
31
+ }
32
+
33
+ s.dependency "ReactCodegen"
34
+ end
@@ -7,4 +7,4 @@ export interface Spec extends TurboModule {
7
7
  cleanupRustCrate(): boolean;
8
8
  }
9
9
 
10
- export default TurboModuleRegistry.getEnforcing<Spec>('ReactNative');
10
+ export default TurboModuleRegistry.getEnforcing<Spec>('RusaintReactNative');
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  var _exportNames = {};
7
7
  exports.default = void 0;
8
- var _NativeReactNative = _interopRequireDefault(require("./NativeReactNative"));
8
+ var _NativeRusaintReactNative = _interopRequireDefault(require("./NativeRusaintReactNative"));
9
9
  var rusaint = _interopRequireWildcard(require("./generated/rusaint.js"));
10
10
  Object.keys(rusaint).forEach(function (key) {
11
11
  if (key === "default" || key === "__esModule") return;
@@ -40,7 +40,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
40
40
  // code is reloaded (e.g. during development with metro).
41
41
  let rustInstalled = false;
42
42
  if (!rustInstalled) {
43
- _NativeReactNative.default.installRustCrate();
43
+ _NativeRusaintReactNative.default.installRustCrate();
44
44
  rustInstalled = true;
45
45
  }
46
46
 
@@ -1 +1 @@
1
- {"version":3,"names":["_NativeReactNative","_interopRequireDefault","require","rusaint","_interopRequireWildcard","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","rusaint_ffi","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","n","__proto__","a","getOwnPropertyDescriptor","u","i","set","rustInstalled","installer","installRustCrate","initialized","initialize","_default"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"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","ignoreList":[]}
1
+ {"version":3,"names":["_NativeRusaintReactNative","_interopRequireDefault","require","rusaint","_interopRequireWildcard","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","rusaint_ffi","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","n","__proto__","a","getOwnPropertyDescriptor","u","i","set","rustInstalled","installer","installRustCrate","initialized","initialize","_default"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"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","ignoreList":[]}
@@ -7,4 +7,4 @@ export interface Spec extends TurboModule {
7
7
  cleanupRustCrate(): boolean;
8
8
  }
9
9
 
10
- export default TurboModuleRegistry.getEnforcing<Spec>('ReactNative');
10
+ export default TurboModuleRegistry.getEnforcing<Spec>('RusaintReactNative');
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  // Generated by uniffi-bindgen-react-native
4
- import installer from './NativeReactNative';
4
+ import installer from './NativeRusaintReactNative';
5
5
 
6
6
  // Register the rust crate with Hermes
7
7
  // - the boolean flag ensures this loads exactly once, even if the JS
@@ -1 +1 @@
1
- {"version":3,"names":["installer","rustInstalled","installRustCrate","rusaint","rusaint_ffi","initialized","default","initialize"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA;AACA,OAAOA,SAAS,MAAM,qBAAqB;;AAE3C;AACA;AACA;AACA,IAAIC,aAAa,GAAG,KAAK;AACzB,IAAI,CAACA,aAAa,EAAE;EAClBD,SAAS,CAACE,gBAAgB,CAAC,CAAC;EAC5BD,aAAa,GAAG,IAAI;AACtB;;AAEA;AACA,cAAc,wBAAqB;AACnC,cAAc,4BAAyB;;AAEvC;AACA;AACA;AACA,OAAO,KAAKE,OAAO,MAAM,wBAAqB;AAC9C,OAAO,KAAKC,WAAW,MAAM,4BAAyB;;AAEtD;AACA;AACA;AACA,IAAIC,WAAW,GAAG,KAAK;AACvB,IAAI,CAACA,WAAW,EAAE;EAChBF,OAAO,CAACG,OAAO,CAACC,UAAU,CAAC,CAAC;EAC5BH,WAAW,CAACE,OAAO,CAACC,UAAU,CAAC,CAAC;EAChCF,WAAW,GAAG,IAAI;AACpB;;AAEA;AACA,eAAe;EACbF,OAAO;EACPC;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["installer","rustInstalled","installRustCrate","rusaint","rusaint_ffi","initialized","default","initialize"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA;AACA,OAAOA,SAAS,MAAM,4BAA4B;;AAElD;AACA;AACA;AACA,IAAIC,aAAa,GAAG,KAAK;AACzB,IAAI,CAACA,aAAa,EAAE;EAClBD,SAAS,CAACE,gBAAgB,CAAC,CAAC;EAC5BD,aAAa,GAAG,IAAI;AACtB;;AAEA;AACA,cAAc,wBAAqB;AACnC,cAAc,4BAAyB;;AAEvC;AACA;AACA;AACA,OAAO,KAAKE,OAAO,MAAM,wBAAqB;AAC9C,OAAO,KAAKC,WAAW,MAAM,4BAAyB;;AAEtD;AACA;AACA;AACA,IAAIC,WAAW,GAAG,KAAK;AACvB,IAAI,CAACA,WAAW,EAAE;EAChBF,OAAO,CAACG,OAAO,CAACC,UAAU,CAAC,CAAC;EAC5BH,WAAW,CAACE,OAAO,CAACC,UAAU,CAAC,CAAC;EAChCF,WAAW,GAAG,IAAI;AACpB;;AAEA;AACA,eAAe;EACbF,OAAO;EACPC;AACF,CAAC","ignoreList":[]}
@@ -5,4 +5,4 @@ export interface Spec extends TurboModule {
5
5
  }
6
6
  declare const _default: Spec;
7
7
  export default _default;
8
- //# sourceMappingURL=NativeReactNative.d.ts.map
8
+ //# sourceMappingURL=NativeRusaintReactNative.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeRusaintReactNative.d.ts","sourceRoot":"","sources":["../../../../src/NativeRusaintReactNative.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,gBAAgB,IAAI,OAAO,CAAC;IAC5B,gBAAgB,IAAI,OAAO,CAAC;CAC7B;;AAED,wBAA4E"}
@@ -5,4 +5,4 @@ export interface Spec extends TurboModule {
5
5
  }
6
6
  declare const _default: Spec;
7
7
  export default _default;
8
- //# sourceMappingURL=NativeReactNative.d.ts.map
8
+ //# sourceMappingURL=NativeRusaintReactNative.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeRusaintReactNative.d.ts","sourceRoot":"","sources":["../../../../src/NativeRusaintReactNative.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,gBAAgB,IAAI,OAAO,CAAC;IAC5B,gBAAgB,IAAI,OAAO,CAAC;CAC7B;;AAED,wBAA4E"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rusaint/react-native",
3
- "version": "0.10.0-dev.2",
3
+ "version": "0.10.0-dev.4",
4
4
  "description": "React native implementation of the rusaint, scraper library for SSU u-saint",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",
@@ -73,9 +73,9 @@
73
73
  "@commitlint/config-conventional": "^19.8.0",
74
74
  "@eslint/js": "^9.23.0",
75
75
  "@evilmartians/lefthook": "^1.11.5",
76
- "@react-native-community/cli": "^17.0.0",
77
- "@react-native/eslint-config": "^0.78.1",
78
- "@react-native/eslint-plugin": "^0.78.1",
76
+ "@react-native-community/cli": "^18.0.0",
77
+ "@react-native/eslint-config": "^0.79.2",
78
+ "@react-native/eslint-plugin": "^0.79.2",
79
79
  "@release-it/conventional-changelog": "^10.0.0",
80
80
  "@types/jest": "^29.5.14",
81
81
  "@types/node": "^22.13.14",
@@ -87,7 +87,7 @@
87
87
  "jest": "^29.7.0",
88
88
  "prettier": "^3.5.3",
89
89
  "react": "19.1.0",
90
- "react-native": "0.78.1",
90
+ "react-native": "0.79.2",
91
91
  "react-native-builder-bob": "^0.39.0",
92
92
  "release-it": "^18.1.2",
93
93
  "turbo": "^2.4.4",
@@ -102,7 +102,7 @@
102
102
  },
103
103
  "peerDependencies": {
104
104
  "react": "^19.1.0",
105
- "react-native": "^0.78.1"
105
+ "react-native": "^0.79.2"
106
106
  },
107
107
  "workspaces": [
108
108
  "example"
@@ -165,7 +165,7 @@
165
165
  ]
166
166
  },
167
167
  "codegenConfig": {
168
- "name": "RNReactNativeSpec",
168
+ "name": "RNRusaintSpec",
169
169
  "type": "modules",
170
170
  "jsSrcsDir": "src",
171
171
  "outputDir": {
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
16
16
  s.source = { :git => "https://github.com/EATSTEAK/rusaint.git", :tag => "#{s.version}" }
17
17
 
18
18
  s.source_files = "ios/**/*.{h,m,mm,swift}", "ios/generated/**/*.{h,m,mm}", "cpp/**/*.{hpp,cpp,c,h}", "cpp/generated/**/*.{hpp,cpp,c,h}"
19
- s.vendored_frameworks = "build/RusaintReactNativeFramework.xcframework"
19
+ s.vendored_frameworks = "build/RusaintReactNative.xcframework"
20
20
  s.dependency "uniffi-bindgen-react-native", "0.29.0-0"
21
21
 
22
22
  # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
@@ -7,4 +7,4 @@ export interface Spec extends TurboModule {
7
7
  cleanupRustCrate(): boolean;
8
8
  }
9
9
 
10
- export default TurboModuleRegistry.getEnforcing<Spec>('ReactNative');
10
+ export default TurboModuleRegistry.getEnforcing<Spec>('RusaintReactNative');
package/src/index.tsx CHANGED
@@ -1,5 +1,5 @@
1
1
  // Generated by uniffi-bindgen-react-native
2
- import installer from './NativeReactNative';
2
+ import installer from './NativeRusaintReactNative';
3
3
 
4
4
  // Register the rust crate with Hermes
5
5
  // - the boolean flag ensures this loads exactly once, even if the JS
@@ -1,32 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateModuleCpp.js
8
- */
9
-
10
- #include "RNReactNativeSpecJSI.h"
11
-
12
- namespace facebook::react {
13
-
14
- static jsi::Value __hostFunction_NativeReactNativeCxxSpecJSI_installRustCrate(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
15
- return static_cast<NativeReactNativeCxxSpecJSI *>(&turboModule)->installRustCrate(
16
- rt
17
- );
18
- }
19
- static jsi::Value __hostFunction_NativeReactNativeCxxSpecJSI_cleanupRustCrate(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
20
- return static_cast<NativeReactNativeCxxSpecJSI *>(&turboModule)->cleanupRustCrate(
21
- rt
22
- );
23
- }
24
-
25
- NativeReactNativeCxxSpecJSI::NativeReactNativeCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
26
- : TurboModule("ReactNative", jsInvoker) {
27
- methodMap_["installRustCrate"] = MethodMetadata {0, __hostFunction_NativeReactNativeCxxSpecJSI_installRustCrate};
28
- methodMap_["cleanupRustCrate"] = MethodMetadata {0, __hostFunction_NativeReactNativeCxxSpecJSI_cleanupRustCrate};
29
- }
30
-
31
-
32
- } // namespace facebook::react
@@ -1,32 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateModuleCpp.js
8
- */
9
-
10
- #include "RNReactNativeSpecJSI.h"
11
-
12
- namespace facebook::react {
13
-
14
- static jsi::Value __hostFunction_NativeReactNativeCxxSpecJSI_installRustCrate(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
15
- return static_cast<NativeReactNativeCxxSpecJSI *>(&turboModule)->installRustCrate(
16
- rt
17
- );
18
- }
19
- static jsi::Value __hostFunction_NativeReactNativeCxxSpecJSI_cleanupRustCrate(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
20
- return static_cast<NativeReactNativeCxxSpecJSI *>(&turboModule)->cleanupRustCrate(
21
- rt
22
- );
23
- }
24
-
25
- NativeReactNativeCxxSpecJSI::NativeReactNativeCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
26
- : TurboModule("ReactNative", jsInvoker) {
27
- methodMap_["installRustCrate"] = MethodMetadata {0, __hostFunction_NativeReactNativeCxxSpecJSI_installRustCrate};
28
- methodMap_["cleanupRustCrate"] = MethodMetadata {0, __hostFunction_NativeReactNativeCxxSpecJSI_cleanupRustCrate};
29
- }
30
-
31
-
32
- } // namespace facebook::react
@@ -1 +0,0 @@
1
- {"version":3,"file":"NativeReactNative.d.ts","sourceRoot":"","sources":["../../../../src/NativeReactNative.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,gBAAgB,IAAI,OAAO,CAAC;IAC5B,gBAAgB,IAAI,OAAO,CAAC;CAC7B;;AAED,wBAAqE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"NativeReactNative.d.ts","sourceRoot":"","sources":["../../../../src/NativeReactNative.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,gBAAgB,IAAI,OAAO,CAAC;IAC5B,gBAAgB,IAAI,OAAO,CAAC;CAC7B;;AAED,wBAAqE"}