@rusaint/react-native 0.10.0-dev.3 → 0.10.0-dev.5

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 (57) 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/gradle.properties +5 -5
  5. package/android/src/main/AndroidManifestNew.xml +5 -0
  6. package/android/src/main/java/dev/eatsteak/rusaint/reactnative/{ReactNativeModule.kt → RusaintReactNativeModule.kt} +4 -4
  7. package/android/src/main/java/dev/eatsteak/rusaint/reactnative/{ReactNativePackage.kt → RusaintReactNativePackage.kt} +6 -6
  8. package/build/RusaintReactNative.xcframework/_CodeSignature/CodeDirectory +0 -0
  9. package/build/RusaintReactNative.xcframework/_CodeSignature/CodeRequirements +0 -0
  10. package/build/RusaintReactNative.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
  11. package/build/{RusaintReactNativeFramework.xcframework → RusaintReactNative.xcframework}/_CodeSignature/CodeSignature +0 -0
  12. package/cpp/rusaint-react-native.cpp +1 -1
  13. package/cpp/rusaint-react-native.h +4 -4
  14. package/ios/{ReactNative.h → RusaintReactNative.h} +3 -3
  15. package/ios/{ReactNative.mm → RusaintReactNative.mm} +16 -16
  16. package/{src/NativeReactNative.ts → lib/commonjs/NativeRusaintReactNative.ts} +1 -1
  17. package/lib/commonjs/index.js +2 -2
  18. package/lib/commonjs/index.js.map +1 -1
  19. package/lib/module/{NativeReactNative.ts → NativeRusaintReactNative.ts} +1 -1
  20. package/lib/module/index.js +1 -1
  21. package/lib/module/index.js.map +1 -1
  22. package/lib/typescript/commonjs/src/{NativeReactNative.d.ts → NativeRusaintReactNative.d.ts} +1 -1
  23. package/lib/typescript/commonjs/src/NativeRusaintReactNative.d.ts.map +1 -0
  24. package/lib/typescript/module/src/{NativeReactNative.d.ts → NativeRusaintReactNative.d.ts} +1 -1
  25. package/lib/typescript/module/src/NativeRusaintReactNative.d.ts.map +1 -0
  26. package/package.json +11 -7
  27. package/rusaint-react-native.podspec +1 -1
  28. package/{lib/commonjs/NativeReactNative.ts → src/NativeRusaintReactNative.ts} +1 -1
  29. package/src/index.tsx +1 -1
  30. package/android/generated/java/com/facebook/fbreact/specs/NativeReactNativeSpec.java +0 -41
  31. package/android/generated/jni/CMakeLists.txt +0 -36
  32. package/android/generated/jni/RNReactNativeSpec-generated.cpp +0 -38
  33. package/android/generated/jni/RNReactNativeSpec.h +0 -31
  34. package/android/generated/jni/react/renderer/components/RNReactNativeSpec/RNReactNativeSpecJSI-generated.cpp +0 -32
  35. package/android/generated/jni/react/renderer/components/RNReactNativeSpec/RNReactNativeSpecJSI.h +0 -80
  36. package/build/RusaintReactNativeFramework.xcframework/_CodeSignature/CodeDirectory +0 -0
  37. package/build/RusaintReactNativeFramework.xcframework/_CodeSignature/CodeRequirements +0 -0
  38. package/build/RusaintReactNativeFramework.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
  39. package/ios/generated/RCTAppDependencyProvider.h +0 -25
  40. package/ios/generated/RCTAppDependencyProvider.mm +0 -35
  41. package/ios/generated/RCTModuleProviders.h +0 -16
  42. package/ios/generated/RCTModuleProviders.mm +0 -51
  43. package/ios/generated/RCTModulesConformingToProtocolsProvider.h +0 -18
  44. package/ios/generated/RCTModulesConformingToProtocolsProvider.mm +0 -54
  45. package/ios/generated/RCTThirdPartyComponentsProvider.h +0 -16
  46. package/ios/generated/RCTThirdPartyComponentsProvider.mm +0 -30
  47. package/ios/generated/RNReactNativeSpec/RNReactNativeSpec-generated.mm +0 -46
  48. package/ios/generated/RNReactNativeSpec/RNReactNativeSpec.h +0 -63
  49. package/ios/generated/RNReactNativeSpecJSI-generated.cpp +0 -32
  50. package/ios/generated/RNReactNativeSpecJSI.h +0 -80
  51. package/ios/generated/ReactAppDependencyProvider.podspec +0 -34
  52. package/lib/typescript/commonjs/src/NativeReactNative.d.ts.map +0 -1
  53. package/lib/typescript/module/src/NativeReactNative.d.ts.map +0 -1
  54. /package/build/{RusaintReactNativeFramework.xcframework → RusaintReactNative.xcframework}/Info.plist +0 -0
  55. /package/build/{RusaintReactNativeFramework.xcframework → RusaintReactNative.xcframework}/_CodeSignature/CodeResources +0 -0
  56. /package/build/{RusaintReactNativeFramework.xcframework → RusaintReactNative.xcframework}/ios-arm64/librusaint_ffi.a +0 -0
  57. /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
  }
