Skip to content
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
5 changes: 5 additions & 0 deletions docs/dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ The following settings are available on iOS and Android:
```ts
type DependencyParamsIOST = {
project?: string,
podspec?: string,
sharedLibraries?: string[],
};

Expand All @@ -71,6 +72,10 @@ type DependencyParamsAndroidT = {

Custom path to `.xcodeproj`

#### platforms.ios.podspec

Custom `podspec` name to use when auto-linking (without the file extension). Your `podspec` file must be located in the root of the dependency package.

#### platforms.ios.sharedLibraries

An array of shared iOS libraries to link with the dependency. E.g. `libc++`. This is mostly a requirement of the native code that a dependency ships with.
Expand Down
1 change: 1 addition & 0 deletions packages/cli/src/tools/config/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export const dependencyConfig = t
ios: t
.object({
project: t.string(),
podspec: t.string(),
sharedLibraries: t.array().items(t.string()),
libraryFolder: t.string(),
})
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-ios/src/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function projectConfig(
folder,
pbxprojPath: path.join(projectPath, 'project.pbxproj'),
podfile: findPodfilePath(projectPath),
podspec: findPodspecName(folder),
podspec: userConfig.podspec || findPodspecName(folder),
projectPath,
projectName: path.basename(projectPath),
libraryFolder: userConfig.libraryFolder || 'Libraries',
Expand Down
3 changes: 2 additions & 1 deletion types/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ type ProjectParamsAndroidT = {
*/
type ProjectParamsIOST = {
project?: string,
podspec?: string,
sharedLibraries?: string[],
libraryFolder?: string,
plist: any[],
Expand Down Expand Up @@ -221,7 +222,7 @@ type ProjectConfigIOST = {
folder: string,
pbxprojPath: string,
podfile: null,
podspec: null,
podspec: null | string,
projectPath: string,
projectName: string,
libraryFolder: string,
Expand Down