@rusaint/react-native 0.13.2 → 0.13.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 (62) hide show
  1. package/android/build.gradle +1 -0
  2. package/android/cpp-adapter.cpp +5 -25
  3. package/android/generated/java/dev/eatsteak/rusaint/reactnative/NativeRusaintReactNativeSpec.java +41 -0
  4. package/android/generated/jni/CMakeLists.txt +36 -0
  5. package/android/generated/jni/RNRusaintSpec-generated.cpp +38 -0
  6. package/android/generated/jni/RNRusaintSpec.h +31 -0
  7. package/android/generated/jni/react/renderer/components/RNRusaintSpec/ComponentDescriptors.cpp +22 -0
  8. package/android/generated/jni/react/renderer/components/RNRusaintSpec/ComponentDescriptors.h +24 -0
  9. package/android/generated/jni/react/renderer/components/RNRusaintSpec/EventEmitters.cpp +16 -0
  10. package/android/generated/jni/react/renderer/components/RNRusaintSpec/EventEmitters.h +17 -0
  11. package/android/generated/jni/react/renderer/components/RNRusaintSpec/Props.cpp +19 -0
  12. package/android/generated/jni/react/renderer/components/RNRusaintSpec/Props.h +18 -0
  13. package/android/generated/jni/react/renderer/components/RNRusaintSpec/RNRusaintSpecJSI-generated.cpp +32 -0
  14. package/android/generated/jni/react/renderer/components/RNRusaintSpec/RNRusaintSpecJSI.h +80 -0
  15. package/android/generated/jni/react/renderer/components/RNRusaintSpec/ShadowNodes.cpp +17 -0
  16. package/android/generated/jni/react/renderer/components/RNRusaintSpec/ShadowNodes.h +23 -0
  17. package/android/generated/jni/react/renderer/components/RNRusaintSpec/States.cpp +16 -0
  18. package/android/generated/jni/react/renderer/components/RNRusaintSpec/States.h +19 -0
  19. package/android/proguard-rules.pro +4 -0
  20. package/android/src/main/jniLibs/arm64-v8a/librusaint_ffi.so +0 -0
  21. package/android/src/main/jniLibs/armeabi-v7a/librusaint_ffi.so +0 -0
  22. package/build/RusaintReactNative.xcframework/Info.plist +4 -4
  23. package/build/RusaintReactNative.xcframework/_CodeSignature/CodeDirectory +0 -0
  24. package/build/RusaintReactNative.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
  25. package/build/RusaintReactNative.xcframework/_CodeSignature/CodeResources +6 -6
  26. package/build/RusaintReactNative.xcframework/_CodeSignature/CodeSignature +0 -0
  27. package/build/RusaintReactNative.xcframework/ios-arm64/librusaint_ffi.a +0 -0
  28. package/build/RusaintReactNative.xcframework/ios-arm64-simulator/librusaint_ffi.a +0 -0
  29. package/cpp/generated/rusaint_ffi.cpp +79 -0
  30. package/cpp/generated/rusaint_ffi.hpp +4 -0
  31. package/ios/generated/RNRusaintSpec/ComponentDescriptors.cpp +22 -0
  32. package/ios/generated/RNRusaintSpec/ComponentDescriptors.h +24 -0
  33. package/ios/generated/RNRusaintSpec/EventEmitters.cpp +16 -0
  34. package/ios/generated/RNRusaintSpec/EventEmitters.h +17 -0
  35. package/ios/generated/RNRusaintSpec/Props.cpp +19 -0
  36. package/ios/generated/RNRusaintSpec/Props.h +18 -0
  37. package/ios/generated/RNRusaintSpec/RCTComponentViewHelpers.h +18 -0
  38. package/ios/generated/RNRusaintSpec/RNRusaintSpec-generated.mm +46 -0
  39. package/ios/generated/RNRusaintSpec/RNRusaintSpec.h +63 -0
  40. package/ios/generated/RNRusaintSpec/ShadowNodes.cpp +17 -0
  41. package/ios/generated/RNRusaintSpec/ShadowNodes.h +23 -0
  42. package/ios/generated/RNRusaintSpec/States.cpp +16 -0
  43. package/ios/generated/RNRusaintSpec/States.h +19 -0
  44. package/ios/generated/RNRusaintSpecJSI-generated.cpp +32 -0
  45. package/ios/generated/RNRusaintSpecJSI.h +80 -0
  46. package/lib/commonjs/generated/rusaint_ffi-ffi.js.map +1 -1
  47. package/lib/commonjs/generated/rusaint_ffi.js +24 -0
  48. package/lib/commonjs/generated/rusaint_ffi.js.map +1 -1
  49. package/lib/module/generated/rusaint_ffi-ffi.js.map +1 -1
  50. package/lib/module/generated/rusaint_ffi.js +24 -0
  51. package/lib/module/generated/rusaint_ffi.js.map +1 -1
  52. package/lib/typescript/commonjs/src/generated/rusaint_ffi-ffi.d.ts +4 -0
  53. package/lib/typescript/commonjs/src/generated/rusaint_ffi-ffi.d.ts.map +1 -1
  54. package/lib/typescript/commonjs/src/generated/rusaint_ffi.d.ts +16 -0
  55. package/lib/typescript/commonjs/src/generated/rusaint_ffi.d.ts.map +1 -1
  56. package/lib/typescript/module/src/generated/rusaint_ffi-ffi.d.ts +4 -0
  57. package/lib/typescript/module/src/generated/rusaint_ffi-ffi.d.ts.map +1 -1
  58. package/lib/typescript/module/src/generated/rusaint_ffi.d.ts +16 -0
  59. package/lib/typescript/module/src/generated/rusaint_ffi.d.ts.map +1 -1
  60. package/package.json +2 -1
  61. package/src/generated/rusaint_ffi-ffi.ts +11 -0
  62. package/src/generated/rusaint_ffi.ts +67 -1
