From afe77311d04a45de106dea5fffe8d0149e96bf4c Mon Sep 17 00:00:00 2001 From: Lorenzo Neumann <36760115+ln-12@users.noreply.github.com> Date: Mon, 22 Aug 2022 12:19:37 +0200 Subject: [PATCH] Updated README --- README.md | 9 ++++++++- build.gradle.kts | 1 - sample/build.gradle.kts | 1 - 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 41119ca..9f396c7 100644 --- a/README.md +++ b/README.md @@ -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") } } } @@ -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. diff --git a/build.gradle.kts b/build.gradle.kts index 35a8aea..11ec84a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -11,7 +11,6 @@ version = "1.2.0" repositories { google() mavenCentral() - mavenLocal() } kotlin { diff --git a/sample/build.gradle.kts b/sample/build.gradle.kts index c32a6af..674330e 100644 --- a/sample/build.gradle.kts +++ b/sample/build.gradle.kts @@ -14,6 +14,5 @@ allprojects { repositories { google() mavenCentral() - mavenLocal() } }