Skip to content

Commit bf4868e

Browse files
committed
Added non-class-scanning-based approach fror registering js methods
1 parent 21a054e commit bf4868e

55 files changed

Lines changed: 283 additions & 237 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Examples/SampleApp/SampleApp.xcodeproj/project.pbxproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
/* Begin PBXBuildFile section */
1010
00481BE81AC0C86700671115 /* libRCTWebSocketDebugger.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00481BE61AC0C7FA00671115 /* libRCTWebSocketDebugger.a */; };
11-
00481BEA1AC0C89D00671115 /* libicucore.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 00481BE91AC0C89D00671115 /* libicucore.dylib */; };
1211
008F07F31AC5B25A0029DE68 /* main.jsbundle in Resources */ = {isa = PBXBuildFile; fileRef = 008F07F21AC5B25A0029DE68 /* main.jsbundle */; };
1312
00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; };
1413
00C302E61ABCBA2D00DB3ED1 /* libRCTAdSupport.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302B41ABCB8E700DB3ED1 /* libRCTAdSupport.a */; };
@@ -116,7 +115,6 @@
116115
isa = PBXFrameworksBuildPhase;
117116
buildActionMask = 2147483647;
118117
files = (
119-
00481BEA1AC0C89D00671115 /* libicucore.dylib in Frameworks */,
120118
146834051AC3E58100842450 /* libReact.a in Frameworks */,
121119
00481BE81AC0C86700671115 /* libRCTWebSocketDebugger.a in Frameworks */,
122120
00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */,

Examples/UIExplorer/UIExplorer.xcodeproj/project.pbxproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
/* Begin PBXBuildFile section */
1010
004D28A31AAF61C70097A701 /* UIExplorerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 004D28A21AAF61C70097A701 /* UIExplorerTests.m */; };
1111
00D2771A1AB8C3E100DC1E48 /* libRCTWebSocketDebugger.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00D277131AB8C2C700DC1E48 /* libRCTWebSocketDebugger.a */; };
12-
00D2771C1AB8C55500DC1E48 /* libicucore.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 00D2771B1AB8C55500DC1E48 /* libicucore.dylib */; };
1312
13417FE91AA91432003F314A /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 13417FE81AA91428003F314A /* libRCTImage.a */; };
1413
134180011AA9153C003F314A /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 13417FEF1AA914B8003F314A /* libRCTText.a */; };
1514
1341802C1AA9178B003F314A /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1341802B1AA91779003F314A /* libRCTNetwork.a */; };
@@ -118,7 +117,6 @@
118117
004D28A11AAF61C70097A701 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
119118
004D28A21AAF61C70097A701 /* UIExplorerTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = UIExplorerTests.m; sourceTree = "<group>"; };
120119
00D2770E1AB8C2C700DC1E48 /* RCTWebSocketDebugger.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocketDebugger.xcodeproj; path = ../../Libraries/RCTWebSocketDebugger/RCTWebSocketDebugger.xcodeproj; sourceTree = "<group>"; };
121-
00D2771B1AB8C55500DC1E48 /* libicucore.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libicucore.dylib; path = usr/lib/libicucore.dylib; sourceTree = SDKROOT; };
122120
13417FE31AA91428003F314A /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = ../../Libraries/Image/RCTImage.xcodeproj; sourceTree = "<group>"; };
123121
13417FEA1AA914B8003F314A /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = ../../Libraries/Text/RCTText.xcodeproj; sourceTree = "<group>"; };
124122
134180261AA91779003F314A /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = ../../Libraries/Network/RCTNetwork.xcodeproj; sourceTree = "<group>"; };
@@ -150,7 +148,6 @@
150148
isa = PBXFrameworksBuildPhase;
151149
buildActionMask = 2147483647;
152150
files = (
153-
00D2771C1AB8C55500DC1E48 /* libicucore.dylib in Frameworks */,
154151
14AADF051AC3DBB1002390C9 /* libReact.a in Frameworks */,
155152
00D2771A1AB8C3E100DC1E48 /* libRCTWebSocketDebugger.a in Frameworks */,
156153
58005BF21ABA80A60062E044 /* libRCTTest.a in Frameworks */,
@@ -207,7 +204,6 @@
207204
13417FEA1AA914B8003F314A /* RCTText.xcodeproj */,
208205
00D2770E1AB8C2C700DC1E48 /* RCTWebSocketDebugger.xcodeproj */,
209206
D85B82911AB6D5CE003F4FE2 /* RCTVibration.xcodeproj */,
210-
00D2771B1AB8C55500DC1E48 /* libicucore.dylib */,
211207
);
212208
name = Libraries;
213209
sourceTree = "<group>";

Libraries/ActionSheetIOS/RCTActionSheetManager.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ @interface RCTActionSheetManager() <UIActionSheetDelegate>
1515

1616
@end
1717

18-
@implementation RCTActionSheetManager {
18+
@implementation RCTActionSheetManager
19+
{
1920
NSMutableDictionary *_callbacks;
2021
}
2122

23+
RCT_EXPORT_MODULE()
24+
2225
- (instancetype)init
2326
{
2427
if ((self = [super init])) {

Libraries/AdSupport/RCTAdSupport.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
@implementation RCTAdSupport
1313

14+
RCT_EXPORT_MODULE()
15+
1416
- (void)getAdvertisingId:(RCTResponseSenderBlock)callback withErrorCallback:(RCTResponseSenderBlock)errorCallback
1517
{
1618
RCT_EXPORT();

Libraries/Animation/RCTAnimationExperimentalManager.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ @implementation RCTAnimationExperimentalManager
2525
RCTSparseArray *_animationRegistry; // Main thread only; animation tag -> view tag
2626
}
2727

28+
RCT_EXPORT_MODULE()
29+
2830
@synthesize bridge = _bridge;
2931

3032
- (instancetype)init

Libraries/Geolocation/RCTLocationObserver.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ @implementation RCTLocationObserver
9999
RCTLocationOptions _observerOptions;
100100
}
101101

102+
RCT_EXPORT_MODULE()
103+
102104
@synthesize bridge = _bridge;
103105

104106
#pragma mark - Lifecycle

Libraries/Image/RCTCameraRollManager.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
@implementation RCTCameraRollManager
2121

22+
RCT_EXPORT_MODULE()
23+
2224
- (void)saveImageWithTag:(NSString *)imageTag successCallback:(RCTResponseSenderBlock)successCallback errorCallback:(RCTResponseSenderBlock)errorCallback
2325
{
2426
RCT_EXPORT();

Libraries/Image/RCTNetworkImageViewManager.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
@implementation RCTNetworkImageViewManager
2020

21+
RCT_EXPORT_MODULE()
22+
2123
- (UIView *)view
2224
{
2325
RCTNetworkImageView *view = [[RCTNetworkImageView alloc] initWithFrame:CGRectZero imageDownloader:[RCTImageDownloader sharedInstance]];

Libraries/Image/RCTStaticImageManager.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
@implementation RCTStaticImageManager
2020

21+
RCT_EXPORT_MODULE()
22+
2123
- (UIView *)view
2224
{
2325
return [[RCTStaticImage alloc] init];

Libraries/LinkingIOS/RCTLinkingManager.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
@implementation RCTLinkingManager
1818

19+
RCT_EXPORT_MODULE()
20+
1921
@synthesize bridge = _bridge;
2022

2123
- (instancetype)init

0 commit comments

Comments
 (0)