@@ -475,6 +475,10 @@ extern "C" {
475
475
  void * ptr,
476
476
  RustCallStatus *uniffi_out_err
477
477
  );
478
+ RustBuffer uniffi_rusaint_ffi_fn_method_usaintsession_to_json(
479
+ void * ptr,
480
+ RustCallStatus *uniffi_out_err
481
+ );
478
482
  void * uniffi_rusaint_ffi_fn_clone_usaintsessionbuilder(
479
483
  void * ptr,
480
484
  RustCallStatus *uniffi_out_err
@@ -489,6 +493,11 @@ extern "C" {
489
493
  void * ptr,
490
494
  RustCallStatus *uniffi_out_err
491
495
  );
496
+ void * uniffi_rusaint_ffi_fn_method_usaintsessionbuilder_from_json(
497
+ void * ptr,
498
+ RustBuffer json,
499
+ RustCallStatus *uniffi_out_err
500
+ );
492
501
  /*handle*/ uint64_t uniffi_rusaint_ffi_fn_method_usaintsessionbuilder_with_password(
493
502
  void * ptr,
494
503
  RustBuffer id,
@@ -801,8 +810,12 @@ extern "C" {
801
810
  );
802
811
  uint16_t uniffi_rusaint_ffi_checksum_method_studentinformationapplicationbuilder_build(
803
812
  );
813
+ uint16_t uniffi_rusaint_ffi_checksum_method_usaintsession_to_json(
814
+ );
804
815
  uint16_t uniffi_rusaint_ffi_checksum_method_usaintsessionbuilder_anonymous(
805
816
  );
817
+ uint16_t uniffi_rusaint_ffi_checksum_method_usaintsessionbuilder_from_json(
818
+ );
806
819
  uint16_t uniffi_rusaint_ffi_checksum_method_usaintsessionbuilder_with_password(
807
820
  );
808
821
  uint16_t uniffi_rusaint_ffi_checksum_method_usaintsessionbuilder_with_token(
@@ -3065,6 +3078,14 @@ NativeRusaintFfi::NativeRusaintFfi(
3065
3078
  return this->cpp_uniffi_rusaint_ffi_fn_free_usaintsession(rt, thisVal, args, count);
3066
3079
  }
3067
3080
  );
3081
+ props["ubrn_uniffi_rusaint_ffi_fn_method_usaintsession_to_json"] = jsi::Function::createFromHostFunction(
3082
+ rt,
3083
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_rusaint_ffi_fn_method_usaintsession_to_json"),
3084
+ 1,
3085
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
3086
+ return this->cpp_uniffi_rusaint_ffi_fn_method_usaintsession_to_json(rt, thisVal, args, count);
3087
+ }
3088
+ );
3068
3089
  props["ubrn_uniffi_rusaint_ffi_fn_clone_usaintsessionbuilder"] = jsi::Function::createFromHostFunction(
3069
3090
  rt,
3070
3091
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_rusaint_ffi_fn_clone_usaintsessionbuilder"),
@@ -3097,6 +3118,14 @@ NativeRusaintFfi::NativeRusaintFfi(
3097
3118
  return this->cpp_uniffi_rusaint_ffi_fn_method_usaintsessionbuilder_anonymous(rt, thisVal, args, count);
3098
3119
  }
3099
3120
  );
3121
+ props["ubrn_uniffi_rusaint_ffi_fn_method_usaintsessionbuilder_from_json"] = jsi::Function::createFromHostFunction(
3122
+ rt,
3123
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_rusaint_ffi_fn_method_usaintsessionbuilder_from_json"),
3124
+ 2,
3125
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
3126
+ return this->cpp_uniffi_rusaint_ffi_fn_method_usaintsessionbuilder_from_json(rt, thisVal, args, count);
3127
+ }
3128
+ );
3100
3129
  props["ubrn_uniffi_rusaint_ffi_fn_method_usaintsessionbuilder_with_password"] = jsi::Function::createFromHostFunction(
3101
3130
  rt,
3102
3131
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_rusaint_ffi_fn_method_usaintsessionbuilder_with_password"),
@@ -3889,6 +3918,14 @@ NativeRusaintFfi::NativeRusaintFfi(
3889
3918
  return this->cpp_uniffi_rusaint_ffi_checksum_method_studentinformationapplicationbuilder_build(rt, thisVal, args, count);
3890
3919
  }
3891
3920
  );
