-
Notifications
You must be signed in to change notification settings - Fork 904
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
refactor(breaking): remove deprecated link
, unlink
and associated code
#1537
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…for broader coverage
grabbou
changed the title
refactor: remove deprecated
refactor(breaking): remove deprecated Feb 2, 2022
link
, unlink
and associated codelink
, unlink
and associated code
This was referenced May 31, 2022
First feedback coming in from react-native-vector-icons user, and it's basically, "Okay so now what do I do?" |
This was referenced Jun 23, 2022
This was referenced Jun 24, 2022
This was referenced Jun 25, 2022
4 tasks
stackchain
added a commit
to Emurgo/csl-mobile-bridge
that referenced
this pull request
Apr 21, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
This PR removes the code related to
link
,unlink
andrnpm
and is a first shot at cleaning up the codebase. It is not going to clean up all the places automatically, but it's a first step.List of changes:
link
,unlink
,install
anduninstall
commands from the CLIrnpm
, together with migration guidesIOSProjectConfig
,AndroidProjectConfig
that were used forlink
, and not utilised in a new autolinking mechanism. That means things such asassets
orhooks
are no longer allowed to be present on a configuration and will cause an error when CLI validates the structure of your config.IOSProjectParams
,AndroidProjectParams
,IOSDependencyParams
andAndroidDependencyParams
that were used to override settings forlink
that are no longer needed.podspecPath
for an iOS dependency. This was already marked as deprecated and set to be removed--project-path
option from arun-ios
CLI command. This was meant to set a source directory for iOS files (unless it equals toiOS
). It is now using the detection fromconfig
, which makes sure thatrun-ios
uses the same folder that autolinking and other commands (very important for debugging)xcodeproj
orxcworkspace
because that is whatlink
needed to work and manipulate. The new autolinking relies on a Podfile only. There are certain use cases where Podfile is the only file present in a project (e.g. Xcode files are generated programatically or abstracted away). We still keep an information aboutxcodeProject
we detected, as it is used for commands such asupgrade
. I believe this may change in the future, so I wouldn't recommend relying too much on it.We will explain the differences in types/configuration later in a form of a changelog/blog post. Right now, if you want to learn more about the changes, simply check the
diff
forcli-types
package or a documentation.Todo in a follow-up PRs:
getProjectConfig
on iOS. They are missing and its important to cover themrun-android
command. It is the right time to do it nowlink
,unlink
and associated code #1537 (review)