From 0285d3ea99273c3fd1822781eeb72c2ae362fbcd Mon Sep 17 00:00:00 2001 From: "Danil.Pavlov" Date: Tue, 28 Jan 2025 17:58:42 +0100 Subject: [PATCH] fix: extra options in code samples removed --- .../multiplatform-ios-dependencies.md | 2 -- .../native-cocoapods-dsl-reference.md | 16 ++++++++-------- .../multiplatform/native-cocoapods-libraries.md | 5 ----- .../multiplatform/native-cocoapods-xcode.md | 2 -- 4 files changed, 8 insertions(+), 17 deletions(-) diff --git a/docs/topics/multiplatform/multiplatform-ios-dependencies.md b/docs/topics/multiplatform/multiplatform-ios-dependencies.md index cbbb12cf762..cf2ff9b4341 100644 --- a/docs/topics/multiplatform/multiplatform-ios-dependencies.md +++ b/docs/topics/multiplatform/multiplatform-ios-dependencies.md @@ -30,7 +30,6 @@ have some other strong reason to do so. //.. pod("SDWebImage") { version = "5.20.0" - extraOpts += listOf("-compiler-option") } } } @@ -46,7 +45,6 @@ have some other strong reason to do so. //.. pod('SDWebImage') { version = '5.20.0' - extraOpts += ['-compiler-option'] } } } diff --git a/docs/topics/multiplatform/native-cocoapods-dsl-reference.md b/docs/topics/multiplatform/native-cocoapods-dsl-reference.md index 5305906260a..8c6e88cd296 100644 --- a/docs/topics/multiplatform/native-cocoapods-dsl-reference.md +++ b/docs/topics/multiplatform/native-cocoapods-dsl-reference.md @@ -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:
  • 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
  • The local repository using `path()`
  • | -| `packageName` | Specifies the package name. | -| `extraOpts` | Specifies the list of options for a Pod library. For example, specific flags: extraOpts = listOf("-compiler-option") | -| `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: extraOpts = listOf("-compiler-option") | +| `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 { diff --git a/docs/topics/multiplatform/native-cocoapods-libraries.md b/docs/topics/multiplatform/native-cocoapods-libraries.md index 60bd7a8aa96..e9840cb6aee 100644 --- a/docs/topics/multiplatform/native-cocoapods-libraries.md +++ b/docs/topics/multiplatform/native-cocoapods-libraries.md @@ -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") } } } @@ -97,7 +96,6 @@ import cocoapods.SDWebImage.* } pod("SDWebImage") { version = "5.20.0" - extraOpts += listOf("-compiler-option") } } } @@ -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") } } } diff --git a/docs/topics/multiplatform/native-cocoapods-xcode.md b/docs/topics/multiplatform/native-cocoapods-xcode.md index 220d8004ea4..630f1424a85 100644 --- a/docs/topics/multiplatform/native-cocoapods-xcode.md +++ b/docs/topics/multiplatform/native-cocoapods-xcode.md @@ -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") } @@ -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 }