3921
+ props["ubrn_uniffi_rusaint_ffi_checksum_method_usaintsession_to_json"] = jsi::Function::createFromHostFunction(
3922
+ rt,
3923
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_rusaint_ffi_checksum_method_usaintsession_to_json"),
3924
+ 0,
3925
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
3926
+ return this->cpp_uniffi_rusaint_ffi_checksum_method_usaintsession_to_json(rt, thisVal, args, count);
3927
+ }
3928
+ );
3892
3929
  props["ubrn_uniffi_rusaint_ffi_checksum_method_usaintsessionbuilder_anonymous"] = jsi::Function::createFromHostFunction(
3893
3930
  rt,
3894
3931
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_rusaint_ffi_checksum_method_usaintsessionbuilder_anonymous"),
@@ -3897,6 +3934,14 @@ NativeRusaintFfi::NativeRusaintFfi(
3897
3934
  return this->cpp_uniffi_rusaint_ffi_checksum_method_usaintsessionbuilder_anonymous(rt, thisVal, args, count);
3898
3935
  }
3899
3936
  );
3937
+ props["ubrn_uniffi_rusaint_ffi_checksum_method_usaintsessionbuilder_from_json"] = jsi::Function::createFromHostFunction(
3938
+ rt,
3939
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_rusaint_ffi_checksum_method_usaintsessionbuilder_from_json"),
3940
+ 0,
3941
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
3942
+ return this->cpp_uniffi_rusaint_ffi_checksum_method_usaintsessionbuilder_from_json(rt, thisVal, args, count);
3943
+ }
3944
+ );
3900
3945
  props["ubrn_uniffi_rusaint_ffi_checksum_method_usaintsessionbuilder_with_password"] = jsi::Function::createFromHostFunction(
3901
3946
  rt,
3902
3947
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_rusaint_ffi_checksum_method_usaintsessionbuilder_with_password"),
@@ -5099,6 +5144,16 @@ jsi::Value NativeRusaintFfi::cpp_uniffi_rusaint_ffi_fn_free_usaintsession(jsi::R
5099
5144
 
5100
5145
  return jsi::Value::undefined();
5101
5146
  }
5147
+ jsi::Value NativeRusaintFfi::cpp_uniffi_rusaint_ffi_fn_method_usaintsession_to_json(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5148
+ RustCallStatus status = uniffi::rusaint_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
5149
+ auto value = uniffi_rusaint_ffi_fn_method_usaintsession_to_json(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
5150
+ &status
5151
+ );
5152
+ uniffi::rusaint_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
5153
+
5154
+
5155
+ return uniffi::rusaint_ffi::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
5156
+ }
5102
5157
  jsi::Value NativeRusaintFfi::cpp_uniffi_rusaint_ffi_fn_clone_usaintsessionbuilder(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5103
5158
  RustCallStatus status = uniffi::rusaint_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
5104
5159
  auto value = uniffi_rusaint_ffi_fn_clone_usaintsessionbuilder(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
@@ -5136,6 +5191,16 @@ jsi::Value NativeRusaintFfi::cpp_uniffi_rusaint_ffi_fn_method_usaintsessionbuild
5136
5191
  uniffi::rusaint_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
5137
5192
 
5138
5193
 
5194
+ return uniffi_jsi::Bridging<void *>::toJs(rt, callInvoker, value);
5195
+ }
5196
+ jsi::Value NativeRusaintFfi::cpp_uniffi_rusaint_ffi_fn_method_usaintsessionbuilder_from_json(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5197
+ RustCallStatus status = uniffi::rusaint_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
5198
+ auto value = uniffi_rusaint_ffi_fn_method_usaintsessionbuilder_from_json(uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), uniffi::rusaint_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
5199
+ &status
5200
+ );
5201
+ uniffi::rusaint_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
5202
+
5203
+
5139
5204
  return uniffi_jsi::Bridging<void *>::toJs(rt, callInvoker, value);
5140
5205
  }
5141
5206
  jsi::Value NativeRusaintFfi::cpp_uniffi_rusaint_ffi_fn_method_usaintsessionbuilder_with_password(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
@@ -5868,6 +5933,13 @@ jsi::Value NativeRusaintFfi::cpp_uniffi_rusaint_ffi_checksum_method_studentinfor
5868
5933
  );
5869
5934
 
5870
5935
 
5936
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
5937
+ }
5938
+ jsi::Value NativeRusaintFfi::cpp_uniffi_rusaint_ffi_checksum_method_usaintsession_to_json(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5939
+ auto value = uniffi_rusaint_ffi_checksum_method_usaintsession_to_json(
5940
+ );
5941
+
5942
+
5871
5943
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
5872
5944
  }
