1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-10-31 21:33:12 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

feat: support for new architecture

This commit is contained in:
steven
2023-02-19 18:20:21 +08:00
parent 65a332b88a
commit e859900df6
34 changed files with 634 additions and 222 deletions

View File

@@ -1,7 +1,10 @@
#import "RCTPushy.h"
#import "RCTPushyDownloader.h"
#import "RCTPushyManager.h"
// Thanks to this guard, we won't import this header when we build for the old architecture.
#ifdef RCT_NEW_ARCH_ENABLED
#import "RNUpdateSpec.h"
#endif
#import <React/RCTConvert.h>
#import <React/RCTLog.h>
@@ -562,4 +565,13 @@ RCT_EXPORT_METHOD(markSuccess)
#endif
}
// Thanks to this guard, we won't compile this code when we build for the old architecture.
#ifdef RCT_NEW_ARCH_ENABLED
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
(const facebook::react::ObjCTurboModule::InitParams &)params
{
return std::make_shared<facebook::react::NativeCalculatorSpecJSI>(params);
}
#endif
@end

View File

@@ -1 +1 @@
1674743151
1676798137