@rusaint/react-native 0.10.0-dev.0
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/LICENSE +20 -0
- package/README.md +15 -0
- package/android/CMakeLists.txt +78 -0
- package/android/build.gradle +143 -0
- package/android/cpp-adapter.cpp +63 -0
- package/android/generated/java/dev/eatsteak/rusaint/reactnative/NativeReactNativeSpec.java +41 -0
- package/android/generated/jni/CMakeLists.txt +36 -0
- package/android/generated/jni/RNReactNativeSpec-generated.cpp +38 -0
- package/android/generated/jni/RNReactNativeSpec.h +31 -0
- package/android/generated/jni/react/renderer/components/RNReactNativeSpec/RNReactNativeSpecJSI-generated.cpp +32 -0
- package/android/generated/jni/react/renderer/components/RNReactNativeSpec/RNReactNativeSpecJSI.h +80 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +5 -0
- package/android/src/main/java/dev/eatsteak/rusaint/reactnative/ReactNativeModule.kt +43 -0
- package/android/src/main/java/dev/eatsteak/rusaint/reactnative/ReactNativePackage.kt +34 -0
- 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/Info.plist +43 -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 +2485 -0
- package/cpp/generated/rusaint.hpp +168 -0
- package/cpp/generated/rusaint_ffi.cpp +7397 -0
- package/cpp/generated/rusaint_ffi.hpp +873 -0
- package/cpp/rusaint-react-native.cpp +18 -0
- package/cpp/rusaint-react-native.h +15 -0
- package/ios/ReactNative.h +16 -0
- package/ios/ReactNative.mm +66 -0
- package/ios/generated/RNReactNativeSpec/RNReactNativeSpec-generated.mm +46 -0
- package/ios/generated/RNReactNativeSpec/RNReactNativeSpec.h +63 -0
- package/ios/generated/RNReactNativeSpecJSI-generated.cpp +32 -0
- package/ios/generated/RNReactNativeSpecJSI.h +80 -0
- package/lib/commonjs/NativeReactNative.ts +10 -0
- package/lib/commonjs/generated/rusaint-ffi.js +44 -0
- package/lib/commonjs/generated/rusaint-ffi.js.map +1 -0
- package/lib/commonjs/generated/rusaint.js +3232 -0
- package/lib/commonjs/generated/rusaint.js.map +1 -0
- package/lib/commonjs/generated/rusaint_ffi-ffi.js +44 -0
- package/lib/commonjs/generated/rusaint_ffi-ffi.js.map +1 -0
- package/lib/commonjs/generated/rusaint_ffi.js +2493 -0
- package/lib/commonjs/generated/rusaint_ffi.js.map +1 -0
- package/lib/commonjs/index.js +68 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/module/NativeReactNative.ts +10 -0
- package/lib/module/generated/rusaint-ffi.js +43 -0
- package/lib/module/generated/rusaint-ffi.js.map +1 -0
- package/lib/module/generated/rusaint.js +3226 -0
- package/lib/module/generated/rusaint.js.map +1 -0
- package/lib/module/generated/rusaint_ffi-ffi.js +43 -0
- package/lib/module/generated/rusaint_ffi-ffi.js.map +1 -0
- package/lib/module/generated/rusaint_ffi.js +2469 -0
- package/lib/module/generated/rusaint_ffi.js.map +1 -0
- package/lib/module/index.js +40 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/typescript/commonjs/src/NativeReactNative.d.ts +8 -0
- package/lib/typescript/commonjs/src/NativeReactNative.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/generated/rusaint-ffi.d.ts +109 -0
- package/lib/typescript/commonjs/src/generated/rusaint-ffi.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/generated/rusaint.d.ts +2330 -0
- package/lib/typescript/commonjs/src/generated/rusaint.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/generated/rusaint_ffi-ffi.d.ts +300 -0
- package/lib/typescript/commonjs/src/generated/rusaint_ffi-ffi.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/generated/rusaint_ffi.d.ts +1111 -0
- package/lib/typescript/commonjs/src/generated/rusaint_ffi.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +10 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/package.json +185 -0
- package/react-native.config.js +12 -0
- package/rusaint-react-native.podspec +44 -0
- package/src/NativeReactNative.ts +10 -0
- package/src/generated/rusaint-ffi.ts +276 -0
- package/src/generated/rusaint.ts +4867 -0
- package/src/generated/rusaint_ffi-ffi.ts +832 -0
- package/src/generated/rusaint_ffi.ts +5519 -0
- package/src/index.tsx +38 -0
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
// This file was autogenerated by some hot garbage in the
|
|
2
|
+
// `uniffi-bindgen-react-native` crate. Trust me, you don't want to mess with
|
|
3
|
+
// it!
|
|
4
|
+
#pragma once
|
|
5
|
+
#include "UniffiCallInvoker.h"
|
|
6
|
+
#include <ReactCommon/CallInvoker.h>
|
|
7
|
+
#include <iostream>
|
|
8
|
+
#include <jsi/jsi.h>
|
|
9
|
+
#include <map>
|
|
10
|
+
#include <memory>
|
|
11
|
+
|
|
12
|
+
namespace react = facebook::react;
|
|
13
|
+
namespace jsi = facebook::jsi;
|
|
14
|
+
|
|
15
|
+
class NativeRusaint : public jsi::HostObject {
|
|
16
|
+
private:
|
|
17
|
+
// For calling back into JS from Rust.
|
|
18
|
+
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker;
|
|
19
|
+
|
|
20
|
+
protected:
|
|
21
|
+
std::map<std::string, jsi::Value> props;
|
|
22
|
+
jsi::Value cpp_uniffi_internal_fn_func_ffi__string_to_byte_length(
|
|
23
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
24
|
+
size_t count);
|
|
25
|
+
jsi::Value cpp_uniffi_internal_fn_func_ffi__string_to_arraybuffer(
|
|
26
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
27
|
+
size_t count);
|
|
28
|
+
jsi::Value cpp_uniffi_internal_fn_func_ffi__arraybuffer_to_string(
|
|
29
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
30
|
+
size_t count);
|
|
31
|
+
jsi::Value cpp_uniffi_rusaint_fn_clone_lecturecategorybuilder(
|
|
32
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
33
|
+
size_t count);
|
|
34
|
+
jsi::Value cpp_uniffi_rusaint_fn_free_lecturecategorybuilder(
|
|
35
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
36
|
+
size_t count);
|
|
37
|
+
jsi::Value cpp_uniffi_rusaint_fn_constructor_lecturecategorybuilder_new(
|
|
38
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
39
|
+
size_t count);
|
|
40
|
+
jsi::Value cpp_uniffi_rusaint_fn_method_lecturecategorybuilder_chapel(
|
|
41
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
42
|
+
size_t count);
|
|
43
|
+
jsi::Value
|
|
44
|
+
cpp_uniffi_rusaint_fn_method_lecturecategorybuilder_connected_major(
|
|
45
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
46
|
+
size_t count);
|
|
47
|
+
jsi::Value cpp_uniffi_rusaint_fn_method_lecturecategorybuilder_cyber(
|
|
48
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
49
|
+
size_t count);
|
|
50
|
+
jsi::Value cpp_uniffi_rusaint_fn_method_lecturecategorybuilder_education(
|
|
51
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
52
|
+
size_t count);
|
|
53
|
+
jsi::Value
|
|
54
|
+
cpp_uniffi_rusaint_fn_method_lecturecategorybuilder_find_by_lecture(
|
|
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);
|
|
138
|
+
|
|
139
|
+
public:
|
|
140
|
+
NativeRusaint(jsi::Runtime &rt,
|
|
141
|
+
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker);
|
|
142
|
+
virtual ~NativeRusaint();
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* The entry point into the crate.
|
|
146
|
+
*
|
|
147
|
+
* React Native must call `NativeRusaint.registerModule(rt, callInvoker)`
|
|
148
|
+
* before using the Javascript interface.
|
|
149
|
+
*/
|
|
150
|
+
static void registerModule(jsi::Runtime &rt,
|
|
151
|
+
std::shared_ptr<react::CallInvoker> callInvoker);
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Some cleanup into the crate goes here.
|
|
155
|
+
*
|
|
156
|
+
* Current implementation is empty, however, this is not guaranteed to always
|
|
157
|
+
* be the case.
|
|
158
|
+
*
|
|
159
|
+
* Clients should call `NativeRusaint.unregisterModule(rt)` after final use
|
|
160
|
+
* where possible.
|
|
161
|
+
*/
|
|
162
|
+
static void unregisterModule(jsi::Runtime &rt);
|
|
163
|
+
|
|
164
|
+
virtual jsi::Value get(jsi::Runtime &rt, const jsi::PropNameID &name);
|
|
165
|
+
virtual void set(jsi::Runtime &rt, const jsi::PropNameID &name,
|
|
166
|
+
const jsi::Value &value);
|
|
167
|
+
virtual std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime &rt);
|
|
168
|
+
};
|