Skip to content

Commit

Permalink
fix: extra options in code samples removed
Browse files Browse the repository at this point in the history
  • Loading branch information
danil-pavlov committed Jan 29, 2025
1 parent 1a287f2 commit 0285d3e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 17 deletions.
2 changes: 0 additions & 2 deletions docs/topics/multiplatform/multiplatform-ios-dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ have some other strong reason to do so.
//..
pod("SDWebImage") {
version = "5.20.0"
extraOpts += listOf("-compiler-option")
}
}
}
Expand All @@ -46,7 +45,6 @@ have some other strong reason to do so.
//..
pod('SDWebImage') {
version = '5.20.0'
extraOpts += ['-compiler-option']
}
}
}
Expand Down
16 changes: 8 additions & 8 deletions docs/topics/multiplatform/native-cocoapods-dsl-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ a separate function call.
You can specify the name of a Pod library in the function parameters and additional parameter values, like the `version`
and `source` of the library, in its configuration block:

| **Name** | **Description** |
|------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `version` | The library version. To use the latest version of the library, omit the parameter. |
| **Name** | **Description** |
|------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `version` | The library version. To use the latest version of the library, omit the parameter. |
| `source` | Configures the Pod from: <list><li>The Git repository using `git()`. In the block after `git()`, you can specify `commit` to use a specific commit, `tag` to use a specific tag, and `branch` to use a specific branch from the repository</li><li>The local repository using `path()`</li></list> |
| `packageName` | Specifies the package name. |
| `extraOpts` | Specifies the list of options for a Pod library. For example, specific flags: <code-block lang="Kotlin">extraOpts = listOf("-compiler-option")</code-block> |
| `linkOnly` | Instructs the CocoaPods plugin to use Pod dependencies with dynamic frameworks without generating cinterop bindings. If used with static frameworks, the option will remove the Pod dependency entirely. |
| `interopBindingDependencies` | Contains a list of dependencies to other Pods. This list is used when building a Kotlin binding for the new Pod. |
| `useInteropBindingFrom()` | Specifies the name of the existing Pod that is used as dependency. This Pod should be declared before the function execution. The function instructs the CocoaPods plugin to use a Kotlin binding of the existing Pod when building a binding for the new one. |
| `packageName` | Specifies the package name. |
| `extraOpts` | Specifies the list of options for a Pod library. For example, specific flags: <code-block lang="Kotlin">extraOpts = listOf("-compiler-option")</code-block> |
| `linkOnly` | Instructs the CocoaPods plugin to use Pod dependencies with dynamic frameworks without generating cinterop bindings. If used with static frameworks, the option will remove the Pod dependency entirely. |
| `interopBindingDependencies` | Contains a list of dependencies to other Pods. This list is used when building a Kotlin binding for the new Pod. |
| `useInteropBindingFrom()` | Specifies the name of the existing Pod that is used as dependency. This Pod should be declared before the function execution. The function instructs the CocoaPods plugin to use a Kotlin binding of the existing Pod when building a binding for the new one. |

```kotlin
kotlin {
Expand Down
5 changes: 0 additions & 5 deletions docs/topics/multiplatform/native-cocoapods-libraries.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ version of the library, you can just omit this parameter altogether.

pod("SDWebImage") {
version = "5.20.0"
extraOpts += listOf("-compiler-option")
}
}
}
Expand Down Expand Up @@ -97,7 +96,6 @@ import cocoapods.SDWebImage.*
}
pod("SDWebImage") {
version = "5.20.0"
extraOpts += listOf("-compiler-option")
}
}
}
Expand Down Expand Up @@ -154,21 +152,18 @@ import cocoapods.SDWebImage.*
source = git("https://github.com/SDWebImage/SDWebImage") {
tag = "5.20.0"
}
extraOpts += listOf("-compiler-option")
}

pod("JSONModel") {
source = git("https://github.com/jsonmodel/jsonmodel.git") {
branch = "key-mapper-class"
}
extraOpts += listOf("-compiler-option")
}

pod("CocoaLumberjack") {
source = git("https://github.com/CocoaLumberjack/CocoaLumberjack.git") {
commit = "3e7f595e3a459c39b917aacf9856cd2a48c4dbf3"
}
extraOpts += listOf("-compiler-option")
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions docs/topics/multiplatform/native-cocoapods-xcode.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ dependency by calling `pod install` manually for each Xcode project. In other ca
ios.deploymentTarget = "16.0"
pod("SDWebImage") {
version = "5.20.0"
extraOpts += listOf("-compiler-option")
}
podfile = project.file("../ios-app/Podfile")
}
Expand Down Expand Up @@ -92,7 +91,6 @@ dependency by calling `pod install` manually for each Xcode project. In other ca
pod("SDWebImage") {
version = "5.20.0"
extraOpts += listOf("-compiler-option")
}
podfile = project.file("../severalTargetsXcodeProject/Podfile") // specify the path to the Podfile
}
Expand Down

0 comments on commit 0285d3e

Please sign in to comment.