cocoapods.star¶
Bump CocoaPods pod versions and the platform version in Podfiles.
Edits are line-based, so comments and layout stay as they were.
Podfile.lock isn't updated; run pod update <name> in a run step on a
macOS runner when it is committed.
| Function | What it does |
|---|---|
podfiles |
Lists the repo's Podfiles. |
set_pod |
Sets a pod's version requirement wherever a Podfile lists it with one. |
set_platform |
Raises the deployment target in platform :ios, '13.0', never lowering it. |
podfiles¶
Lists the repo's Podfiles.
Arguments
| Name | Description |
|---|---|
repo |
The repo passed to change(repo). |
Returns: The sorted paths of every Podfile outside Pods directories.
Example
set_pod¶
Sets a pod's version requirement wherever a Podfile lists it with one.
A newer version already there is kept, so a campaign never lowers one.
Pods without a version, or pinned to a :git source, are left alone.
Subspecs match by their full name, such as Firebase/Analytics.
Arguments
| Name | Description |
|---|---|
repo |
The repo passed to change(repo). |
name |
The pod name. |
requirement |
The requirement, such as ~> 5.9. |
Returns: The list of paths that changed.
Example
Used in: cocoapods-ios-15
set_platform¶
Raises the deployment target in platform :ios, '13.0', never lowering it.
Arguments
| Name | Description |
|---|---|
repo |
The repo passed to change(repo). |
platform |
The platform, such as ios, osx or tvos. |
version |
The minimum version, such as 15.0. |
Returns: The list of paths that changed.
Example
Used in: cocoapods-ios-15