Skip to content

Commit 6ce28f4

Browse files
authored
Update README.md
1 parent 8b515ff commit 6ce28f4

File tree

1 file changed

+38
-2
lines changed

1 file changed

+38
-2
lines changed

README.md

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This is a Kotlin MultiPlatform library that provides real-time, event-based comm
2424
- iOS version 11.0+
2525

2626
## Installation
27-
root build.gradle
27+
### root build.gradle
2828
```groovy
2929
allprojects {
3030
repositories {
@@ -33,12 +33,48 @@ allprojects {
3333
}
3434
```
3535

36-
project build.gradle
36+
### project build.gradle
3737
```groovy
3838
dependencies {
3939
commonMainApi("dev.icerock.moko:socket-io:0.3.0")
4040
commonMainApi("org.jetbrains.kotlinx:kotlinx-serialization-json:1.2.1")
4141
}
42+
```
43+
44+
#### With JetBrains cocoapods plugin
45+
project build.gradle
46+
```
47+
plugins {
48+
kotlin("native.cocoapods")
49+
}
50+
51+
...
52+
53+
kotlin {
54+
cocoapods {
55+
...
56+
57+
// 11.0 minimal supported
58+
ios.deploymentTarget = "11.0"
59+
60+
// add native dependency
61+
pod(name = "mokoSocketIo") {
62+
source = git(url = "https://github.com/icerockdev/moko-socket-io.git") {
63+
tag = "release/0.3.0"
64+
}
65+
}
66+
}
67+
}
68+
```
69+
70+
#### With IceRock cocoapods plugin
71+
project build.gradle
72+
```
73+
plugins {
74+
id("dev.icerock.mobile.multiplatform.cocoapods")
75+
}
76+
77+
...
4278
4379
cocoaPods {
4480
podsProject = file("../ios-app/Pods/Pods.xcodeproj") // here should be path to Pods xcode project

0 commit comments

Comments
 (0)