Skip to content

Commit

Permalink
docs: removal of grpc-engine notes, adding `RSocketTimeMatesRequestsE…
Browse files Browse the repository at this point in the history
…ngine`
  • Loading branch information
y9vad9 committed Sep 27, 2023
1 parent ec9df37 commit 07632af
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ platform and integrate its features into your own applications.
To demonstrate the usage of the SDK, consider the following example:

```kotlin
val engineBuilder = DefaultGrpcEngineBuilder()
val engine = GrpcTimeMatesRequestsEngine(engineBuilder)
val engine = RSocketTimeMatesRequestsEngine(
coroutineScope = Dispatchers.IO,
)
val emailAuth = AccountLoginApi(engineBuilder).email
val email = EmailAddress.create("[email protected]").getOrElse { return }

Expand All @@ -24,12 +25,6 @@ val authorizationResult = emailAuth.authorize(email)
// until we complete our registration
.map { (isNewAccount, authorization) -> ... }
```
> **Note** <br>
> For android use [AndroidGrpcEngineBuilder](/grpc-engine/android/src/main/kotlin/io/timemates/android/grpc/AndroidGrpcEngineBuilder.kt)
>```kotlin
> val engineBuilder = AndroidGrpcEngineBuilder(applicationContext)
>```
In the provided code snippet, the SDK utilizes the Kotlin Result API extensively.

It's important to note that the SDK's value objects, such as `EmailAddress`
Expand Down Expand Up @@ -77,9 +72,7 @@ repositories {

dependencies {
implementation("io.timemates:sdk:$version")
implementation("io.timemates:grpc-engine:$version")
// for android
implementation("io.timemates:grpc-engine-android:$version")
implementation("io.timemates:rsocket-engine:$version")
}
```

Expand Down

0 comments on commit 07632af

Please sign in to comment.