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

Add optional podRepoUpdate flag in iosConfig #1902

Merged
merged 1 commit into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/platform-parts/container/container-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,18 @@ You can override the iOS deployment target version to use by setting `iosConfig`
}
```

You can run pod repo update before pod install by setting `podRepoUpdate` in the cauldron as show below.

```json
{
"containerGenerator": {
"iosConfig": {
"podRepoUpdate": true
}
}
}
```

[1]: https://github.com/electrode-io/ern-container-transformer-xcframework
[2]: https://github.com/electrode-io/ern-container-publisher-cocoapod-git
[transform-container]: ../../cli/transform-container
Expand Down
13 changes: 10 additions & 3 deletions ern-container-gen-ios/src/IosGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,16 @@ Make sure to run these commands before building the container.`,
? `_${ernConfig.get('podVersion')}_`
: '';

const podCmdArgs = [podVersionArg, 'install', '--verbose'].filter(
(x: string) => x !== '',
);
const podRepoUpdateArg = config?.iosConfig?.podRepoUpdate
? '--repo-update'
: '';

const podCmdArgs = [
podVersionArg,
'install',
podRepoUpdateArg,
'--verbose',
].filter((x: string) => x !== '');

shell.pushd(config.outDir);

Expand Down