5873
5945
  jsi::Value NativeRusaintFfi::cpp_uniffi_rusaint_ffi_checksum_method_usaintsessionbuilder_anonymous(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
@@ -5875,6 +5947,13 @@ jsi::Value NativeRusaintFfi::cpp_uniffi_rusaint_ffi_checksum_method_usaintsessio
5875
5947
  );
5876
5948
 
5877
5949
 
5950
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
5951
+ }
5952
+ jsi::Value NativeRusaintFfi::cpp_uniffi_rusaint_ffi_checksum_method_usaintsessionbuilder_from_json(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
5953
+ auto value = uniffi_rusaint_ffi_checksum_method_usaintsessionbuilder_from_json(
5954
+ );
5955
+
5956
+
5878
5957
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
5879
5958
  }
5880
5959
  jsi::Value NativeRusaintFfi::cpp_uniffi_rusaint_ffi_checksum_method_usaintsessionbuilder_with_password(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
@@ -108,10 +108,12 @@ class NativeRusaintFfi : public jsi::HostObject {
108
108
  jsi::Value cpp_uniffi_rusaint_ffi_fn_method_studentinformationapplicationbuilder_build(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
109
109
  jsi::Value cpp_uniffi_rusaint_ffi_fn_clone_usaintsession(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
110
110
  jsi::Value cpp_uniffi_rusaint_ffi_fn_free_usaintsession(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
111
+ jsi::Value cpp_uniffi_rusaint_ffi_fn_method_usaintsession_to_json(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
111
112
  jsi::Value cpp_uniffi_rusaint_ffi_fn_clone_usaintsessionbuilder(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
112
113
  jsi::Value cpp_uniffi_rusaint_ffi_fn_free_usaintsessionbuilder(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
113
114
  jsi::Value cpp_uniffi_rusaint_ffi_fn_constructor_usaintsessionbuilder_new(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
114
115
  jsi::Value cpp_uniffi_rusaint_ffi_fn_method_usaintsessionbuilder_anonymous(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
116
+ jsi::Value cpp_uniffi_rusaint_ffi_fn_method_usaintsessionbuilder_from_json(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
115
117
  jsi::Value cpp_uniffi_rusaint_ffi_fn_method_usaintsessionbuilder_with_password(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
116
118
  jsi::Value cpp_uniffi_rusaint_ffi_fn_method_usaintsessionbuilder_with_token(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
117
119
  jsi::Value cpp_ffi_rusaint_ffi_rust_future_poll_u8(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
@@ -211,7 +213,9 @@ class NativeRusaintFfi : public jsi::HostObject {
211
213
  jsi::Value cpp_uniffi_rusaint_ffi_checksum_method_studentinformationapplication_transfer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
212
214
  jsi::Value cpp_uniffi_rusaint_ffi_checksum_method_studentinformationapplication_work(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
213
215
  jsi::Value cpp_uniffi_rusaint_ffi_checksum_method_studentinformationapplicationbuilder_build(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
216
+ jsi::Value cpp_uniffi_rusaint_ffi_checksum_method_usaintsession_to_json(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
214
217
  jsi::Value cpp_uniffi_rusaint_ffi_checksum_method_usaintsessionbuilder_anonymous(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
218
+ jsi::Value cpp_uniffi_rusaint_ffi_checksum_method_usaintsessionbuilder_from_json(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
215
219
  jsi::Value cpp_uniffi_rusaint_ffi_checksum_method_usaintsessionbuilder_with_password(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
216
220
  jsi::Value cpp_uniffi_rusaint_ffi_checksum_method_usaintsessionbuilder_with_token(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
217
221
  jsi::Value cpp_uniffi_rusaint_ffi_checksum_constructor_chapelapplicationbuilder_new(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
@@ -0,0 +1,22 @@
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: GenerateComponentDescriptorCpp.js
9
+ */
10
+
11
+ #include "ComponentDescriptors.h"
12
+ #include <react/renderer/core/ConcreteComponentDescriptor.h>
13
+ #include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
14
+
15
+ namespace facebook::react {
16
+
17
+ void RNRusaintSpec_registerComponentDescriptorsFromCodegen(
18
+ std::shared_ptr<const ComponentDescriptorProviderRegistry> registry) {
19
+
20
+ }
21
+
22
+ } // namespace facebook::react
@@ -0,0 +1,24 @@
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: GenerateComponentDescriptorH.js
9
+ */
10
+
11
+ #pragma once
12
+
13
+ #include "ShadowNodes.h"
14
+ #include <react/renderer/core/ConcreteComponentDescriptor.h>
15
+ #include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
16
+
17
+ namespace facebook::react {
18
+
19
+
20
+
21
+ void RNRusaintSpec_registerComponentDescriptorsFromCodegen(
22
+ std::shared_ptr<const ComponentDescriptorProviderRegistry> registry);
23
+
24
+ } // namespace facebook::react
@@ -0,0 +1,16 @@
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: GenerateEventEmitterCpp.js
9
+ */
10
+
11
+ #include "EventEmitters.h"
12
+
13
+
14
+ namespace facebook::react {
15
+
16
+ } // namespace facebook::react
@@ -0,0 +1,17 @@
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: GenerateEventEmitterH.js
9
+ */
10
+ #pragma once
11
+
12
+ #include <react/renderer/components/view/ViewEventEmitter.h>
13
+
14
+
15
+ namespace facebook::react {
16
+
17
+ } // namespace facebook::react
@@ -0,0 +1,19 @@
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: GeneratePropsCpp.js
9
+ */
10
+
11
+ #include "Props.h"
12
+ #include <react/renderer/core/PropsParserContext.h>
13
+ #include <react/renderer/core/propsConversions.h>
14
+
15
+ namespace facebook::react {
16
+
17
+
18
+
19
+ } // namespace facebook::react
@@ -0,0 +1,18 @@
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: GeneratePropsH.js
9
+ */
10
+ #pragma once
11
+
12
+
13
+
14
+ namespace facebook::react {
15
+
16
+
17
+
18
+ } // namespace facebook::react
@@ -0,0 +1,18 @@
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: GenerateComponentHObjCpp.js
8
+ */
9
+
10
+ #import <Foundation/Foundation.h>
11
+ #import <React/RCTDefines.h>
12
+ #import <React/RCTLog.h>
13
+
14
+ NS_ASSUME_NONNULL_BEGIN
15
+
16
+
17
+
18
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,46 @@
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: GenerateModuleObjCpp
8
+ *
9
+ * We create an umbrella header (and corresponding implementation) here since
10
+ * Cxx compilation in BUCK has a limitation: source-code producing genrule()s
11
+ * must have a single output. More files => more genrule()s => slower builds.
12
+ */
13
+
14
+ #import "RNRusaintSpec.h"
15
+
16
+
17
+ @implementation NativeRusaintReactNativeSpecBase
18
+
19
+
20
+ - (void)setEventEmitterCallback:(EventEmitterCallbackWrapper *)eventEmitterCallbackWrapper
21
+ {
22
+ _eventEmitterCallback = std::move(eventEmitterCallbackWrapper->_eventEmitterCallback);
23
+ }
24
+ @end
25
+
26
+
27
+ namespace facebook::react {
28
+
29
+ static facebook::jsi::Value __hostFunction_NativeRusaintReactNativeSpecJSI_installRustCrate(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
30
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, BooleanKind, "installRustCrate", @selector(installRustCrate), args, count);
31
+ }
32
+
33
+ static facebook::jsi::Value __hostFunction_NativeRusaintReactNativeSpecJSI_cleanupRustCrate(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
34
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, BooleanKind, "cleanupRustCrate", @selector(cleanupRustCrate), args, count);
35
+ }
36
+
37
+ NativeRusaintReactNativeSpecJSI::NativeRusaintReactNativeSpecJSI(const ObjCTurboModule::InitParams &params)
38
+ : ObjCTurboModule(params) {
39
+
40
+ methodMap_["installRustCrate"] = MethodMetadata {0, __hostFunction_NativeRusaintReactNativeSpecJSI_installRustCrate};
41
+
42
+
43
+ methodMap_["cleanupRustCrate"] = MethodMetadata {0, __hostFunction_NativeRusaintReactNativeSpecJSI_cleanupRustCrate};
44
+
45
+ }
46
+ } // namespace facebook::react
@@ -0,0 +1,63 @@
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: GenerateModuleObjCpp
8
+ *
9
+ * We create an umbrella header (and corresponding implementation) here since
10
+ * Cxx compilation in BUCK has a limitation: source-code producing genrule()s
11
+ * must have a single output. More files => more genrule()s => slower builds.
12
+ */
13
+
14
+ #ifndef __cplusplus
15
+ #error This file must be compiled as Obj-C++. If you are importing it, you must change your file extension to .mm.
16
+ #endif
17
+
18
+ // Avoid multiple includes of RNRusaintSpec symbols
19
+ #ifndef RNRusaintSpec_H
20
+ #define RNRusaintSpec_H
21
+
22
+ #import <Foundation/Foundation.h>
23
+ #import <RCTRequired/RCTRequired.h>
24
+ #import <RCTTypeSafety/RCTConvertHelpers.h>
25
+ #import <RCTTypeSafety/RCTTypedModuleConstants.h>
26
+ #import <React/RCTBridgeModule.h>
27
+ #import <React/RCTCxxConvert.h>
28
+ #import <React/RCTManagedPointer.h>
29
+ #import <ReactCommon/RCTTurboModule.h>
30
+ #import <optional>
31
+ #import <vector>
32
+
33
+
34
+ NS_ASSUME_NONNULL_BEGIN
35
+
36
+ @protocol NativeRusaintReactNativeSpec <RCTBridgeModule, RCTTurboModule>
37
+
38
+ - (NSNumber *)installRustCrate;
39
+ - (NSNumber *)cleanupRustCrate;
40
+
41
+ @end
42
+
43
+ @interface NativeRusaintReactNativeSpecBase : NSObject {
44
+ @protected
45
+ facebook::react::EventEmitterCallback _eventEmitterCallback;
46
+ }
47
+ - (void)setEventEmitterCallback:(EventEmitterCallbackWrapper *)eventEmitterCallbackWrapper;
48
+
49
+
50
+ @end
51
+
52
+ namespace facebook::react {
53
+ /**
54
+ * ObjC++ class for module 'NativeRusaintReactNative'
55
+ */
56
+ class JSI_EXPORT NativeRusaintReactNativeSpecJSI : public ObjCTurboModule {
57
+ public:
58
+ NativeRusaintReactNativeSpecJSI(const ObjCTurboModule::InitParams &params);
59
+ };
60
+ } // namespace facebook::react
61
+
62
+ NS_ASSUME_NONNULL_END
63
+ #endif // RNRusaintSpec_H
@@ -0,0 +1,17 @@
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: GenerateShadowNodeCpp.js
9
+ */
10
+
11
+ #include "ShadowNodes.h"
12
+
13
+ namespace facebook::react {
14
+
15
+
16
+
17
+ } // namespace facebook::react
@@ -0,0 +1,23 @@
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: GenerateShadowNodeH.js
9
+ */
10
+
11
+ #pragma once
12
+
13
+ #include "EventEmitters.h"
14
+ #include "Props.h"
15
+ #include "States.h"
16
+ #include <react/renderer/components/view/ConcreteViewShadowNode.h>
17
+ #include <jsi/jsi.h>
18
+
19
+ namespace facebook::react {
20
+
21
+
22
+
23
+ } // namespace facebook::react
@@ -0,0 +1,16 @@
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: GenerateStateCpp.js
9
+ */
10
+ #include "States.h"
11
+
12
+ namespace facebook::react {
13
+
14
+
15
+
16
+ } // namespace facebook::react
@@ -0,0 +1,19 @@
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: GenerateStateH.js
8
+ */
9
+ #pragma once
10
+
11
+ #ifdef ANDROID
12
+ #include <folly/dynamic.h>
13
+ #endif
14
+
15
+ namespace facebook::react {
16
+
17
+
18
+
19
+ } // 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
@@ -0,0 +1,80 @@
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: GenerateModuleH.js
8
+ */
9
+
10
+ #pragma once
11
+
12
+ #include <ReactCommon/TurboModule.h>
13
+ #include <react/bridging/Bridging.h>
14
+
15
+ namespace facebook::react {
16
+
17
+
18
+ class JSI_EXPORT NativeRusaintReactNativeCxxSpecJSI : public TurboModule {
19
+ protected:
20
+ NativeRusaintReactNativeCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
21
+
22
+ public:
23
+ virtual bool installRustCrate(jsi::Runtime &rt) = 0;
24
+ virtual bool cleanupRustCrate(jsi::Runtime &rt) = 0;
25
+
26
+ };
27
+
28
+ template <typename T>
29
+ class JSI_EXPORT NativeRusaintReactNativeCxxSpec : public TurboModule {
30
+ public:
31
+ jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
32
+ return delegate_.create(rt, propName);
33
+ }
34
+
35
+ std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& runtime) override {
36
+ return delegate_.getPropertyNames(runtime);
37
+ }
38
+
39
+ static constexpr std::string_view kModuleName = "RusaintReactNative";
40
+
41
+ protected:
42
+ NativeRusaintReactNativeCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
43
+ : TurboModule(std::string{NativeRusaintReactNativeCxxSpec::kModuleName}, jsInvoker),
44
+ delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
45
+
46
+
47
+ private:
48
+ class Delegate : public NativeRusaintReactNativeCxxSpecJSI {
49
+ public:
50
+ Delegate(T *instance, std::shared_ptr<CallInvoker> jsInvoker) :
51
+ NativeRusaintReactNativeCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {
52
+
53
+ }
54
+
55
+ bool installRustCrate(jsi::Runtime &rt) override {
56
+ static_assert(
57
+ bridging::getParameterCount(&T::installRustCrate) == 1,
58
+ "Expected installRustCrate(...) to have 1 parameters");
59
+
60
+ return bridging::callFromJs<bool>(
61
+ rt, &T::installRustCrate, jsInvoker_, instance_);
62
+ }
63
+ bool cleanupRustCrate(jsi::Runtime &rt) override {
64
+ static_assert(
65
+ bridging::getParameterCount(&T::cleanupRustCrate) == 1,
66
+ "Expected cleanupRustCrate(...) to have 1 parameters");
67
+
68
+ return bridging::callFromJs<bool>(
69
+ rt, &T::cleanupRustCrate, jsInvoker_, instance_);
70
+ }
71
+
72
+ private:
73
+ friend class NativeRusaintReactNativeCxxSpec;
74
+ T *instance_;
75
+ };
76
+
77
+ Delegate delegate_;
78
+ };
79
+
80
+ } // namespace facebook::react
@@ -1 +1 @@
1
- {"version":3,"names":["getter","globalThis","NativeRusaintFfi","_default","exports","default","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/rusaint_ffi-ffi.ts"],"mappings":";;;;;;AAAA;AACA;;AAkqBA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,gBAAgB;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACxBL,MAAM,EAErB;AAmHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMM,8CAGL,GAAG,IAAI;AACR,MAAMC,mCAGL,GAAG,IAAI","ignoreList":[]}
1
+ {"version":3,"names":["getter","globalThis","NativeRusaintFfi","_default","exports","default","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/rusaint_ffi-ffi.ts"],"mappings":";;;;;;AAAA;AACA;;AA6qBA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,gBAAgB;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACxBL,MAAM,EAErB;AAmHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMM,8CAGL,GAAG,IAAI;AACR,MAAMC,mCAGL,GAAG,IAAI","ignoreList":[]}