Fix GenerateModuleJniH

Summary:
Just updated the generator to work with the new RN Codegen Flow Parser types.

Changelog: [Internal]

Reviewed By: PeteTheHeat

Differential Revision: D23667250

fbshipit-source-id: f36b5418101c40331964d1f9ede7c6bd7924383d
This commit is contained in:
Ramanpreet Nara authored and Facebook GitHub Bot committed 2020-09-29 14:39:41 -07:00
1 parent 560ac1a9fa
commit cedd628fc3
2 files changed
+28 -30

No files matched your search

@@ -2,7 +2,8 @@
exports[`GenerateModuleJniH can generate fixture COMPLEX_OBJECTS 1`] = `
Map {
"SampleSpec.h" => "/**
"SampleSpec.h" => "
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
@@ -67,7 +68,8 @@ include $(BUILD_SHARED_LIBRARY)
exports[`GenerateModuleJniH can generate fixture EMPTY_NATIVE_MODULES 1`] = `
Map {
"SampleSpec.h" => "/**
"SampleSpec.h" => "
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
@@ -132,7 +134,8 @@ include $(BUILD_SHARED_LIBRARY)
exports[`GenerateModuleJniH can generate fixture NATIVE_MODULES_WITH_TYPE_ALIASES 1`] = `
Map {
"SampleSpec.h" => "/**
"SampleSpec.h" => "
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
@@ -197,7 +200,8 @@ include $(BUILD_SHARED_LIBRARY)
exports[`GenerateModuleJniH can generate fixture REAL_MODULE_EXAMPLE 1`] = `
Map {
"SampleSpec.h" => "/**
"SampleSpec.h" => "
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
@@ -223,14 +227,6 @@ public:
NativeCameraRollManagerSpecJSI(const JavaTurboModule::InitParams &params);
};
/**
* JNI C++ class for module 'ExceptionsManager'
*/
class JSI_EXPORT NativeExceptionsManagerSpecJSI : public JavaTurboModule {
public:
NativeExceptionsManagerSpecJSI(const JavaTurboModule::InitParams &params);
};
/**
* JNI C++ class for module 'ImagePickerIOS'
*/
@@ -239,6 +235,14 @@ public:
NativeImagePickerIOSSpecJSI(const JavaTurboModule::InitParams &params);
};
/**
* JNI C++ class for module 'ExceptionsManager'
*/
class JSI_EXPORT NativeExceptionsManagerSpecJSI : public JavaTurboModule {
public:
NativeExceptionsManagerSpecJSI(const JavaTurboModule::InitParams &params);
};
std::shared_ptr<TurboModule> REAL_MODULE_EXAMPLE_ModuleProvider(const std::string moduleName, const JavaTurboModule::InitParams &params);
@@ -278,7 +282,8 @@ include $(BUILD_SHARED_LIBRARY)
exports[`GenerateModuleJniH can generate fixture SIMPLE_NATIVE_MODULES 1`] = `
Map {
"SampleSpec.h" => "/**
"SampleSpec.h" => "
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
@@ -343,7 +348,8 @@ include $(BUILD_SHARED_LIBRARY)
exports[`GenerateModuleJniH can generate fixture TWO_MODULES_DIFFERENT_FILES 1`] = `
Map {
"SampleSpec.h" => "/**
"SampleSpec.h" => "
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
@@ -416,7 +422,8 @@ include $(BUILD_SHARED_LIBRARY)
exports[`GenerateModuleJniH can generate fixture TWO_MODULES_SAME_FILE 1`] = `
Map {
"SampleSpec.h" => "/**
"SampleSpec.h" => "
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the