forked from facebook/react-native
-
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
Merged
Merged
Changes from all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
8640f54
Moving the android specific changes to patch files and reverting them…
mganandraj 64c6dd7
Apply patches immediately after cloning
mganandraj d7221f2
Fixing the webpack config for the bundle to run correctly
mganandraj 8fd8658
Removing an unwanted hunk from folly makefile hwich might be causing …
mganandraj 4cba06f
Reverting src/main/jni/third-party/folly/Android.mk hoping for the be…
mganandraj 209ce35
Fixing the patch scripts
mganandraj cf97ca0
Fixing a patch file with integrity failure.. and tightening the error…
mganandraj 416b966
Adding more diagnostics
mganandraj c0aa7a6
More diagnostics
mganandraj f07774f
Fixing line splitting of patch and source files while patching
mganandraj 5a38612
Cleaning up the diagnostics.. Patching should work this time.
mganandraj 11d0bed
Reverting the change needed for MAC/iOS
mganandraj beca141
More diagnostics printed out ..
mganandraj 609edd4
Fixing MAC/iOS build
mganandraj 781d26e
yarn test -u
mganandraj 3099adc
Update .eslintignore
mganandraj 68486b9
Fixing a couple of linking errors in JS'
mganandraj 29dfd72
Adding prettierignore and making some fixes to the patches
mganandraj b8e0103
More fixes to the path
mganandraj a2434af
Making required changes in Apple PR/Publish build pipelines to valiat…
mganandraj f5b683b
A fix in the patch application condition
mganandraj ee30a48
More fixes in the patch application condition
mganandraj e85c6bc
Another attempt to fix the patching condition
mganandraj 0d05f61
Yet Another attempt to fix the patching condition
mganandraj cb73763
Yet Another attempt to fix the patching condition.. forcing the param…
mganandraj cc6c2e8
Yet Another attempt to fix the patching condition.. forcing the param…
mganandraj 7643440
Making patches work on non-windows.. and more fixes for the condition…
mganandraj 45e3241
Diagnostics for debugging conditions
mganandraj 223738d
Diagnostics for debugging conditions 2
mganandraj 1e9a606
Diagnostics for debugging conditions 3
mganandraj 24eb685
Diagnostics for debugging conditions 3
mganandraj 5729565
Diagnostics for debugging conditions 3
mganandraj 3bb43cd
Diagnostics for debugging conditions 3
mganandraj ddf8f9f
Diagnostics for debugging conditions 3
mganandraj 155a699
Diagnostics for debugging conditions 3
mganandraj 026a5f7
Diagnostics for debugging conditions 3
mganandraj 92aa5d5
Diagnostics for debugging conditions 3
mganandraj c2e4c3b
Diagnostics for debugging conditions 3
mganandraj 2efa88a
Diagnostics for debugging conditions 3
mganandraj b7da71c
Diagnostics for debugging conditions 3
mganandraj 8c62993
Diagnostics for debugging conditions 3
mganandraj 0bbadba
Diagnostics for debugging conditions 3
mganandraj 3e0d58c
Diagnostics for debugging conditions 3
mganandraj 8317956
Diagnostics for debugging conditions 3
mganandraj c945b30
Workaround
mganandraj 7452aa6
Workaround
mganandraj 1bed50b
Workaround
mganandraj 1803133
Workaround
mganandraj 1eac566
Fixing Apple build failure with patch applied ..
mganandraj ce448cf
Refactoring the patch application to template
mganandraj 7a92e16
Fixing the template file relative URL when referenced from another te…
mganandraj d4c0b56
Fixing a mistake introduced while refactoring the patch creating steps.
mganandraj 9add875
Fixing some formatting
mganandraj 0f5205d
Fixing some formatting
mganandraj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# This file defines the build steps to publish a release | ||
name: $(Date:yyyyMMdd).$(Rev:.r) | ||
|
||
trigger: | ||
batch: true | ||
branches: | ||
include: | ||
- master | ||
- fabric | ||
paths: | ||
exclude: | ||
- package.json | ||
|
||
pr: none | ||
|
||
jobs: | ||
- job: RNGithubPublish | ||
displayName: React-Native GitHub Publish | ||
pool: | ||
vmImage: vs2017-win2016 | ||
timeoutInMinutes: 90 # how long to run the job before automatically cancelling | ||
cancelTimeoutInMinutes: 5 # how much time to give 'run always even if cancelled tasks' before killing them | ||
steps: | ||
- checkout: self # self represents the repo where the initial Pipelines YAML file was found | ||
clean: true # whether to fetch clean each time | ||
# fetchDepth: 2 # the depth of commits to ask Git to fetch | ||
lfs: false # whether to download Git-LFS files | ||
submodules: recursive # set to 'true' for a single level of submodules or 'recursive' to get submodules of submodules | ||
persistCredentials: true # set to 'true' to leave the OAuth token in the Git config after the initial fetch | ||
|
||
- task: CmdLine@2 | ||
displayName: npm install | ||
inputs: | ||
script: npm install | ||
|
||
- task: CmdLine@2 | ||
displayName: Bump package version | ||
inputs: | ||
script: node .ado/bumpFileVersions.js | ||
|
||
- task: CmdLine@2 | ||
displayName: "Prepare package.json for npm publishing as react-native-macos" | ||
inputs: | ||
script: node .ado/renamePackageToMac.js | ||
|
||
- task: Npm@1 | ||
displayName: "Publish react-native-macos to npmjs.org" | ||
inputs: | ||
command: 'publish' | ||
publishEndpoint: 'npmjs' |
This file contains hidden or 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
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
parameters: | ||
apply_office_patches: '' | ||
|
||
steps: | ||
- task: CmdLine@2 | ||
displayName: Apply Android specific patches for Office consumption | ||
inputs: | ||
script: node $(System.DefaultWorkingDirectory)/android-patches/bundle/bundle.js patch $(System.DefaultWorkingDirectory) BuildAndThirdPartyFixes DialogModule UIEditText UIScroll UITextFont Accessibility OfficeRNHost SecurityFixes V8Integration AnnotationProcessing --patch-store $(System.DefaultWorkingDirectory)/android-patches/patches-droid-office-grouped --log-folder $(System.DefaultWorkingDirectory)/android-patches/logs --confirm ${{ parameters.apply_office_patches }} |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
android-patches/ |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1146,7 +1146,7 @@ const TextInput = createReactClass({ | |
rejectResponderTermination={true} | ||
accessible={props.accessible} | ||
accessibilityLabel={props.accessibilityLabel} | ||
accessibilityHint={props.accessibilityHint} // TODO(OSS Candidate ISS#2710739) | ||
accessibilityHint={props.accessibilityHint} // TODO(macOS ISS#2323203) | ||
accessibilityRole={props.accessibilityRole} | ||
accessibilityStates={props.accessibilityStates} | ||
nativeID={this.props.nativeID} | ||
|
@@ -1256,8 +1256,8 @@ const TextInput = createReactClass({ | |
onPress={this._onPress} | ||
accessible={this.props.accessible} | ||
accessibilityLabel={this.props.accessibilityLabel} | ||
accessibilityHint={this.props.accessibilityHint} // TODO(OSS Candidate ISS#2710739) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We use this prop in the macOS fork. Please restore. The comment can be changed to |
||
accessibilityRole={this.props.accessibilityRole} | ||
accessibilityHint={this.props.accessibilityHint} // TODO(macOS ISS#2323203) | ||
accessibilityStates={this.props.accessibilityStates} | ||
nativeID={this.props.nativeID} | ||
testID={this.props.testID}> | ||
|
@@ -1267,15 +1267,6 @@ const TextInput = createReactClass({ | |
}, | ||
|
||
_onFocus: function(event: FocusEvent) { | ||
// [TODO(android ISS) | ||
// Set the focused TextInput field info in TextInputState. | ||
// Delaying this to onFocus native event ensures that - | ||
// 1. The state is updated only after the native code completes setting focus on the view | ||
// 2. In case the focus is moving from one TextInput(A) to another TextInput(B), the state of | ||
// A needs to be updated (blurred) before info about B is updated in TestInputState. | ||
TextInputState.setFocusedTextInput( | ||
ReactNative.findNodeHandle(this._inputRef), | ||
); // ]TODO(android ISS) | ||
if (this.props.onFocus) { | ||
this.props.onFocus(event); | ||
} | ||
|
@@ -1371,17 +1362,7 @@ const TextInput = createReactClass({ | |
_onBlur: function(event: BlurEvent) { | ||
// This is a hack to fix https://fburl.com/toehyir8 | ||
// @todo(rsnara) Figure out why this is necessary. | ||
// this.blur(); | ||
// [TODO(android ISS) removed: this.blur(); | ||
// Set the focused TextInput field info in TextInputState. | ||
// Delaying this to onBlur native event ensures that - | ||
// 1. The state is updated only after the native code completes clearing focus on the view | ||
// 2. In case the focus is moving from one TextInput(A) to another TextInput(B), the state of | ||
// A needs to be updated (blurred) before info about B is updated in TestInputState. | ||
TextInputState.clearFocusedTextInput( | ||
ReactNative.findNodeHandle(this._inputRef), | ||
); // ]TODO(android ISS) | ||
|
||
this.blur(); | ||
if (this.props.onBlur) { | ||
this.props.onBlur(event); | ||
} | ||
|
This file contains hidden or 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
This file contains hidden or 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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
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.
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.
We use this prop in the macOS fork. Please restore. The comment can be changed to
TODO(macOS ISS#2323203)