Commit d31fc32
feat(ios): ability to link local spm packages (#54405)
Summary:
Pull Request resolved: #54405
While working on local project in monorepo, I found that `spm_dependency` utility available in CocoaPods does not support local SPM packages, assuming they always come from remote.
This change extends it so that `url` can also be a local path:
```ruby
spm_dependency(s,
url: File.join(__dir__, 'shared'),
requirement: {},
products: ['FooModule']
)
```
In the above example, `shared` folder contains a SPM project.
I don't have opinions on the API design here, I am also happy to create `spm_local_dependency` utility in order to clean up the API design.
bypass-github-export-checks
## Changelog:
[iOS] - Allow linking local SPM packages in CocoaPods
Reviewed By: cipolleschi
Differential Revision: D86208056
fbshipit-source-id: 3c8a02f696ebd285f54c6fce4baa344db56ba7d91 parent f45518f commit d31fc32
1 file changed
Lines changed: 28 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
66 | 69 | | |
67 | 70 | | |
68 | 71 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
78 | 94 | | |
| 95 | + | |
| 96 | + | |
79 | 97 | | |
80 | 98 | | |
81 | 99 | | |
| |||
0 commit comments