@@ -1,5 +1,5 @@
1
- ReactNative_kotlinVersion=2.0.21
2
- ReactNative_minSdkVersion=24
3
- ReactNative_targetSdkVersion=34
4
- ReactNative_compileSdkVersion=35
5
- ReactNative_ndkVersion=27.1.12297006
1
+ RusaintReactNative_kotlinVersion=2.0.21
2
+ RusaintReactNative_minSdkVersion=24
3
+ RusaintReactNative_targetSdkVersion=34
4
+ RusaintReactNative_compileSdkVersion=35
5
+ RusaintReactNative_ndkVersion=27.1.12297006
@@ -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 "NativeRusaintReactNativeSpec.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
 
@@ -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":";;;;;;;AACA,IAAAA,kBAAA,GAAAC,sBAA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,CAACa,UAAU,CAAC,CAAC;EAChCD,WAAW,GAAG,IAAI;AACpB;;AAEA;AAAA,IAAAE,QAAA,GAAAzB,OAAA,CAAAW,OAAA,GACe;EACbrB,OAAO;EACPc;AACF,CAAC","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":";;;;;;;AACA,IAAAA,yBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAYA,IAAAC,OAAA,GAAAC,uBAAA,CAAAF,OAAA;AAAAG,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAL,OAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAb,OAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,WAAA,GAAAb,uBAAA,CAAAF,OAAA;AAAAG,MAAA,CAAAC,IAAA,CAAAW,WAAA,EAAAV,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA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AA,EAAAO,CAAA,GAAAA,CAAA;AAAA,SAAAzB,uBAAAkB,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAI,UAAA,GAAAJ,CAAA,KAAAK,OAAA,EAAAL,CAAA;AAdxC;;AAGA;AACA;AACA;AACA,IAAIc,aAAa,GAAG,KAAK;AACzB,IAAI,CAACA,aAAa,EAAE;EAClBC,iCAAS,CAACC,gBAAgB,CAAC,CAAC;EAC5BF,aAAa,GAAG,IAAI;AACtB;;AAEA;;AAIA;AACA;AACA;;AAIA;AACA;AACA;AACA,IAAIG,WAAW,GAAG,KAAK;AACvB,IAAI,CAACA,WAAW,EAAE;EAChBjC,OAAO,CAACqB,OAAO,CAACa,UAAU,CAAC,CAAC;EAC5BpB,WAAW,CAACO,OAAO,CAACa,UAAU,CAAC,CAAC;EAChCD,WAAW,GAAG,IAAI;AACpB;;AAEA;AAAA,IAAAE,QAAA,GAAAzB,OAAA,CAAAW,OAAA,GACe;EACbrB,OAAO;EACPc;AACF,CAAC","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.3",
3
+ "version": "0.10.0-dev.5",
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",
@@ -15,7 +15,8 @@
15
15
  "types": "./lib/typescript/commonjs/src/index.d.ts",
16
16
  "default": "./lib/commonjs/index.js"
17
17
  }
18
- }
18
+ },
19
+ "./package.json": "./package.json"
19
20
  },
20
21
  "files": [
21
22
  "src",
@@ -143,15 +144,14 @@
143
144
  "source": "src",
144
145
  "output": "lib",
145
146
  "targets": [
146
- "codegen",
147
147
  [
148
- "commonjs",
148
+ "module",
149
149
  {
150
150
  "esm": true
151
151
  }
152
152
  ],
153
153
  [
154
- "module",
154
+ "commonjs",
155
155
  {
156
156
  "esm": true
157
157
  }
@@ -165,7 +165,7 @@
165
165
  ]
166
166
  },
167
167
  "codegenConfig": {
168
- "name": "RNReactNativeSpec",
168
+ "name": "NativeRusaintReactNativeSpec",
169
169
  "type": "modules",
170
170
  "jsSrcsDir": "src",
171
171
  "outputDir": {
@@ -181,5 +181,9 @@
181
181
  "type": "turbo-module",
182
182
  "languages": "cpp",
183
183
  "version": "0.48.6"
184
- }
184
+ },
185
+ "eslintIgnore": [
186
+ "node_modules/",
187
+ "lib/"
188
+ ]
185
189
  }
