Skip to content

Commit 36d6b24

Browse files
committed
[ios][precompile] move header template to separate-folder
A small cleanup to make the directory structure of the header file template when building xcframeworks. Umbrella and module map templates are now moved into templates folder.
1 parent f2948fb commit 36d6b24

4 files changed

Lines changed: 8 additions & 2 deletions

File tree

packages/react-native/scripts/ios-prebuild/React-umbrella.h renamed to packages/react-native/scripts/ios-prebuild/templates/React-umbrella.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
#ifdef __OBJC__
9-
#import <UIKit/UIKit.h>
9+
#import "UIKit/UIKit.h"
1010
#else
1111
#ifndef FOUNDATION_EXPORT
1212
#if defined(__cplusplus)

packages/react-native/scripts/ios-prebuild/React_RCTAppDelegate-umbrella.h renamed to packages/react-native/scripts/ios-prebuild/templates/React_RCTAppDelegate-umbrella.h

File renamed without changes.

packages/react-native/scripts/ios-prebuild/module.modulemap renamed to packages/react-native/scripts/ios-prebuild/templates/module.modulemap

File renamed without changes.

packages/react-native/scripts/ios-prebuild/xcframework.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const frameworkLog = createLogger('XCFramework');
3131
*/
3232
const REACT_CORE_UMBRELLA_HEADER_PATH /*: string*/ = path.join(
3333
__dirname,
34+
'Templates',
3435
'React-umbrella.h',
3536
);
3637

@@ -40,10 +41,15 @@ const REACT_CORE_UMBRELLA_HEADER_PATH /*: string*/ = path.join(
4041
*/
4142
const RCT_APP_DELEGATE_UMBRELLA_HEADER_PATH /*: string*/ = path.join(
4243
__dirname,
44+
'Templates',
4345
'React_RCTAppDelegate-umbrella.h',
4446
);
4547

46-
const RN_MODULEMAP_PATH /*: string*/ = path.join(__dirname, 'module.modulemap');
48+
const RN_MODULEMAP_PATH /*: string*/ = path.join(
49+
__dirname,
50+
'Templates',
51+
'module.modulemap',
52+
);
4753

4854
function buildXCFrameworks(
4955
rootFolder /*: string */,

0 commit comments

Comments
 (0)