From d480c1a0cd283ace51de6f0e6818ba2158306b81 Mon Sep 17 00:00:00 2001 From: Rene Luria Date: Fri, 28 Aug 2026 16:44:39 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20ajustements=20suite=20=C3=A0=20la=20v?= =?UTF-8?q?=C3=A9rification=20multi-cibles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/superpowers/plans/2026-08-28-swipe-back.md | 6 +++--- .../kotlin/com/livrets/data/SystemFileSystem.android.kt | 5 +++++ .../commonMain/kotlin/com/livrets/data/HistoryRepository.kt | 2 +- .../commonMain/kotlin/com/livrets/data/SystemFileSystem.kt | 5 +++++ .../iosMain/kotlin/com/livrets/data/SystemFileSystem.ios.kt | 5 +++++ .../jvmMain/kotlin/com/livrets/data/SystemFileSystem.jvm.kt | 5 +++++ 6 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 sharedUI/src/androidMain/kotlin/com/livrets/data/SystemFileSystem.android.kt create mode 100644 sharedUI/src/commonMain/kotlin/com/livrets/data/SystemFileSystem.kt create mode 100644 sharedUI/src/iosMain/kotlin/com/livrets/data/SystemFileSystem.ios.kt create mode 100644 sharedUI/src/jvmMain/kotlin/com/livrets/data/SystemFileSystem.jvm.kt diff --git a/docs/superpowers/plans/2026-08-28-swipe-back.md b/docs/superpowers/plans/2026-08-28-swipe-back.md index d8de1e9..5ef0657 100644 --- a/docs/superpowers/plans/2026-08-28-swipe-back.md +++ b/docs/superpowers/plans/2026-08-28-swipe-back.md @@ -401,7 +401,7 @@ git commit -m "feat: swipe-back vers l'accueil depuis les scores et l'historique - Consumes: tout le Task 2 - Produces: validation build complet (pré-requis merge) -- [ ] **Step 1: Build complet multi-cibles** +- [x] **Step 1: Build complet multi-cibles** Run: `./gradlew build` Expected: BUILD SUCCESSFUL (jvmTest 24/24, assembleDebug Android, targets iOS, desktop) @@ -409,12 +409,12 @@ Expected: BUILD SUCCESSFUL (jvmTest 24/24, assembleDebug Android, targets iOS, d Si l'outillage iOS natif n'est pas disponible sur la machine, fallback équivalent : `./gradlew :sharedUI:compileKotlinIosSimulatorArm64 :androidApp:assembleDebug :desktopApp:jar` -- [ ] **Step 2: Vérifier les tests une dernière fois** +- [x] **Step 2: Vérifier les tests une dernière fois** Run: `./gradlew :sharedUI:jvmTest` Expected: 24/24 PASS -- [ ] **Step 3: Commit (seulement si des ajustements ont été nécessaires)** +- [x] **Step 3: Commit (seulement si des ajustements ont été nécessaires)** ```bash git add sharedUI/src docs/superpowers/plans/2026-08-28-swipe-back.md diff --git a/sharedUI/src/androidMain/kotlin/com/livrets/data/SystemFileSystem.android.kt b/sharedUI/src/androidMain/kotlin/com/livrets/data/SystemFileSystem.android.kt new file mode 100644 index 0000000..404e003 --- /dev/null +++ b/sharedUI/src/androidMain/kotlin/com/livrets/data/SystemFileSystem.android.kt @@ -0,0 +1,5 @@ +package com.livrets.data + +import okio.FileSystem + +actual val systemFileSystem: FileSystem = FileSystem.SYSTEM diff --git a/sharedUI/src/commonMain/kotlin/com/livrets/data/HistoryRepository.kt b/sharedUI/src/commonMain/kotlin/com/livrets/data/HistoryRepository.kt index 171a0eb..94dbc2e 100644 --- a/sharedUI/src/commonMain/kotlin/com/livrets/data/HistoryRepository.kt +++ b/sharedUI/src/commonMain/kotlin/com/livrets/data/HistoryRepository.kt @@ -10,7 +10,7 @@ import okio.Path class HistoryRepository( private val filePath: Path, - private val fileSystem: FileSystem = FileSystem.SYSTEM, + private val fileSystem: FileSystem = systemFileSystem, ) { private val json = Json { ignoreUnknownKeys = true } diff --git a/sharedUI/src/commonMain/kotlin/com/livrets/data/SystemFileSystem.kt b/sharedUI/src/commonMain/kotlin/com/livrets/data/SystemFileSystem.kt new file mode 100644 index 0000000..34f9bb6 --- /dev/null +++ b/sharedUI/src/commonMain/kotlin/com/livrets/data/SystemFileSystem.kt @@ -0,0 +1,5 @@ +package com.livrets.data + +import okio.FileSystem + +expect val systemFileSystem: FileSystem diff --git a/sharedUI/src/iosMain/kotlin/com/livrets/data/SystemFileSystem.ios.kt b/sharedUI/src/iosMain/kotlin/com/livrets/data/SystemFileSystem.ios.kt new file mode 100644 index 0000000..404e003 --- /dev/null +++ b/sharedUI/src/iosMain/kotlin/com/livrets/data/SystemFileSystem.ios.kt @@ -0,0 +1,5 @@ +package com.livrets.data + +import okio.FileSystem + +actual val systemFileSystem: FileSystem = FileSystem.SYSTEM diff --git a/sharedUI/src/jvmMain/kotlin/com/livrets/data/SystemFileSystem.jvm.kt b/sharedUI/src/jvmMain/kotlin/com/livrets/data/SystemFileSystem.jvm.kt new file mode 100644 index 0000000..404e003 --- /dev/null +++ b/sharedUI/src/jvmMain/kotlin/com/livrets/data/SystemFileSystem.jvm.kt @@ -0,0 +1,5 @@ +package com.livrets.data + +import okio.FileSystem + +actual val systemFileSystem: FileSystem = FileSystem.SYSTEM