Skip to content

Commit 07819a0

Browse files
authored
update: import and links (#4782)
1 parent 57da9d5 commit 07819a0

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

docs/topics/multiplatform/native-cocoapods-dsl-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ and `source` of the library, in its configuration block:
137137
```kotlin
138138
kotlin {
139139
iosArm64()
140+
140141
cocoapods {
141142
version = "2.0"
142143
summary = "CocoaPods test library"
143144
homepage = "https://github.com/JetBrains/kotlin"
144-
145145
ios.deploymentTarget = "16.0"
146146

147147
pod("pod_dependency") {

docs/topics/multiplatform/native-cocoapods-libraries.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@ version of the library, you can just omit this parameter altogether.
3838

3939
cocoapods {
4040
version = "2.0"
41-
ios.deploymentTarget = "16.0"
42-
4341
summary = "CocoaPods test library"
4442
homepage = "https://github.com/JetBrains/kotlin"
43+
ios.deploymentTarget = "16.0"
4544

4645
pod("SDWebImage") {
4746
version = "5.20.0"
@@ -81,7 +80,6 @@ import cocoapods.SDWebImage.*
8180
version = "2.0"
8281
summary = "CocoaPods test library"
8382
homepage = "https://github.com/JetBrains/kotlin"
84-
8583
ios.deploymentTarget = "16.0"
8684

8785
pod("pod_dependency") {
@@ -145,7 +143,6 @@ import cocoapods.SDWebImage.*
145143
version = "2.0"
146144
summary = "CocoaPods test library"
147145
homepage = "https://github.com/JetBrains/kotlin"
148-
149146
ios.deploymentTarget = "16.0"
150147

151148
pod("SDWebImage") {
@@ -175,7 +172,7 @@ import cocoapods.SDWebImage.*
175172
To use these dependencies from the Kotlin code, import the packages `cocoapods.<library-name>`:
176173

177174
```kotlin
178-
import cocoapods.Alamofire.*
175+
import cocoapods.SDWebImage.*
179176
import cocoapods.JSONModel.*
180177
import cocoapods.CocoaLumberjack.*
181178
```
@@ -194,7 +191,6 @@ import cocoapods.CocoaLumberjack.*
194191
version = "2.0"
195192
summary = "CocoaPods test library"
196193
homepage = "https://github.com/JetBrains/kotlin"
197-
198194
ios.deploymentTarget = "16.0"
199195

200196
specRepos {
@@ -245,7 +241,6 @@ import cocoapods.example.*
245241
version = "2.0"
246242
summary = "CocoaPods test library"
247243
homepage = "https://github.com/JetBrains/kotlin"
248-
249244
ios.deploymentTarget = "16.0"
250245

251246
pod("FirebaseAuth") {
@@ -294,7 +289,6 @@ kotlin {
294289
version = "2.0"
295290
summary = "CocoaPods test library"
296291
homepage = "https://github.com/JetBrains/kotlin"
297-
298292
ios.deploymentTarget = "16.0"
299293

300294
pod("PodName") {

docs/topics/multiplatform/native-cocoapods-xcode.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ dependency by calling `pod install` manually for each Xcode project. In other ca
4040
summary = "CocoaPods test library"
4141
homepage = "https://github.com/JetBrains/kotlin"
4242
ios.deploymentTarget = "16.0"
43+
4344
pod("SDWebImage") {
4445
version = "5.20.0"
4546
}

docs/topics/multiplatform/native-cocoapods.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,14 @@ To create a project using the web wizard and configure the CocoaPods integration
134134
alias(libs.plugins.kotlinCocoapods)
135135
```
136136
137-
Now you are ready to use CocoaPods in your Kotlin Multiplatform project.
137+
Now you are ready to [configure CocoaPods in your Kotlin Multiplatform project](#configure-the-project).
138138
139139
### In Android Studio
140140
141141
To create a project in Android Studio with the CocoaPods integration:
142142
143143
1. Install the [Kotlin Multiplatform plugin](https://plugins.jetbrains.com/plugin/14936-kotlin-multiplatform) to Android Studio.
144-
2. In Android Studio, select **File** | **New** | **New Project** in the menu.
144+
2. In Android Studio, select **File** | **New** | **New Project** in the menu.
145145
3. In the list of project templates, select **Kotlin Multiplatform App** and then click **Next**.
146146
4. Name your application and click **Next**.
147147
5. Choose **CocoaPods Dependency Manager** as the iOS framework distribution option.
@@ -152,11 +152,16 @@ To create a project in Android Studio with the CocoaPods integration:
152152
153153
The plugin will automatically generate the project with the CocoaPods integration set up.
154154
155-
## Configure existing project
155+
## Configure the project
156156
157-
If you already have a project, you can add and configure the Kotlin CocoaPods Gradle plugin manually:
157+
To configure the Kotlin CocoaPods Gradle plugin in your multiplatform project:
158158
159-
1. In `build.gradle(.kts)` of your project, apply the CocoaPods plugin as well as the Kotlin Multiplatform plugin:
159+
1. In `build.gradle(.kts)` of your project, apply the CocoaPods plugin as well as the Kotlin Multiplatform plugin.
160+
161+
> Skip this step if you've created your project with the [web wizard](#using-web-wizard) or
162+
> the [Kotlin Multiplatform plugin for Android Studio](#in-android-studio).
163+
>
164+
{style="note"}
160165

161166
```kotlin
162167
plugins {
@@ -318,8 +323,8 @@ Try these workarounds to avoid this error:
318323
319324
1. Look through the downloaded Pod directory `[shared_module_name]/build/cocoapods/synthetic/IOS/Pods/...`
320325
for the `module.modulemap` file.
321-
2. Check the framework name inside the module, for example `SDWebImageMapKit {}`. If the framework name doesn't match the Pod
322-
name, specify it explicitly:
326+
2. Check the framework name inside the module, for example `SDWebImageMapKit {}`. If the framework name doesn't match
327+
the Pod name, specify it explicitly:
323328
324329
```kotlin
325330
pod("SDWebImage/MapKit") {

0 commit comments

Comments
 (0)