Skip to content
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
686b6f8
fix: Fixes SentryScreenFrames use after being converted to Swift
itaybre Sep 8, 2025
07104dd
Merge branch 'main' into itay/fix_sentreyscreenframes
itaybre Oct 3, 2025
5a09e8e
Fix build
itaybre Oct 3, 2025
347a601
Merge branch 'main' into itay/fix_sentreyscreenframes
antonis Oct 14, 2025
7577a17
Use non-experimental enableLogs
denrase Oct 14, 2025
d3fe306
bump target
denrase Oct 14, 2025
3bd04c2
remove enable tracing
denrase Oct 14, 2025
cc596a8
Update enableLogs tests
denrase Oct 15, 2025
2b4c1d4
Merge branch 'main' into itay/fix_sentreyscreenframes
antonis Oct 17, 2025
d99584c
chore: Fix RNSentry after SentryFramesTracker conversion to swift
itaybre Oct 17, 2025
ca44d59
Run linter
itaybre Oct 17, 2025
4c0fb34
Remove unused debug image provider imports
noahsmartin Oct 18, 2025
d61ca6d
Remove imports
noahsmartin Oct 21, 2025
6a25cb9
chore: Remove deprecated user property
noahsmartin Oct 22, 2025
1bda802
chore: Remove use of deprecate integrations API (#5304)
noahsmartin Oct 24, 2025
0327771
Remove use of integrations in tests
noahsmartin Oct 27, 2025
80af135
chore: Remove use of deprecated prop (#5322)
noahsmartin Oct 31, 2025
b407fd2
ref: Move options to wrapper
noahsmartin Nov 6, 2025
914e943
Merge branch 'cocoa-v9' into itay/fix_sentreyscreenframes
antonis Nov 11, 2025
7633931
Merge branch 'itay/fix_sentreyscreenframes' into denrase/options-enab…
antonis Nov 11, 2025
076a651
Merge branch 'denrase/options-enable-logs' into itay/frames_tracker_s…
antonis Nov 11, 2025
a818d2b
chore(sample): Bump MacOS sample to macos 12.0 wich is the minimum fo…
antonis Nov 11, 2025
521705f
Merge branch 'cocoa-v9' into antonis/cocoa-v9-macos-v12-bump
antonis Nov 11, 2025
3002541
Merge branch 'cocoa-v9' into antonis/cocoa-v9-macos-v12-bump
antonis Nov 12, 2025
389c2e1
Merge branch 'cocoa-v9' into antonis/cocoa-v9-macos-v12-bump
antonis Nov 12, 2025
25e02fe
chore(e2e): Cocoa-v9: Bump E2E to iOS 15.0
antonis Nov 12, 2025
8c193d0
Merge branch 'antonis/cocoa-v9-macos-v12-bump' into antonis/cocoa-v9-…
antonis Nov 12, 2025
9bd217f
Bump to 15.1 due to RN 0.81.0 requirements
antonis Nov 12, 2025
bddf4ea
Merge branch 'cocoa-v9' into antonis/cocoa-v9-min-iOS15
antonis Nov 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 33 additions & 3 deletions dev-packages/e2e-tests/patch-scripts/rn.patch.podfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,16 @@ if (enableHermes === null) {
throw new Error('Invalid engine');
}

// Optional iOS version argument, defaults to '15.1' due to Cocoa SDK V9 and RN 0.81.0 requirement
const iosVersion = args['ios-version'] || '15.1';

debug.log('Patching Podfile', args['pod-file']);
const content = fs.readFileSync(args['pod-file'], 'utf8');
let content = fs.readFileSync(args['pod-file'], 'utf8');

const isHermesEnabled = content.includes(':hermes_enabled => true,');
const shouldPatch = enableHermes !== isHermesEnabled;
if (shouldPatch) {
const patched = content.replace(
content = content.replace(
/:hermes_enabled.*/,
enableHermes ? ':hermes_enabled => true,' : ':hermes_enabled => false,',
);
Expand All @@ -36,7 +39,34 @@ if (shouldPatch) {
} else {
debug.log('Patching Podfile for JSC');
}
fs.writeFileSync(args['pod-file'], patched);
}

// Patch iOS version
const platformPattern = /platform :ios, (min_ios_version_supported|['"][0-9.]+['"])/;
const currentMatch = content.match(platformPattern);

if (currentMatch) {
const currentValue = currentMatch[1];
const shouldPatchVersion = currentValue === 'min_ios_version_supported' ||
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For simplicity since the RN requirement (15.1) is close to the Cocoa one (15.0) , I force the specified version instead of fetching the min_ios_version_supported and comparing.

currentValue !== `'${iosVersion}'`;

if (shouldPatchVersion) {
content = content.replace(
platformPattern,
`platform :ios, '${iosVersion}'`
);
debug.log(`Patching iOS version to ${iosVersion} (was: ${currentValue})`);
} else {
debug.log(`iOS version already set to ${iosVersion}`);
}
} else {
debug.log('Warning: Could not find platform :ios line to patch');
}

// Write the file if any changes were made
if (shouldPatch || currentMatch) {
fs.writeFileSync(args['pod-file'], content);
debug.log('Podfile patched successfully!');
} else {
debug.log('Podfile is already patched!');
}
Loading