-
Notifications
You must be signed in to change notification settings - Fork 149
Moving the android specific changes to patch files and reverting them… #254
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
Conversation
android-patches/patches-droid-office-grouped/OfficeRNHost/ReactCommon/cxxreact/Instance.cpp
Show resolved
Hide resolved
...id-patches/patches-droid-office-grouped/OfficeRNHost/ReactCommon/cxxreact/NativeToJsBridge.h
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ReactCommon looks good. Don't have enough context on other areas to give any meaningful feedback.
@mganandraj Meta question; can you elaborate on the changes you had to make to the tool and if those don’t make sense to send upstream? |
One change was the treatment of new files. "ds300/patch-package" assumes that all patches are modifications to existing files. But, we decided to create patch files for new files too (using --unidirectional-new-file option to diff) so that we treat every difference as patch which can be applied irrespective of the type of difference (whether change, new, delete file). Essentially, we want to avoid any metadata over the patches. This decision was taken before we realized that we can't run standard "patch" tool in lab, and would need to use something like "ds300/patch-package"'s patching code. The change is fairly simply, to make sure the (empty) target directory/file exists before applying patches.. |
Alloy, i'll work on pushing some of the changes once we settle on this PR. THanks! |
…st. If this doesn't work then will look deeper
Hi @mganandraj :
|
Please select one of the following
This change reverts almost all the android specific changes from this fork. All the reverted changes are now in the form of patch files which can be applied over the repo. We are using the standard unix diff/patch tools.
In order to apply the patches in lab where the pathing tools may not be available, we are using an embedded patcher written in Javascript. I've copied and adapted code from https://github.com/ds300/patch-package repo for patching the source files.
Almost all the processing is automated. The diff/patch files are created by comparing our fork with a clone of fb repo and running unix diff command on each files which are different. We later apply reverse patch on our fork to revert the differences. I've verified that "revese-patching + patching" the fork with the current set of patch files results in clean repo.
Focus areas to test
OFfice applications on Android platform needs to be tested to make sure that we don't regress anything.
Microsoft Reviewers: Open in CodeFlow