Skip to content

iOS build now respects cleanup_exclude_files config#17

Open
tbtmuse wants to merge 2 commits intoNativePHP:mainfrom
tbtmuse:fix/ios-build-platform-file-operations
Open

iOS build now respects cleanup_exclude_files config#17
tbtmuse wants to merge 2 commits intoNativePHP:mainfrom
tbtmuse:fix/ios-build-platform-file-operations

Conversation

@tbtmuse
Copy link

@tbtmuse tbtmuse commented Feb 15, 2026

BuildIosAppCommand::copyLaravelAppIntoIosApp() had hardcoded exclusions that ignored the user config in nativephp.cleanup_exclude_files.

Replace with the shared PlatformFileOperations::platformOptimizedCopy() already in use on the android side.

BuildIosAppCommand::copyLaravelAppIntoIosApp() had a bespoke
RecursiveIteratorIterator with hardcoded exclusions that ignored
the user-configurable nativephp.cleanup_exclude_files setting.

Replace with the shared PlatformFileOperations::platformOptimizedCopy()
trait already used by InstallCommand, PackageCommand, and RunCommand.
This also merges config('nativephp.cleanup_exclude_files') into the
exclusion list, matching the pattern in PreparesBuild for Android.
@simonhamp
Copy link
Member

Duplicates #2

@simonhamp simonhamp closed this Feb 23, 2026
@tbtmuse
Copy link
Author

tbtmuse commented Feb 23, 2026

@simonhamp I would argue that this PR actually makes use of preexisting code rather than intruducing new code, ultimately unifying the code that is used for this function on both platforms and making it easier to reason about. It is a simplification. Would you reconsider from that perspective?

@simonhamp
Copy link
Member

I do think this is the better implementation... but it needs the test from #2 to prove that it's working

@simonhamp simonhamp reopened this Feb 23, 2026
@tbtmuse
Copy link
Author

tbtmuse commented Feb 24, 2026

Sure thing, I will add the test.

@tbtmuse tbtmuse force-pushed the fix/ios-build-platform-file-operations branch 2 times, most recently from a3a749a to 06fb769 Compare February 24, 2026 07:30
- Add IosBuildCopyTest
@tbtmuse tbtmuse force-pushed the fix/ios-build-platform-file-operations branch from 06fb769 to 677a22b Compare February 24, 2026 07:31
@tbtmuse
Copy link
Author

tbtmuse commented Feb 24, 2026

@simonhamp tests added, happy to make further adjustments if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants