Skip to content

Commit 03dedb4

Browse files
Add --repo-update to install_ios_pod (#40)
* add parameter * Add tests --------- Co-authored-by: Mateo Arboleda <mateo.arboleda@circleci.com>
1 parent 7d9e1a2 commit 03dedb4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.circleci/test-deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
- flutter/install_sdk_and_pub:
1717
app-dir: ./sample
1818
- flutter/install_ios_pod:
19+
repo-update: true
1920
app-dir: ./sample
2021
- flutter/install_ios_gem:
2122
app-dir: ./sample
@@ -33,6 +34,7 @@ jobs:
3334
channel: beta
3435
version: 3.27.0-0.1.pre
3536
- flutter/install_ios_pod:
37+
repo-update: true
3638
app-dir: ./sample
3739
- flutter/install_ios_gem:
3840
app-dir: ./sample

src/commands/install_ios_pod.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@ parameters:
99
default: v1
1010
description: Change the default cache version if you need to clear the cache for any reason.
1111
type: string
12+
repo-update:
13+
default: false
14+
description: Whether to run 'pod install' with the '--repo-update' option.
15+
type: boolean
1216
steps:
1317
- restore_cache:
1418
keys:
1519
- 'pod-<<parameters.cache-version>>-{{ checksum "<< parameters.app-dir >>/ios/Podfile.lock" }}'
1620
- run:
1721
name: Install Dependencies
18-
command: pod install
22+
command: pod install <<#parameters.repo-update>>--repo-update<</parameters.repo-update>>
1923
working_directory: <<parameters.app-dir>>/ios
2024
- save_cache:
2125
paths:

0 commit comments

Comments
 (0)