-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(iOS): post install script for deployment target (#5783)
* feat: post install script for deployment target * chore: fix path to helper file * chore: put post_install in better spot Co-authored-by: jcesarmobile <[email protected]>
- Loading branch information
1 parent
dd16478
commit f5afa94
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 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,12 @@ | ||
def assertDeploymentTarget(installer) | ||
installer.pods_project.targets.each do |target| | ||
target.build_configurations.each do |config| | ||
# ensure IPHONEOS_DEPLOYMENT_TARGET is at least 13.0 | ||
deployment_target = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f | ||
should_upgrade = deployment_target < 13.0 && deployment_target != 0.0 | ||
if should_upgrade | ||
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0' | ||
end | ||
end | ||
end | ||
end |