Skip to content

Commit

Permalink
Replace Instant with long in eventproducer usage of credentials
Browse files Browse the repository at this point in the history
This is needed for compatibility with auth 0.10.1
  • Loading branch information
michpohl committed Sep 3, 2024
1 parent 337c86e commit c27493e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flowOf
import kotlinx.datetime.Instant

class MainActivity : ComponentActivity() {

Expand Down Expand Up @@ -49,7 +48,7 @@ class MainActivity : ComponentActivity() {
clientUniqueKey = "clientUniqueKey",
grantedScopes = emptySet(),
userId = "123",
expires = Instant.DISTANT_FUTURE,
expires = Long.MAX_VALUE,
token = null,
)
return object : CredentialsProvider {
Expand Down
1 change: 0 additions & 1 deletion eventproducer/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ dependencies {

implementation(libs.dagger)
implementation(libs.kotlinxCoroutinesCore)
implementation(libs.kotlinx.datetime)
implementation(libs.retrofit)
implementation(libs.room.runtime)
implementation(libs.moshi)
Expand Down

0 comments on commit c27493e

Please sign in to comment.