Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
ln-12 committed Aug 22, 2022
1 parent 707fe99 commit afe7731
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ kotlin {
sourceSets {
val commonMain by getting {
dependencies {
implementation("com.github.ln_12:multiplatform-connectivity-status:1.2.0")
implementation("com.github.ln-12:multiplatform-connectivity-status:1.2.0")
}
}
}
Expand Down Expand Up @@ -59,6 +59,13 @@ connectivityStatus.start()
connectivityStatus.stop()
```

On iOS, you can also use this `getStatus()` closure to observe changes:
```swift
connectivityStatus.getStatus(success: { status in
print(status.boolValue)
})
```

## Sample

You can find a sample Android and iOS app inside the [sample](./sample) directory.
Expand Down
1 change: 0 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ version = "1.2.0"
repositories {
google()
mavenCentral()
mavenLocal()
}

kotlin {
Expand Down
1 change: 0 additions & 1 deletion sample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ allprojects {
repositories {
google()
mavenCentral()
mavenLocal()
}
}

0 comments on commit afe7731

Please sign in to comment.