@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.
- package/android/CMakeLists.txt +1 -1
- package/android/build.gradle +3 -3
- package/android/cpp-adapter.cpp +8 -8
- package/android/gradle.properties +5 -5
- package/android/src/main/AndroidManifestNew.xml +5 -0
- package/android/src/main/java/dev/eatsteak/rusaint/reactnative/{ReactNativeModule.kt → RusaintReactNativeModule.kt} +4 -4
- package/android/src/main/java/dev/eatsteak/rusaint/reactnative/{ReactNativePackage.kt → RusaintReactNativePackage.kt} +6 -6
- package/build/RusaintReactNative.xcframework/_CodeSignature/CodeDirectory +0 -0
- package/build/RusaintReactNative.xcframework/_CodeSignature/CodeRequirements +0 -0
- package/build/RusaintReactNative.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
- package/build/{RusaintReactNativeFramework.xcframework → RusaintReactNative.xcframework}/_CodeSignature/CodeSignature +0 -0
- package/cpp/rusaint-react-native.cpp +1 -1
- package/cpp/rusaint-react-native.h +4 -4
- package/ios/{ReactNative.h → RusaintReactNative.h} +3 -3
- package/ios/{ReactNative.mm → RusaintReactNative.mm} +16 -16
- package/{src/NativeReactNative.ts → lib/commonjs/NativeRusaintReactNative.ts} +1 -1
- package/lib/commonjs/index.js +2 -2
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/{NativeReactNative.ts → NativeRusaintReactNative.ts} +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/commonjs/src/{NativeReactNative.d.ts → NativeRusaintReactNative.d.ts} +1 -1
- package/lib/typescript/commonjs/src/NativeRusaintReactNative.d.ts.map +1 -0
- package/lib/typescript/module/src/{NativeReactNative.d.ts → NativeRusaintReactNative.d.ts} +1 -1
- package/lib/typescript/module/src/NativeRusaintReactNative.d.ts.map +1 -0
- package/package.json +11 -7
- package/rusaint-react-native.podspec +1 -1
- package/{lib/commonjs/NativeReactNative.ts → src/NativeRusaintReactNative.ts} +1 -1
- package/src/index.tsx +1 -1
- package/android/generated/java/com/facebook/fbreact/specs/NativeReactNativeSpec.java +0 -41
- package/android/generated/jni/CMakeLists.txt +0 -36
- package/android/generated/jni/RNReactNativeSpec-generated.cpp +0 -38
- package/android/generated/jni/RNReactNativeSpec.h +0 -31
- package/android/generated/jni/react/renderer/components/RNReactNativeSpec/RNReactNativeSpecJSI-generated.cpp +0 -32
- package/android/generated/jni/react/renderer/components/RNReactNativeSpec/RNReactNativeSpecJSI.h +0 -80
- 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/ios/generated/RCTAppDependencyProvider.h +0 -25
- package/ios/generated/RCTAppDependencyProvider.mm +0 -35
- package/ios/generated/RCTModuleProviders.h +0 -16
- package/ios/generated/RCTModuleProviders.mm +0 -51
- package/ios/generated/RCTModulesConformingToProtocolsProvider.h +0 -18
- package/ios/generated/RCTModulesConformingToProtocolsProvider.mm +0 -54
- package/ios/generated/RCTThirdPartyComponentsProvider.h +0 -16
- package/ios/generated/RCTThirdPartyComponentsProvider.mm +0 -30
- package/ios/generated/RNReactNativeSpec/RNReactNativeSpec-generated.mm +0 -46
- package/ios/generated/RNReactNativeSpec/RNReactNativeSpec.h +0 -63
- package/ios/generated/RNReactNativeSpecJSI-generated.cpp +0 -32
- package/ios/generated/RNReactNativeSpecJSI.h +0 -80
- package/ios/generated/ReactAppDependencyProvider.podspec +0 -34
- package/lib/typescript/commonjs/src/NativeReactNative.d.ts.map +0 -1
- package/lib/typescript/module/src/NativeReactNative.d.ts.map +0 -1
- /package/build/{RusaintReactNativeFramework.xcframework → RusaintReactNative.xcframework}/Info.plist +0 -0
- /package/build/{RusaintReactNativeFramework.xcframework → RusaintReactNative.xcframework}/_CodeSignature/CodeResources +0 -0
- /package/build/{RusaintReactNativeFramework.xcframework → RusaintReactNative.xcframework}/ios-arm64/librusaint_ffi.a +0 -0
- /package/build/{RusaintReactNativeFramework.xcframework → RusaintReactNative.xcframework}/ios-arm64-simulator/librusaint_ffi.a +0 -0
package/android/generated/jni/react/renderer/components/RNReactNativeSpec/RNReactNativeSpecJSI.h
DELETED
|
@@ -1,80 +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: 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 NativeReactNativeCxxSpecJSI : public TurboModule {
|
|
19
|
-
protected:
|
|
20
|
-
NativeReactNativeCxxSpecJSI(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 NativeReactNativeCxxSpec : 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 = "ReactNative";
|
|
40
|
-
|
|
41
|
-
protected:
|
|
42
|
-
NativeReactNativeCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
|
|
43
|
-
: TurboModule(std::string{NativeReactNativeCxxSpec::kModuleName}, jsInvoker),
|
|
44
|
-
delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
private:
|
|
48
|
-
class Delegate : public NativeReactNativeCxxSpecJSI {
|
|
49
|
-
public:
|
|
50
|
-
Delegate(T *instance, std::shared_ptr<CallInvoker> jsInvoker) :
|
|
51
|
-
NativeReactNativeCxxSpecJSI(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 NativeReactNativeCxxSpec;
|
|
74
|
-
T *instance_;
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
Delegate delegate_;
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
} // namespace facebook::react
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
|
|
11
|
-
#if __has_include(<React-RCTAppDelegate/RCTDependencyProvider.h>)
|
|
12
|
-
#import <React-RCTAppDelegate/RCTDependencyProvider.h>
|
|
13
|
-
#elif __has_include(<React_RCTAppDelegate/RCTDependencyProvider.h>)
|
|
14
|
-
#import <React_RCTAppDelegate/RCTDependencyProvider.h>
|
|
15
|
-
#else
|
|
16
|
-
#import "RCTDependencyProvider.h"
|
|
17
|
-
#endif
|
|
18
|
-
|
|
19
|
-
NS_ASSUME_NONNULL_BEGIN
|
|
20
|
-
|
|
21
|
-
@interface RCTAppDependencyProvider : NSObject <RCTDependencyProvider>
|
|
22
|
-
|
|
23
|
-
@end
|
|
24
|
-
|
|
25
|
-
NS_ASSUME_NONNULL_END
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
#import "RCTAppDependencyProvider.h"
|
|
9
|
-
#import <ReactCodegen/RCTModulesConformingToProtocolsProvider.h>
|
|
10
|
-
#import <ReactCodegen/RCTThirdPartyComponentsProvider.h>
|
|
11
|
-
#import <ReactCodegen/RCTModuleProviders.h>
|
|
12
|
-
|
|
13
|
-
@implementation RCTAppDependencyProvider
|
|
14
|
-
|
|
15
|
-
- (nonnull NSArray<NSString *> *)URLRequestHandlerClassNames {
|
|
16
|
-
return RCTModulesConformingToProtocolsProvider.URLRequestHandlerClassNames;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
- (nonnull NSArray<NSString *> *)imageDataDecoderClassNames {
|
|
20
|
-
return RCTModulesConformingToProtocolsProvider.imageDataDecoderClassNames;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
- (nonnull NSArray<NSString *> *)imageURLLoaderClassNames {
|
|
24
|
-
return RCTModulesConformingToProtocolsProvider.imageURLLoaderClassNames;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
- (nonnull NSDictionary<NSString *,Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents {
|
|
28
|
-
return RCTThirdPartyComponentsProvider.thirdPartyFabricComponents;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
- (nonnull NSDictionary<NSString *, id<RCTModuleProvider>> *)moduleProviders {
|
|
32
|
-
return RCTModuleProviders.moduleProviders;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@end
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
#import <Foundation/Foundation.h>
|
|
9
|
-
|
|
10
|
-
@protocol RCTModuleProvider;
|
|
11
|
-
|
|
12
|
-
@interface RCTModuleProviders: NSObject
|
|
13
|
-
|
|
14
|
-
+ (NSDictionary<NSString *, id<RCTModuleProvider>> *)moduleProviders;
|
|
15
|
-
|
|
16
|
-
@end
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
#import <Foundation/Foundation.h>
|
|
9
|
-
|
|
10
|
-
#import "RCTModuleProviders.h"
|
|
11
|
-
#import <ReactCommon/RCTTurboModule.h>
|
|
12
|
-
#import <React/RCTLog.h>
|
|
13
|
-
|
|
14
|
-
@implementation RCTModuleProviders
|
|
15
|
-
|
|
16
|
-
+ (NSDictionary<NSString *, id<RCTModuleProvider>> *)moduleProviders
|
|
17
|
-
{
|
|
18
|
-
static NSDictionary<NSString *, id<RCTModuleProvider>> *providers = nil;
|
|
19
|
-
static dispatch_once_t onceToken;
|
|
20
|
-
|
|
21
|
-
dispatch_once(&onceToken, ^{
|
|
22
|
-
NSDictionary<NSString *, NSString *> * moduleMapping = @{
|
|
23
|
-
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
NSMutableDictionary *dict = [[NSMutableDictionary alloc] initWithCapacity:moduleMapping.count];
|
|
27
|
-
|
|
28
|
-
for (NSString *key in moduleMapping) {
|
|
29
|
-
NSString * moduleProviderName = moduleMapping[key];
|
|
30
|
-
Class klass = NSClassFromString(moduleProviderName);
|
|
31
|
-
if (!klass) {
|
|
32
|
-
RCTLogError(@"Module provider %@ cannot be found in the runtime", moduleProviderName);
|
|
33
|
-
continue;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
id instance = [klass new];
|
|
37
|
-
if (![instance respondsToSelector:@selector(getTurboModule:)]) {
|
|
38
|
-
RCTLogError(@"Module provider %@ does not conform to RCTModuleProvider", moduleProviderName);
|
|
39
|
-
continue;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
[dict setObject:instance forKey:key];
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
providers = dict;
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
return providers;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@end
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
#import <Foundation/Foundation.h>
|
|
9
|
-
|
|
10
|
-
@interface RCTModulesConformingToProtocolsProvider: NSObject
|
|
11
|
-
|
|
12
|
-
+(NSArray<NSString *> *)imageURLLoaderClassNames;
|
|
13
|
-
|
|
14
|
-
+(NSArray<NSString *> *)imageDataDecoderClassNames;
|
|
15
|
-
|
|
16
|
-
+(NSArray<NSString *> *)URLRequestHandlerClassNames;
|
|
17
|
-
|
|
18
|
-
@end
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
#import "RCTModulesConformingToProtocolsProvider.h"
|
|
9
|
-
|
|
10
|
-
@implementation RCTModulesConformingToProtocolsProvider
|
|
11
|
-
|
|
12
|
-
+(NSArray<NSString *> *)imageURLLoaderClassNames
|
|
13
|
-
{
|
|
14
|
-
static NSArray<NSString *> *classNames = nil;
|
|
15
|
-
static dispatch_once_t onceToken;
|
|
16
|
-
|
|
17
|
-
dispatch_once(&onceToken, ^{
|
|
18
|
-
classNames = @[
|
|
19
|
-
|
|
20
|
-
];
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
return classNames;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
+(NSArray<NSString *> *)imageDataDecoderClassNames
|
|
27
|
-
{
|
|
28
|
-
static NSArray<NSString *> *classNames = nil;
|
|
29
|
-
static dispatch_once_t onceToken;
|
|
30
|
-
|
|
31
|
-
dispatch_once(&onceToken, ^{
|
|
32
|
-
classNames = @[
|
|
33
|
-
|
|
34
|
-
];
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
return classNames;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
+(NSArray<NSString *> *)URLRequestHandlerClassNames
|
|
41
|
-
{
|
|
42
|
-
static NSArray<NSString *> *classNames = nil;
|
|
43
|
-
static dispatch_once_t onceToken;
|
|
44
|
-
|
|
45
|
-
dispatch_once(&onceToken, ^{
|
|
46
|
-
classNames = @[
|
|
47
|
-
|
|
48
|
-
];
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
return classNames;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
@end
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
#import <Foundation/Foundation.h>
|
|
9
|
-
|
|
10
|
-
@protocol RCTComponentViewProtocol;
|
|
11
|
-
|
|
12
|
-
@interface RCTThirdPartyComponentsProvider: NSObject
|
|
13
|
-
|
|
14
|
-
+ (NSDictionary<NSString *, Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents;
|
|
15
|
-
|
|
16
|
-
@end
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
|
|
11
|
-
#import "RCTThirdPartyComponentsProvider.h"
|
|
12
|
-
#import <React/RCTComponentViewProtocol.h>
|
|
13
|
-
|
|
14
|
-
@implementation RCTThirdPartyComponentsProvider
|
|
15
|
-
|
|
16
|
-
+ (NSDictionary<NSString *, Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents
|
|
17
|
-
{
|
|
18
|
-
static NSDictionary<NSString *, Class<RCTComponentViewProtocol>> *thirdPartyComponents = nil;
|
|
19
|
-
static dispatch_once_t nativeComponentsToken;
|
|
20
|
-
|
|
21
|
-
dispatch_once(&nativeComponentsToken, ^{
|
|
22
|
-
thirdPartyComponents = @{
|
|
23
|
-
|
|
24
|
-
};
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
return thirdPartyComponents;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@end
|
|
@@ -1,46 +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: 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 "RNReactNativeSpec.h"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
@implementation NativeReactNativeSpecBase
|
|
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_NativeReactNativeSpecJSI_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_NativeReactNativeSpecJSI_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
|
-
NativeReactNativeSpecJSI::NativeReactNativeSpecJSI(const ObjCTurboModule::InitParams ¶ms)
|
|
38
|
-
: ObjCTurboModule(params) {
|
|
39
|
-
|
|
40
|
-
methodMap_["installRustCrate"] = MethodMetadata {0, __hostFunction_NativeReactNativeSpecJSI_installRustCrate};
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
methodMap_["cleanupRustCrate"] = MethodMetadata {0, __hostFunction_NativeReactNativeSpecJSI_cleanupRustCrate};
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
} // namespace facebook::react
|
|
@@ -1,63 +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: 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 RNReactNativeSpec symbols
|
|
19
|
-
#ifndef RNReactNativeSpec_H
|
|
20
|
-
#define RNReactNativeSpec_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 NativeReactNativeSpec <RCTBridgeModule, RCTTurboModule>
|
|
37
|
-
|
|
38
|
-
- (NSNumber *)installRustCrate;
|
|
39
|
-
- (NSNumber *)cleanupRustCrate;
|
|
40
|
-
|
|
41
|
-
@end
|
|
42
|
-
|
|
43
|
-
@interface NativeReactNativeSpecBase : 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 'NativeReactNative'
|
|
55
|
-
*/
|
|
56
|
-
class JSI_EXPORT NativeReactNativeSpecJSI : public ObjCTurboModule {
|
|
57
|
-
public:
|
|
58
|
-
NativeReactNativeSpecJSI(const ObjCTurboModule::InitParams ¶ms);
|
|
59
|
-
};
|
|
60
|
-
} // namespace facebook::react
|
|
61
|
-
|
|
62
|
-
NS_ASSUME_NONNULL_END
|
|
63
|
-
#endif // RNReactNativeSpec_H
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
-
*
|
|
4
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
-
* once the code is regenerated.
|
|
6
|
-
*
|
|
7
|
-
* @generated by codegen project: GenerateModuleCpp.js
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
#include "RNReactNativeSpecJSI.h"
|
|
11
|
-
|
|
12
|
-
namespace facebook::react {
|
|
13
|
-
|
|
14
|
-
static jsi::Value __hostFunction_NativeReactNativeCxxSpecJSI_installRustCrate(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
15
|
-
return static_cast<NativeReactNativeCxxSpecJSI *>(&turboModule)->installRustCrate(
|
|
16
|
-
rt
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
static jsi::Value __hostFunction_NativeReactNativeCxxSpecJSI_cleanupRustCrate(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
20
|
-
return static_cast<NativeReactNativeCxxSpecJSI *>(&turboModule)->cleanupRustCrate(
|
|
21
|
-
rt
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
NativeReactNativeCxxSpecJSI::NativeReactNativeCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
|
|
26
|
-
: TurboModule("ReactNative", jsInvoker) {
|
|
27
|
-
methodMap_["installRustCrate"] = MethodMetadata {0, __hostFunction_NativeReactNativeCxxSpecJSI_installRustCrate};
|
|
28
|
-
methodMap_["cleanupRustCrate"] = MethodMetadata {0, __hostFunction_NativeReactNativeCxxSpecJSI_cleanupRustCrate};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
} // namespace facebook::react
|
|
@@ -1,80 +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: 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 NativeReactNativeCxxSpecJSI : public TurboModule {
|
|
19
|
-
protected:
|
|
20
|
-
NativeReactNativeCxxSpecJSI(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 NativeReactNativeCxxSpec : 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 = "ReactNative";
|
|
40
|
-
|
|
41
|
-
protected:
|
|
42
|
-
NativeReactNativeCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
|
|
43
|
-
: TurboModule(std::string{NativeReactNativeCxxSpec::kModuleName}, jsInvoker),
|
|
44
|
-
delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
private:
|
|
48
|
-
class Delegate : public NativeReactNativeCxxSpecJSI {
|
|
49
|
-
public:
|
|
50
|
-
Delegate(T *instance, std::shared_ptr<CallInvoker> jsInvoker) :
|
|
51
|
-
NativeReactNativeCxxSpecJSI(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 NativeReactNativeCxxSpec;
|
|
74
|
-
T *instance_;
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
Delegate delegate_;
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
} // namespace facebook::react
|
|
@@ -1,34 +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
|
-
version = "0.79.2"
|
|
7
|
-
source = { :git => 'https://github.com/facebook/react-native.git' }
|
|
8
|
-
if version == '1000.0.0'
|
|
9
|
-
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
|
10
|
-
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
|
11
|
-
else
|
|
12
|
-
source[:tag] = "v#{version}"
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
Pod::Spec.new do |s|
|
|
16
|
-
s.name = "ReactAppDependencyProvider"
|
|
17
|
-
s.version = version
|
|
18
|
-
s.summary = "The third party dependency provider for the app"
|
|
19
|
-
s.homepage = "https://reactnative.dev/"
|
|
20
|
-
s.documentation_url = "https://reactnative.dev/"
|
|
21
|
-
s.license = "MIT"
|
|
22
|
-
s.author = "Meta Platforms, Inc. and its affiliates"
|
|
23
|
-
s.platforms = min_supported_versions
|
|
24
|
-
s.source = source
|
|
25
|
-
s.source_files = "**/RCTAppDependencyProvider.{h,mm}"
|
|
26
|
-
|
|
27
|
-
# This guard prevent to install the dependencies when we run `pod install` in the old architecture.
|
|
28
|
-
s.pod_target_xcconfig = {
|
|
29
|
-
"CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
|
|
30
|
-
"DEFINES_MODULE" => "YES"
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
s.dependency "ReactCodegen"
|
|
34
|
-
end
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NativeReactNative.d.ts","sourceRoot":"","sources":["../../../../src/NativeReactNative.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,gBAAgB,IAAI,OAAO,CAAC;IAC5B,gBAAgB,IAAI,OAAO,CAAC;CAC7B;;AAED,wBAAqE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NativeReactNative.d.ts","sourceRoot":"","sources":["../../../../src/NativeReactNative.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,gBAAgB,IAAI,OAAO,CAAC;IAC5B,gBAAgB,IAAI,OAAO,CAAC;CAC7B;;AAED,wBAAqE"}
|
/package/build/{RusaintReactNativeFramework.xcframework → RusaintReactNative.xcframework}/Info.plist
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|