Skip to content

Commit

Permalink
Add EventEmitter Code-gen support for Java and ObjC Turbo Modules
Browse files Browse the repository at this point in the history
Summary:
## Changelog:

[iOS][Added] - Add EventEmitter Code-gen support for Java and ObjC Turbo Modules

Differential Revision: D58929417
  • Loading branch information
christophpurrer authored and facebook-github-bot committed Jun 24, 2024
1 parent 73cad6d commit cd4c42e
Show file tree
Hide file tree
Showing 14 changed files with 825 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ exports[`GenerateModuleObjCpp can generate a header file NativeModule specs 1`]
@end
@interface NativeArrayTurboModuleSpec : RCTTurboModule
@end
namespace facebook::react {
Expand All @@ -64,6 +65,7 @@ namespace facebook::react {
@end
@interface NativeBooleanTurboModuleSpec : RCTTurboModule
@end
namespace facebook::react {
Expand All @@ -84,6 +86,7 @@ namespace facebook::react {
@end
@interface NativeCallbackTurboModuleSpec : RCTTurboModule
@end
namespace facebook::react {
Expand Down Expand Up @@ -144,6 +147,7 @@ namespace JS {
@end
@interface NativeEnumTurboModuleSpec : RCTTurboModule
@end
namespace facebook::react {
Expand All @@ -169,6 +173,7 @@ namespace facebook::react {
@end
@interface NativeNullableTurboModuleSpec : RCTTurboModule
@end
namespace facebook::react {
Expand All @@ -189,6 +194,7 @@ namespace facebook::react {
@end
@interface NativeNumberTurboModuleSpec : RCTTurboModule
@end
namespace facebook::react {
Expand Down Expand Up @@ -362,6 +368,7 @@ namespace JS {
@end
@interface NativeObjectTurboModuleSpec : RCTTurboModule
@end
namespace facebook::react {
Expand Down Expand Up @@ -498,6 +505,7 @@ namespace JS {
@end
@interface NativeOptionalObjectTurboModuleSpec : RCTTurboModule
@end
namespace facebook::react {
Expand Down Expand Up @@ -568,6 +576,7 @@ namespace JS {
@end
@interface NativePartialAnnotationTurboModuleSpec : RCTTurboModule
@end
namespace facebook::react {
Expand All @@ -592,6 +601,7 @@ namespace facebook::react {
@end
@interface NativePromiseTurboModuleSpec : RCTTurboModule
@end
namespace facebook::react {
Expand Down Expand Up @@ -686,6 +696,7 @@ getValuegetValuegetValuegetValuegetValuey:(NSString *)getValuegetValuegetValuege
@end
@interface NativeSampleTurboModuleSpec : RCTTurboModule
@end
namespace facebook::react {
Expand Down Expand Up @@ -778,6 +789,7 @@ namespace JS {
@end
@interface NativeSampleTurboModuleArraysSpec : RCTTurboModule
@end
namespace facebook::react {
Expand Down Expand Up @@ -872,6 +884,7 @@ namespace JS {
@end
@interface NativeSampleTurboModuleNullableSpec : RCTTurboModule
@end
namespace facebook::react {
Expand Down Expand Up @@ -966,6 +979,7 @@ namespace JS {
@end
@interface NativeSampleTurboModuleNullableAndOptionalSpec : RCTTurboModule
@end
namespace facebook::react {
Expand Down Expand Up @@ -1060,6 +1074,7 @@ namespace JS {
@end
@interface NativeSampleTurboModuleOptionalSpec : RCTTurboModule
@end
namespace facebook::react {
Expand All @@ -1080,6 +1095,7 @@ namespace facebook::react {
@end
@interface NativeStringTurboModuleSpec : RCTTurboModule
@end
namespace facebook::react {
Expand Down Expand Up @@ -1460,6 +1476,7 @@ NS_ASSUME_NONNULL_BEGIN
@end
@interface NativeArrayTurboModuleSpec : RCTTurboModule
@end
namespace facebook::react {
Expand All @@ -1480,6 +1497,7 @@ namespace facebook::react {
@end
@interface NativeBooleanTurboModuleSpec : RCTTurboModule
@end
namespace facebook::react {
Expand All @@ -1500,6 +1518,7 @@ namespace facebook::react {
@end
@interface NativeCallbackTurboModuleSpec : RCTTurboModule
@end
namespace facebook::react {
Expand Down Expand Up @@ -1560,6 +1579,7 @@ namespace JS {
@end
@interface NativeEnumTurboModuleSpec : RCTTurboModule
@end
namespace facebook::react {
Expand All @@ -1585,6 +1605,7 @@ namespace facebook::react {
@end
@interface NativeNullableTurboModuleSpec : RCTTurboModule
@end
namespace facebook::react {
Expand All @@ -1605,6 +1626,7 @@ namespace facebook::react {
@end
@interface NativeNumberTurboModuleSpec : RCTTurboModule
@end
namespace facebook::react {
Expand Down Expand Up @@ -1778,6 +1800,7 @@ namespace JS {
@end
@interface NativeObjectTurboModuleSpec : RCTTurboModule
@end
namespace facebook::react {
Expand Down Expand Up @@ -1914,6 +1937,7 @@ namespace JS {
@end
@interface NativeOptionalObjectTurboModuleSpec : RCTTurboModule
@end
namespace facebook::react {
Expand Down Expand Up @@ -1984,6 +2008,7 @@ namespace JS {
@end
@interface NativePartialAnnotationTurboModuleSpec : RCTTurboModule
@end
namespace facebook::react {
Expand All @@ -2008,6 +2033,7 @@ namespace facebook::react {
@end
@interface NativePromiseTurboModuleSpec : RCTTurboModule
@end
namespace facebook::react {
Expand Down Expand Up @@ -2102,6 +2128,7 @@ getValuegetValuegetValuegetValuegetValuey:(NSString *)getValuegetValuegetValuege
@end
@interface NativeSampleTurboModuleSpec : RCTTurboModule
@end
namespace facebook::react {
Expand Down Expand Up @@ -2194,6 +2221,7 @@ namespace JS {
@end
@interface NativeSampleTurboModuleArraysSpec : RCTTurboModule
@end
namespace facebook::react {
Expand Down Expand Up @@ -2288,6 +2316,7 @@ namespace JS {
@end
@interface NativeSampleTurboModuleNullableSpec : RCTTurboModule
@end
namespace facebook::react {
Expand Down Expand Up @@ -2382,6 +2411,7 @@ namespace JS {
@end
@interface NativeSampleTurboModuleNullableAndOptionalSpec : RCTTurboModule
@end
namespace facebook::react {
Expand Down Expand Up @@ -2476,6 +2506,7 @@ namespace JS {
@end
@interface NativeSampleTurboModuleOptionalSpec : RCTTurboModule
@end
namespace facebook::react {
Expand All @@ -2496,6 +2527,7 @@ namespace facebook::react {
@end
@interface NativeStringTurboModuleSpec : RCTTurboModule
@end
namespace facebook::react {
Expand Down Expand Up @@ -2849,6 +2881,7 @@ exports[`GenerateModuleObjCpp can generate an implementation file NativeModule s
@implementation NativeArrayTurboModuleSpec
@end
Expand Down Expand Up @@ -2881,6 +2914,7 @@ namespace facebook::react {
} // namespace facebook::react
@implementation NativeBooleanTurboModuleSpec
@end
Expand All @@ -2906,6 +2940,7 @@ namespace facebook::react {
} // namespace facebook::react
@implementation NativeCallbackTurboModuleSpec
@end
Expand All @@ -2931,6 +2966,7 @@ namespace facebook::react {
} // namespace facebook::react
@implementation NativeEnumTurboModuleSpec
@end
@implementation RCTCxxConvert (NativeEnumTurboModule_StateType)
Expand Down Expand Up @@ -2995,6 +3031,7 @@ namespace facebook::react {
} // namespace facebook::react
@implementation NativeNullableTurboModuleSpec
@end
Expand Down Expand Up @@ -3048,6 +3085,7 @@ namespace facebook::react {
} // namespace facebook::react
@implementation NativeNumberTurboModuleSpec
@end
Expand All @@ -3073,6 +3111,7 @@ namespace facebook::react {
} // namespace facebook::react
@implementation NativeObjectTurboModuleSpec
@end
@implementation RCTCxxConvert (NativeObjectTurboModule_SpecDifficultObjectAE)
Expand Down Expand Up @@ -3130,6 +3169,7 @@ namespace facebook::react {
} // namespace facebook::react
@implementation NativeOptionalObjectTurboModuleSpec
@end
Expand All @@ -3148,6 +3188,7 @@ namespace facebook::react {
} // namespace facebook::react
@implementation NativePartialAnnotationTurboModuleSpec
@end
@implementation RCTCxxConvert (NativePartialAnnotationTurboModule_SpecGetSomeObjFromPartialSomeObjValue)
Expand Down Expand Up @@ -3205,6 +3246,7 @@ namespace facebook::react {
} // namespace facebook::react
@implementation NativePromiseTurboModuleSpec
@end
Expand All @@ -3230,6 +3272,7 @@ namespace facebook::react {
} // namespace facebook::react
@implementation NativeSampleTurboModuleSpec
@end
@implementation RCTCxxConvert (NativeSampleTurboModule_SpecGetObjectShapeArg)
Expand Down Expand Up @@ -3343,6 +3386,7 @@ namespace facebook::react {
} // namespace facebook::react
@implementation NativeSampleTurboModuleArraysSpec
@end
Expand Down Expand Up @@ -3445,6 +3489,7 @@ namespace facebook::react {
} // namespace facebook::react
@implementation NativeSampleTurboModuleNullableSpec
@end
@implementation RCTCxxConvert (NativeSampleTurboModuleNullable_SpecGetObjectShapeArg)
Expand Down Expand Up @@ -3558,6 +3603,7 @@ namespace facebook::react {
} // namespace facebook::react
@implementation NativeSampleTurboModuleNullableAndOptionalSpec
@end
@implementation RCTCxxConvert (NativeSampleTurboModuleNullableAndOptional_SpecGetObjectShapeArg)
Expand Down Expand Up @@ -3671,6 +3717,7 @@ namespace facebook::react {
} // namespace facebook::react
@implementation NativeSampleTurboModuleOptionalSpec
@end
@implementation RCTCxxConvert (NativeSampleTurboModuleOptional_SpecGetObjectShapeArg)
Expand Down Expand Up @@ -3784,6 +3831,7 @@ namespace facebook::react {
} // namespace facebook::react
@implementation NativeStringTurboModuleSpec
@end
Expand Down
Loading

0 comments on commit cd4c42e

Please sign in to comment.