Skip to content

Fix: Avoid path in the template import - #35394

Closed
cipolleschi wants to merge 1 commit into
mainfrom
cipolleschi/fix_template_appdelegate
Closed

Fix: Avoid path in the template import#35394
cipolleschi wants to merge 1 commit into
mainfrom
cipolleschi/fix_template_appdelegate

Conversation

@cipolleschi

Copy link
Copy Markdown
Contributor

Summary

Investigating this comment, I made some tests.
It seems like we can simply use #import <RCTAppDelegate.h> instead of the #import <React-RCTAppDelegate/RCTAppDelegate.h> in both setups:

  • default setup
  • use_frameworks! :linkage => :static

Changelog

[iOS] [Fixed] - Support use_framework! :linkage => :static in template

Test Plan

  1. Manually tested with a new app
  2. CircleCI
  3. Sandcastle

@facebook-github-botfacebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Nov 18, 2022
@analysis-bot

analysis-bot commented Nov 18, 2022

Copy link
Copy Markdown
PlatformEngineArchSize (bytes)Diff
androidhermesarm64-v8a7,102,440+0
androidhermesarmeabi-v7a6,470,493+0
androidhermesx867,519,895+0
androidhermesx86_647,378,573+0
androidjscarm64-v8a8,967,309+0
androidjscarmeabi-v7a7,698,152+0
androidjscx869,029,418+0
androidjscx86_649,507,263+0

Base commit: 27e7295
Branch: main

@analysis-bot

analysis-bot commented Nov 18, 2022

Copy link
Copy Markdown
PlatformEngineArchSize (bytes)Diff
ios-universaln/a--

Base commit: 81e441a
Branch: main

@mikehardy

Copy link
Copy Markdown
Contributor

You somehow managed to break the entire android build with this (I'm joking, of course it didn't, but that is ironic is it not?)
Looks like it worked!

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@cipolleschi

Copy link
Copy Markdown
ContributorAuthor

/rebase

@github-actions
github-actionsBotforce-pushed the cipolleschi/fix_template_appdelegate branch from b7c47e5 to 9e86c90CompareNovember 18, 2022 15:26
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@cipolleschi

Copy link
Copy Markdown
ContributorAuthor

/rebase

@github-actions
github-actionsBotforce-pushed the cipolleschi/fix_template_appdelegate branch from 9e86c90 to 9f06679CompareNovember 21, 2022 11:12
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@kelset
kelset deleted the cipolleschi/fix_template_appdelegate branch November 22, 2022 10:22
kelset pushed a commit that referenced this pull request Nov 22, 2022
Summary:
Investigating [this comment](reactwg/react-native-releases#41 (comment)), I made some tests.
It seems like we can simply use `#import <RCTAppDelegate.h>` instead of the `#import <React-RCTAppDelegate/RCTAppDelegate.h>` in both setups:
- default setup
- `use_frameworks! :linkage => :static`
## Changelog
[iOS] [Fixed] - Support `use_framework! :linkage => :static` in template
Pull Request resolved: #35394
Test Plan:
1. Manually tested with a new app
2. CircleCI
3. Sandcastle
Reviewed By: cortinico
Differential Revision: D41402060
Pulled By: cipolleschi
fbshipit-source-id: e1ed8196ed860b3663a88f5283f2745e39b0e944
@cipolleschicipolleschi mentioned this pull request Oct 11, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.p: FacebookPartner: FacebookPartner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@cipolleschi@analysis-bot@mikehardy@facebook-github-bot