Skip to content

Commit

Permalink
use 2024 data
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbonnin committed Mar 31, 2024
1 parent c08fccf commit 9874f95
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,13 @@ actual class ApolloClientBuilder(
request.newBuilder()
.addHeader("conference", conference)
.apply {
val token = Firebase.auth.currentUser?.getIdToken(false)?.result?.token
if (token != null) {
addHeader("Authorization", "Bearer $token")
}
/**
*
*/
// val token = Firebase.auth.currentUser?.getIdToken(false)?.result?.token
// if (token != null) {
// addHeader("Authorization", "Bearer $token")
// }
}
.build()
)
Expand Down
2 changes: 1 addition & 1 deletion shared/data/src/commonMain/graphql/operations.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fragment SessionDetails on Session {
id
}
tags
isServiceSession
#isServiceSession
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fun SessionDetails.toSession(): Session {
roomId = this.room?.id ?: "",
endsAt = this.endsAt,
startsAt = this.startsAt,
isServiceSession = isServiceSession
isServiceSession = false //isServiceSession
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import org.koin.dsl.module
actual val dataPlatformModule = module {
single { ApolloClientBuilder(
androidContext(),
"https://androidmakers-2023.ew.r.appspot.com/graphql",
"androidmakers2023")
"https://confetti-app.dev/graphql",
"androidmakers2024")
}

single<DataStore<Preferences>> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import platform.Foundation.NSUserDomainMask

@OptIn(ExperimentalForeignApi::class)
actual val dataPlatformModule = module {
single { ApolloClientBuilder("https://androidmakers-2023.ew.r.appspot.com/graphql", "androidmakers2023", "") }
single { ApolloClientBuilder("https://confetti-app.dev/graphql", "androidmakers2024", "") }

single<DataStore<Preferences>> {
createDataStore {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fun Session.toUISession(
endDate = endsAt.toInstant(eventTimeZone),
language = language,
roomId = roomId,
room = rooms[roomId]!!.name,
room = rooms[roomId]?.name ?: "unknown",
speakers = this.speakers.mapNotNull { speakers[it]?.toUISpeaker() },
isServiceSession = isServiceSession,
isFavorite = isFavorite
Expand Down

0 comments on commit 9874f95

Please sign in to comment.