From 5078693a5ff23260269739cd35e921c7898d1411 Mon Sep 17 00:00:00 2001 From: Rene Luria Date: Sat, 29 Aug 2026 08:29:59 +0200 Subject: [PATCH] feat: interface GamesServices injectable --- .../kotlin/com/livrets/games/GamesServices.kt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 sharedUI/src/commonMain/kotlin/com/livrets/games/GamesServices.kt 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) {} +}