Skip to content
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

Adds Bundle utility #304

Merged
merged 1 commit into from
Jul 1, 2024
Merged

Adds Bundle utility #304

merged 1 commit into from
Jul 1, 2024

Conversation

mohssenfathi
Copy link
Contributor

With the introduction of Swift PM support, we started referencing bundles using Bundle.main. This breaks integration for anyone building manually or wrapping in a Cocoapods Podspec.
This change adds Bundle utilities to each framework that will select the correct bundle to load resources from. It will check the runtime argument SWIFT_PACKAGE to determine if we are in a Swift Package and use Bundle.module if so. Otherwise, it will target the bundle by class.

@mohssenfathi mohssenfathi marked this pull request as ready for review July 1, 2024 17:15
@mohssenfathi mohssenfathi merged commit 5d6cf94 into uber:2.x Jul 1, 2024
3 of 4 checks passed
@mohssenfathi mohssenfathi deleted the bundle-utility branch July 1, 2024 17:36
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