Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Avoid path in the template import #35394

Closed
wants to merge 1 commit into from

Conversation

cipolleschi
Copy link
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-bot facebook-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
Copy link

analysis-bot commented Nov 18, 2022

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,102,440 +0
android hermes armeabi-v7a 6,470,493 +0
android hermes x86 7,519,895 +0
android hermes x86_64 7,378,573 +0
android jsc arm64-v8a 8,967,309 +0
android jsc armeabi-v7a 7,698,152 +0
android jsc x86 9,029,418 +0
android jsc x86_64 9,507,263 +0

Base commit: 27e7295
Branch: main

@analysis-bot
Copy link

analysis-bot commented Nov 18, 2022

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: 81e441a
Branch: main

@mikehardy
Copy link
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
Contributor

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

@cipolleschi
Copy link
Contributor Author

/rebase

@github-actions github-actions bot force-pushed the cipolleschi/fix_template_appdelegate branch from b7c47e5 to 9e86c90 Compare November 18, 2022 15:26
@facebook-github-bot
Copy link
Contributor

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

@cipolleschi
Copy link
Contributor Author

/rebase

@github-actions github-actions bot force-pushed the cipolleschi/fix_template_appdelegate branch from 9e86c90 to 9f06679 Compare November 21, 2022 11:12
@facebook-github-bot
Copy link
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
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
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: facebook#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
@cipolleschi cipolleschi mentioned this pull request Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants