diff --git a/sharedUI/src/commonMain/kotlin/com/livrets/games/GamesServices.kt b/sharedUI/src/commonMain/kotlin/com/livrets/games/GamesServices.kt new file mode 100644 index 0000000..4949036 --- /dev/null +++ b/sharedUI/src/commonMain/kotlin/com/livrets/games/GamesServices.kt @@ -0,0 +1,15 @@ +package com.livrets.games + +interface GamesServices { + suspend fun signIn(): Boolean + suspend fun isSignedIn(): Boolean + suspend fun submitScore(leaderboardId: String, score: Long): Boolean + suspend fun showLeaderboard(leaderboardId: String) +} + +object NoopGamesServices : GamesServices { + override suspend fun signIn(): Boolean = false + override suspend fun isSignedIn(): Boolean = false + override suspend fun submitScore(leaderboardId: String, score: Long): Boolean = false + override suspend fun showLeaderboard(leaderboardId: String) {} +}