@rusaint/react-native 0.10.0-dev.0 → 0.10.0-dev.1
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.
- package/android/src/main/jniLibs/arm64-v8a/librusaint_ffi.a +0 -0
- package/android/src/main/jniLibs/armeabi-v7a/librusaint_ffi.a +0 -0
- package/android/src/main/jniLibs/x86/librusaint_ffi.a +0 -0
- package/android/src/main/jniLibs/x86_64/librusaint_ffi.a +0 -0
- package/build/RusaintReactNativeFramework.xcframework/_CodeSignature/CodeDirectory +0 -0
- package/build/RusaintReactNativeFramework.xcframework/_CodeSignature/CodeRequirements +0 -0
- package/build/RusaintReactNativeFramework.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
- package/build/RusaintReactNativeFramework.xcframework/_CodeSignature/CodeResources +128 -0
- package/build/RusaintReactNativeFramework.xcframework/_CodeSignature/CodeSignature +0 -0
- package/build/RusaintReactNativeFramework.xcframework/ios-arm64/librusaint_ffi.a +0 -0
- package/build/RusaintReactNativeFramework.xcframework/ios-arm64-simulator/librusaint_ffi.a +0 -0
- package/cpp/generated/rusaint.cpp +1762 -1705
- package/cpp/generated/rusaint.hpp +64 -153
- package/cpp/generated/rusaint_ffi.cpp +5235 -6669
- package/cpp/generated/rusaint_ffi.hpp +255 -858
- package/package.json +1 -1
|
@@ -1,168 +1,79 @@
|
|
|
1
|
-
// This file was autogenerated by some hot garbage in the
|
|
2
|
-
//
|
|
3
|
-
// it!
|
|
1
|
+
// This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate.
|
|
2
|
+
// Trust me, you don't want to mess with it!
|
|
4
3
|
#pragma once
|
|
5
|
-
#include "UniffiCallInvoker.h"
|
|
6
|
-
#include <ReactCommon/CallInvoker.h>
|
|
7
|
-
#include <iostream>
|
|
8
4
|
#include <jsi/jsi.h>
|
|
5
|
+
#include <iostream>
|
|
9
6
|
#include <map>
|
|
10
7
|
#include <memory>
|
|
8
|
+
#include <ReactCommon/CallInvoker.h>
|
|
9
|
+
#include "UniffiCallInvoker.h"
|
|
11
10
|
|
|
12
11
|
namespace react = facebook::react;
|
|
13
12
|
namespace jsi = facebook::jsi;
|
|
14
13
|
|
|
15
14
|
class NativeRusaint : public jsi::HostObject {
|
|
16
|
-
private:
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
private:
|
|
16
|
+
// For calling back into JS from Rust.
|
|
17
|
+
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker;
|
|
19
18
|
|
|
20
|
-
protected:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
56
|
-
size_t count);
|
|
57
|
-
jsi::Value
|
|
58
|
-
cpp_uniffi_rusaint_fn_method_lecturecategorybuilder_find_by_professor(
|
|
59
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
60
|
-
size_t count);
|
|
61
|
-
jsi::Value cpp_uniffi_rusaint_fn_method_lecturecategorybuilder_graduated(
|
|
62
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
63
|
-
size_t count);
|
|
64
|
-
jsi::Value cpp_uniffi_rusaint_fn_method_lecturecategorybuilder_major(
|
|
65
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
66
|
-
size_t count);
|
|
67
|
-
jsi::Value
|
|
68
|
-
cpp_uniffi_rusaint_fn_method_lecturecategorybuilder_optional_elective(
|
|
69
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
70
|
-
size_t count);
|
|
71
|
-
jsi::Value
|
|
72
|
-
cpp_uniffi_rusaint_fn_method_lecturecategorybuilder_recognized_other_major(
|
|
73
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
74
|
-
size_t count);
|
|
75
|
-
jsi::Value
|
|
76
|
-
cpp_uniffi_rusaint_fn_method_lecturecategorybuilder_required_elective(
|
|
77
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
78
|
-
size_t count);
|
|
79
|
-
jsi::Value cpp_uniffi_rusaint_fn_method_lecturecategorybuilder_united_major(
|
|
80
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
81
|
-
size_t count);
|
|
82
|
-
jsi::Value cpp_uniffi_rusaint_checksum_method_lecturecategorybuilder_chapel(
|
|
83
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
84
|
-
size_t count);
|
|
85
|
-
jsi::Value
|
|
86
|
-
cpp_uniffi_rusaint_checksum_method_lecturecategorybuilder_connected_major(
|
|
87
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
88
|
-
size_t count);
|
|
89
|
-
jsi::Value cpp_uniffi_rusaint_checksum_method_lecturecategorybuilder_cyber(
|
|
90
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
91
|
-
size_t count);
|
|
92
|
-
jsi::Value
|
|
93
|
-
cpp_uniffi_rusaint_checksum_method_lecturecategorybuilder_education(
|
|
94
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
95
|
-
size_t count);
|
|
96
|
-
jsi::Value
|
|
97
|
-
cpp_uniffi_rusaint_checksum_method_lecturecategorybuilder_find_by_lecture(
|
|
98
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
99
|
-
size_t count);
|
|
100
|
-
jsi::Value
|
|
101
|
-
cpp_uniffi_rusaint_checksum_method_lecturecategorybuilder_find_by_professor(
|
|
102
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
103
|
-
size_t count);
|
|
104
|
-
jsi::Value
|
|
105
|
-
cpp_uniffi_rusaint_checksum_method_lecturecategorybuilder_graduated(
|
|
106
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
107
|
-
size_t count);
|
|
108
|
-
jsi::Value cpp_uniffi_rusaint_checksum_method_lecturecategorybuilder_major(
|
|
109
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
110
|
-
size_t count);
|
|
111
|
-
jsi::Value
|
|
112
|
-
cpp_uniffi_rusaint_checksum_method_lecturecategorybuilder_optional_elective(
|
|
113
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
114
|
-
size_t count);
|
|
115
|
-
jsi::Value
|
|
116
|
-
cpp_uniffi_rusaint_checksum_method_lecturecategorybuilder_recognized_other_major(
|
|
117
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
118
|
-
size_t count);
|
|
119
|
-
jsi::Value
|
|
120
|
-
cpp_uniffi_rusaint_checksum_method_lecturecategorybuilder_required_elective(
|
|
121
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
122
|
-
size_t count);
|
|
123
|
-
jsi::Value
|
|
124
|
-
cpp_uniffi_rusaint_checksum_method_lecturecategorybuilder_united_major(
|
|
125
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
126
|
-
size_t count);
|
|
127
|
-
jsi::Value cpp_uniffi_rusaint_checksum_constructor_lecturecategorybuilder_new(
|
|
128
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
129
|
-
size_t count);
|
|
130
|
-
jsi::Value cpp_ffi_rusaint_uniffi_contract_version(jsi::Runtime &rt,
|
|
131
|
-
const jsi::Value &thisVal,
|
|
132
|
-
const jsi::Value *args,
|
|
133
|
-
size_t count);
|
|
134
|
-
jsi::Value
|
|
135
|
-
cpp_uniffi_internal_fn_method_lecturecategorybuilder_ffi__bless_pointer(
|
|
136
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
137
|
-
size_t count);
|
|
19
|
+
protected:
|
|
20
|
+
std::map<std::string,jsi::Value> props;
|
|
21
|
+
jsi::Value cpp_uniffi_internal_fn_func_ffi__string_to_byte_length(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
22
|
+
jsi::Value cpp_uniffi_internal_fn_func_ffi__string_to_arraybuffer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
23
|
+
jsi::Value cpp_uniffi_internal_fn_func_ffi__arraybuffer_to_string(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
24
|
+
jsi::Value cpp_uniffi_rusaint_fn_clone_lecturecategorybuilder(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
25
|
+
jsi::Value cpp_uniffi_rusaint_fn_free_lecturecategorybuilder(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
26
|
+
jsi::Value cpp_uniffi_rusaint_fn_constructor_lecturecategorybuilder_new(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
27
|
+
jsi::Value cpp_uniffi_rusaint_fn_method_lecturecategorybuilder_chapel(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
28
|
+
jsi::Value cpp_uniffi_rusaint_fn_method_lecturecategorybuilder_connected_major(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
29
|
+
jsi::Value cpp_uniffi_rusaint_fn_method_lecturecategorybuilder_cyber(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
30
|
+
jsi::Value cpp_uniffi_rusaint_fn_method_lecturecategorybuilder_education(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
31
|
+
jsi::Value cpp_uniffi_rusaint_fn_method_lecturecategorybuilder_find_by_lecture(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
32
|
+
jsi::Value cpp_uniffi_rusaint_fn_method_lecturecategorybuilder_find_by_professor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
33
|
+
jsi::Value cpp_uniffi_rusaint_fn_method_lecturecategorybuilder_graduated(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
34
|
+
jsi::Value cpp_uniffi_rusaint_fn_method_lecturecategorybuilder_major(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
35
|
+
jsi::Value cpp_uniffi_rusaint_fn_method_lecturecategorybuilder_optional_elective(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
36
|
+
jsi::Value cpp_uniffi_rusaint_fn_method_lecturecategorybuilder_recognized_other_major(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
37
|
+
jsi::Value cpp_uniffi_rusaint_fn_method_lecturecategorybuilder_required_elective(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
38
|
+
jsi::Value cpp_uniffi_rusaint_fn_method_lecturecategorybuilder_united_major(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
39
|
+
jsi::Value cpp_uniffi_rusaint_checksum_method_lecturecategorybuilder_chapel(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
40
|
+
jsi::Value cpp_uniffi_rusaint_checksum_method_lecturecategorybuilder_connected_major(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
41
|
+
jsi::Value cpp_uniffi_rusaint_checksum_method_lecturecategorybuilder_cyber(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
42
|
+
jsi::Value cpp_uniffi_rusaint_checksum_method_lecturecategorybuilder_education(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
43
|
+
jsi::Value cpp_uniffi_rusaint_checksum_method_lecturecategorybuilder_find_by_lecture(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
44
|
+
jsi::Value cpp_uniffi_rusaint_checksum_method_lecturecategorybuilder_find_by_professor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
45
|
+
jsi::Value cpp_uniffi_rusaint_checksum_method_lecturecategorybuilder_graduated(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
46
|
+
jsi::Value cpp_uniffi_rusaint_checksum_method_lecturecategorybuilder_major(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
47
|
+
jsi::Value cpp_uniffi_rusaint_checksum_method_lecturecategorybuilder_optional_elective(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
48
|
+
jsi::Value cpp_uniffi_rusaint_checksum_method_lecturecategorybuilder_recognized_other_major(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
49
|
+
jsi::Value cpp_uniffi_rusaint_checksum_method_lecturecategorybuilder_required_elective(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
50
|
+
jsi::Value cpp_uniffi_rusaint_checksum_method_lecturecategorybuilder_united_major(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
51
|
+
jsi::Value cpp_uniffi_rusaint_checksum_constructor_lecturecategorybuilder_new(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
52
|
+
jsi::Value cpp_ffi_rusaint_uniffi_contract_version(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
53
|
+
jsi::Value cpp_uniffi_internal_fn_method_lecturecategorybuilder_ffi__bless_pointer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
138
54
|
|
|
139
|
-
public:
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
virtual ~NativeRusaint();
|
|
55
|
+
public:
|
|
56
|
+
NativeRusaint(jsi::Runtime &rt, std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker);
|
|
57
|
+
virtual ~NativeRusaint();
|
|
143
58
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
std::shared_ptr<react::CallInvoker> callInvoker);
|
|
59
|
+
/**
|
|
60
|
+
* The entry point into the crate.
|
|
61
|
+
*
|
|
62
|
+
* React Native must call `NativeRusaint.registerModule(rt, callInvoker)` before using
|
|
63
|
+
* the Javascript interface.
|
|
64
|
+
*/
|
|
65
|
+
static void registerModule(jsi::Runtime &rt, std::shared_ptr<react::CallInvoker> callInvoker);
|
|
152
66
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
*/
|
|
162
|
-
static void unregisterModule(jsi::Runtime &rt);
|
|
67
|
+
/**
|
|
68
|
+
* Some cleanup into the crate goes here.
|
|
69
|
+
*
|
|
70
|
+
* Current implementation is empty, however, this is not guaranteed to always be the case.
|
|
71
|
+
*
|
|
72
|
+
* Clients should call `NativeRusaint.unregisterModule(rt)` after final use where possible.
|
|
73
|
+
*/
|
|
74
|
+
static void unregisterModule(jsi::Runtime &rt);
|
|
163
75
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
virtual std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime &rt);
|
|
76
|
+
virtual jsi::Value get(jsi::Runtime& rt, const jsi::PropNameID& name);
|
|
77
|
+
virtual void set(jsi::Runtime& rt,const jsi::PropNameID& name,const jsi::Value& value);
|
|
78
|
+
virtual std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& rt);
|
|
168
79
|
};
|