-
-
Notifications
You must be signed in to change notification settings - Fork 354
chore(e2e): Bump E2E tests to RN 0.82.1 #5156
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
36 commits
Select commit
Hold shift + click to select a range
fee63c3
chore(e2e): Bump E2E tests to RN 0.81.1
antonis 4c0c8df
Merge branch 'main' into antonis/bump-e2e-0.81.1
antonis f81b534
fix quote issue in rn 0.81.1
antonis e32325e
Merge branch 'main' into antonis/bump-e2e-0.81.1
antonis d286f49
Merge branch 'main' into antonis/bump-e2e-0.81.1
antonis 7f731c5
Bump to 0.82.0-rc.1
antonis f69babe
Merge branch 'main' into antonis/bump-e2e-0.82.0-rc.1
lucas-zimerman e9ec039
bump to rc-5
antonis 4d9a4d3
Merge branch 'main' into antonis/bump-e2e-0.82.0-rc.1
antonis b1cd313
Set to final 0.82
antonis 6921298
Merge branch 'main' into antonis/bump-e2e-0.82.0-rc.1
antonis bd86de7
Merge branch 'main' into antonis/bump-e2e-0.82.0-rc.1
antonis 648fbaa
Merge branch 'main' into antonis/bump-e2e-0.82.0-rc.1
antonis b3b108a
Merge branch 'main' into antonis/bump-e2e-0.82.0-rc.1
antonis a564127
Bump to 0.82.1
antonis 5571058
chore(ci): Bump back iOS CI runners to macos-15
antonis 100b740
Bump xcode version for 0.71.11
antonis f0628ca
Merge branch 'main' into antonis/bump-runners-to-macos-15
antonis 9850b9f
Bump E2E to iOS 15.1
antonis 5879300
Bump xcode to 16.4
antonis 63238e4
Merge branch 'main' into antonis/bump-runners-to-macos-15
antonis 221d0fe
chore(ci): Update hardcoded Xcode 16.2 references to 16.4
antonis 22745f8
chore(ci): Update iOS simulator to iPhone SE (3rd generation) with iO…
antonis 89a09de
Scroll to make button visible
antonis e927b60
Merge branch 'main' into antonis/bump-runners-to-macos-15
antonis b20e610
Extend wait for button
antonis fd80aaa
Revert "Extend wait for button"
antonis 71f9b86
Use iPhone 16
antonis 2a71fc7
Run native tests on iPhone 16 too
antonis 1adea0f
Merge branch 'antonis/bump-runners-to-macos-15' into antonis/bump-e2e…
antonis 6f8adaf
Test patch
antonis 79a55bf
Fix iOS patch script
antonis 821bfd4
Exclude 0.82.1 dynamic
antonis 9e70b02
Merge branch 'main' into antonis/bump-e2e-0.82.0-rc.1
antonis 8f069e0
Merge branch 'main' into antonis/bump-e2e-0.82.0-rc.1
antonis ca161ae
Merge branch 'main' into antonis/bump-e2e-0.82.0-rc.1
antonis 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
46 changes: 46 additions & 0 deletions
46
dev-packages/e2e-tests/patch-scripts/rn.patch.launch-arguments.js
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,46 @@ | ||
| #!/usr/bin/env node | ||
|
|
||
| const fs = require('fs'); | ||
| const path = require('path'); | ||
| const { argv } = require('process'); | ||
|
|
||
| const parseArgs = require('minimist'); | ||
| const { debug } = require('@sentry/core'); | ||
| debug.enable(); | ||
|
|
||
| const args = parseArgs(argv.slice(2)); | ||
| if (!args['app-dir']) { | ||
| throw new Error('Missing --app-dir'); | ||
| } | ||
|
|
||
| const buildGradlePath = path.join( | ||
| args['app-dir'], | ||
| 'node_modules', | ||
| 'react-native-launch-arguments', | ||
| 'android', | ||
| 'build.gradle' | ||
| ); | ||
|
|
||
| debug.log('Patching react-native-launch-arguments build.gradle', buildGradlePath); | ||
|
|
||
| if (!fs.existsSync(buildGradlePath)) { | ||
| debug.log('build.gradle not found, skipping patch'); | ||
| return; | ||
antonis marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
|
|
||
| const buildGradle = fs.readFileSync(buildGradlePath, 'utf8'); | ||
|
|
||
| // Replace destinationDir with destinationDirectory.get() for Gradle 9+ compatibility | ||
| const isPatched = buildGradle.includes('destinationDirectory.get()'); | ||
| if (!isPatched) { | ||
| const patched = buildGradle.replace( | ||
| /\.destinationDir\b/g, | ||
| '.destinationDirectory.get()' | ||
| ); | ||
|
|
||
| fs.writeFileSync(buildGradlePath, patched); | ||
| debug.log('Patched react-native-launch-arguments build.gradle successfully!'); | ||
| } else { | ||
| debug.log('react-native-launch-arguments build.gradle is already patched!'); | ||
| } | ||
|
|
||
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
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.
Uh oh!
There was an error while loading. Please reload this page.