@@ -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,41 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateModuleJavaSpec.js
9
- *
10
- * @nolint
11
- */
12
-
13
- package com.facebook.fbreact.specs;
14
-
15
- import com.facebook.proguard.annotations.DoNotStrip;
16
- import com.facebook.react.bridge.ReactApplicationContext;
17
- import com.facebook.react.bridge.ReactContextBaseJavaModule;
18
- import com.facebook.react.bridge.ReactMethod;
19
- import com.facebook.react.turbomodule.core.interfaces.TurboModule;
20
- import javax.annotation.Nonnull;
21
-
22
- public abstract class NativeReactNativeSpec extends ReactContextBaseJavaModule implements TurboModule {
23
- public static final String NAME = "ReactNative";
24
-
25
- public NativeReactNativeSpec(ReactApplicationContext reactContext) {
26
- super(reactContext);
27
- }
28
-
29
- @Override
30
- public @Nonnull String getName() {
31
- return NAME;
32
- }
33
-
34
- @ReactMethod(isBlockingSynchronousMethod = true)
35
- @DoNotStrip
36
- public abstract boolean installRustCrate();
37
-
38
- @ReactMethod(isBlockingSynchronousMethod = true)
39
- @DoNotStrip
40
- public abstract boolean cleanupRustCrate();
41
- }
@@ -1,36 +0,0 @@
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
- cmake_minimum_required(VERSION 3.13)
7
- set(CMAKE_VERBOSE_MAKEFILE on)
8
-
9
- file(GLOB react_codegen_SRCS CONFIGURE_DEPENDS *.cpp react/renderer/components/RNReactNativeSpec/*.cpp)
10
-
11
- add_library(
12
- react_codegen_RNReactNativeSpec
13
- OBJECT
14
- ${react_codegen_SRCS}
15
- )
16
-
17
- target_include_directories(react_codegen_RNReactNativeSpec PUBLIC . react/renderer/components/RNReactNativeSpec)
18
-
19
- target_link_libraries(
20
- react_codegen_RNReactNativeSpec
21
- fbjni
22
- jsi
23
- # We need to link different libraries based on whether we are building rncore or not, that's necessary
24
- # because we want to break a circular dependency between react_codegen_rncore and reactnative
25
- reactnative
26
- )
27
-
28
- target_compile_options(
29
- react_codegen_RNReactNativeSpec
30
- PRIVATE
31
- -DLOG_TAG=\"ReactNative\"
32
- -fexceptions
33
- -frtti
34
- -std=c++20
35
- -Wall
36
- )
@@ -1,38 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateModuleJniCpp.js
9
- */
10
-
11
- #include "RNReactNativeSpec.h"
12
-
13
- namespace facebook::react {
14
-
15
- static facebook::jsi::Value __hostFunction_NativeReactNativeSpecJSI_installRustCrate(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
16
- static jmethodID cachedMethodId = nullptr;
17
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, BooleanKind, "installRustCrate", "()Z", args, count, cachedMethodId);
18
- }
19
-
20
- static facebook::jsi::Value __hostFunction_NativeReactNativeSpecJSI_cleanupRustCrate(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
21
- static jmethodID cachedMethodId = nullptr;
22
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, BooleanKind, "cleanupRustCrate", "()Z", args, count, cachedMethodId);
23
- }
24
-
25
- NativeReactNativeSpecJSI::NativeReactNativeSpecJSI(const JavaTurboModule::InitParams &params)
26
- : JavaTurboModule(params) {
27
- methodMap_["installRustCrate"] = MethodMetadata {0, __hostFunction_NativeReactNativeSpecJSI_installRustCrate};
28
- methodMap_["cleanupRustCrate"] = MethodMetadata {0, __hostFunction_NativeReactNativeSpecJSI_cleanupRustCrate};
29
- }
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);
34
- }
35
- return nullptr;
36
- }
37
-
38
- } // namespace facebook::react
@@ -1,31 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateModuleJniH.js
9
- */
10
-
11
- #pragma once
12
-
13
- #include <ReactCommon/JavaTurboModule.h>
14
- #include <ReactCommon/TurboModule.h>
15
- #include <jsi/jsi.h>
16
-
17
- namespace facebook::react {
18
-
19
- /**
20
- * JNI C++ class for module 'NativeReactNative'
21
- */
22
- class JSI_EXPORT NativeReactNativeSpecJSI : public JavaTurboModule {
23
- public:
24
- NativeReactNativeSpecJSI(const JavaTurboModule::InitParams &params);
25
- };
26
-
27
-
28
- JSI_EXPORT
29
- std::shared_ptr<TurboModule> RNReactNativeSpec_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams &params);
30
-
31
- } // 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