|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
|
2 | 2 |
|
3 |
| -exports[`GenerateModuleHObjCpp can generate fixture COMPLEX_OBJECTS 1`] = ` |
| 3 | +exports[`GenerateModuleHObjCpp can generate fixture SampleWithUppercaseName 1`] = ` |
4 | 4 | Map {
|
5 |
| - "COMPLEX_OBJECTS.h" => "/** |
| 5 | + "SampleWithUppercaseName.h" => "/** |
| 6 | + * Copyright (c) Facebook, Inc. and its affiliates. |
| 7 | + * |
| 8 | + * This source code is licensed under the MIT license found in the |
| 9 | + * LICENSE file in the root directory of this source tree. |
| 10 | + * |
| 11 | + * @generated by codegen project: GenerateModuleObjCpp |
| 12 | + * |
| 13 | + * We create an umbrella header (and corresponding implementation) here since |
| 14 | + * Cxx compilation in BUCK has a limitation: source-code producing genrule()s |
| 15 | + * must have a single output. More files => more genrule()s => slower builds. |
| 16 | + */ |
| 17 | +
|
| 18 | +#ifndef __cplusplus |
| 19 | +#error This file must be compiled as Obj-C++. If you are importing it, you must change your file extension to .mm. |
| 20 | +#endif |
| 21 | +#import <Foundation/Foundation.h> |
| 22 | +#import <RCTRequired/RCTRequired.h> |
| 23 | +#import <RCTTypeSafety/RCTConvertHelpers.h> |
| 24 | +#import <RCTTypeSafety/RCTTypedModuleConstants.h> |
| 25 | +#import <React/RCTBridgeModule.h> |
| 26 | +#import <React/RCTCxxConvert.h> |
| 27 | +#import <React/RCTManagedPointer.h> |
| 28 | +#import <ReactCommon/RCTTurboModule.h> |
| 29 | +#import <folly/Optional.h> |
| 30 | +#import <vector> |
| 31 | +
|
| 32 | +
|
| 33 | +@protocol NativeSampleTurboModuleSpec <RCTBridgeModule, RCTTurboModule> |
| 34 | +
|
| 35 | +
|
| 36 | +
|
| 37 | +@end |
| 38 | +namespace facebook { |
| 39 | + namespace react { |
| 40 | + /** |
| 41 | + * ObjC++ class for module 'NativeSampleTurboModule' |
| 42 | + */ |
| 43 | + class JSI_EXPORT NativeSampleTurboModuleSpecJSI : public ObjCTurboModule { |
| 44 | + public: |
| 45 | + NativeSampleTurboModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms); |
| 46 | + }; |
| 47 | + } // namespace react |
| 48 | +} // namespace facebook |
| 49 | +
|
| 50 | +", |
| 51 | +} |
| 52 | +`; |
| 53 | +
|
| 54 | +exports[`GenerateModuleHObjCpp can generate fixture complex_objects 1`] = ` |
| 55 | +Map { |
| 56 | + "complex_objects.h" => "/** |
6 | 57 | * Copyright (c) Facebook, Inc. and its affiliates.
|
7 | 58 | *
|
8 | 59 | * This source code is licensed under the MIT license found in the
|
@@ -258,9 +309,9 @@ inline facebook::react::LazyVector<JS::NativeSampleTurboModule::SpecGetArraysOpt
|
258 | 309 | }
|
259 | 310 | `;
|
260 | 311 |
|
261 |
| -exports[`GenerateModuleHObjCpp can generate fixture EMPTY_NATIVE_MODULES 1`] = ` |
| 312 | +exports[`GenerateModuleHObjCpp can generate fixture empty_native_modules 1`] = ` |
262 | 313 | Map {
|
263 |
| - "EMPTY_NATIVE_MODULES.h" => "/** |
| 314 | + "empty_native_modules.h" => "/** |
264 | 315 | * Copyright (c) Facebook, Inc. and its affiliates.
|
265 | 316 | *
|
266 | 317 | * This source code is licensed under the MIT license found in the
|
@@ -309,9 +360,9 @@ namespace facebook {
|
309 | 360 | }
|
310 | 361 | `;
|
311 | 362 |
|
312 |
| -exports[`GenerateModuleHObjCpp can generate fixture NATIVE_MODULES_WITH_TYPE_ALIASES 1`] = ` |
| 363 | +exports[`GenerateModuleHObjCpp can generate fixture native_modules_with_type_aliases 1`] = ` |
313 | 364 | Map {
|
314 |
| - "NATIVE_MODULES_WITH_TYPE_ALIASES.h" => "/** |
| 365 | + "native_modules_with_type_aliases.h" => "/** |
315 | 366 | * Copyright (c) Facebook, Inc. and its affiliates.
|
316 | 367 | *
|
317 | 368 | * This source code is licensed under the MIT license found in the
|
@@ -480,9 +531,9 @@ inline folly::Optional<bool> JS::AliasTurboModule::Options::allowExternalStorage
|
480 | 531 | }
|
481 | 532 | `;
|
482 | 533 |
|
483 |
| -exports[`GenerateModuleHObjCpp can generate fixture REAL_MODULE_EXAMPLE 1`] = ` |
| 534 | +exports[`GenerateModuleHObjCpp can generate fixture real_module_example 1`] = ` |
484 | 535 | Map {
|
485 |
| - "REAL_MODULE_EXAMPLE.h" => "/** |
| 536 | + "real_module_example.h" => "/** |
486 | 537 | * Copyright (c) Facebook, Inc. and its affiliates.
|
487 | 538 | *
|
488 | 539 | * This source code is licensed under the MIT license found in the
|
@@ -770,9 +821,9 @@ inline bool JS::NativeImagePickerIOS::SpecOpenCameraDialogConfig::videoMode() co
|
770 | 821 | }
|
771 | 822 | `;
|
772 | 823 |
|
773 |
| -exports[`GenerateModuleHObjCpp can generate fixture SIMPLE_NATIVE_MODULES 1`] = ` |
| 824 | +exports[`GenerateModuleHObjCpp can generate fixture simple_native_modules 1`] = ` |
774 | 825 | Map {
|
775 |
| - "SIMPLE_NATIVE_MODULES.h" => "/** |
| 826 | + "simple_native_modules.h" => "/** |
776 | 827 | * Copyright (c) Facebook, Inc. and its affiliates.
|
777 | 828 | *
|
778 | 829 | * This source code is licensed under the MIT license found in the
|
@@ -876,9 +927,9 @@ inline JS::NativeSampleTurboModule::Constants::Builder::Builder(Constants i) : _
|
876 | 927 | }
|
877 | 928 | `;
|
878 | 929 |
|
879 |
| -exports[`GenerateModuleHObjCpp can generate fixture TWO_MODULES_DIFFERENT_FILES 1`] = ` |
| 930 | +exports[`GenerateModuleHObjCpp can generate fixture two_modules_different_files 1`] = ` |
880 | 931 | Map {
|
881 |
| - "TWO_MODULES_DIFFERENT_FILES.h" => "/** |
| 932 | + "two_modules_different_files.h" => "/** |
882 | 933 | * Copyright (c) Facebook, Inc. and its affiliates.
|
883 | 934 | *
|
884 | 935 | * This source code is licensed under the MIT license found in the
|
|
0 commit comments