subrascasse

Sub Rascasse: an iPhone dive log for Subsurface cloud storage, with a pure-Swift git client (GPL-2.0)
git clone https://git.schurger.org/subrascasse.git
Log | Files | Refs | README | LICENSE

commit 44108c7e74907f935416e1041a4f3500a1bccd5a
parent da700f3c9eb4035d74276e86065d5fbe9cf452d5
Author: Jean Schurger <jean@schurger.org>
Date:   Sat, 14 Nov 2026 14:13:11 -0500

Turn on the iCloud backup of the certification cards

The iCloud container now exists and is assigned to the app identifier.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K7deYG3yp7VDUZJzSBkvTc

Diffstat:
Mfastlane/Fastfile | 4++--
Mproject.yml | 25++++++++++++-------------
2 files changed, 14 insertions(+), 15 deletions(-)

diff --git a/fastlane/Fastfile b/fastlane/Fastfile @@ -76,9 +76,9 @@ platform :ios do end texts = { "fr-CA" => ["Votre carnet de plongée Subsurface sur iPhone : lecture, profils, modification hors ligne, synchronisation avec le nuage Subsurface. Application indépendante de l'équipe de Subsurface.", - "0.5 : Nouveau : (1) Modifier une plongée permet de saisir les bouteilles et le lest. (2) Réglages, Cartes de certification : agence, numéro, photo recto et verso, affichage plein écran (gardées sur l'iPhone ; la copie automatique dans iCloud Drive arrive dans une prochaine version). (3) Fusion de plongées depuis la liste (+) ou depuis la fiche (menu ...)."], + "0.5 : Nouveau : sauvegarde automatique des cartes de certification dans iCloud Drive. À vérifier : Réglages, Cartes de certification, ajouter une carte ; le pied de la liste doit indiquer la sauvegarde iCloud, et un dossier Sub Rascasse doit apparaître dans Fichiers, iCloud Drive. Aussi dans la 0.5 : bouteilles et lest dans Modifier, fusion de plongées depuis la liste (+) ou la fiche (menu ...)."], "en-CA" => ["Your Subsurface dive log on iPhone: browse, profiles, offline editing, sync with Subsurface cloud storage. Independent from the Subsurface team.", - "0.5: New: (1) Editing a dive now covers cylinders and weights. (2) Settings, Certification cards: agency, number, photo of each side, full screen display (kept on the iPhone; the automatic copy to iCloud Drive comes in a later version). (3) Merging dives from the list (+) or from a dive page (... menu)."], + "0.5: New: automatic backup of the certification cards in iCloud Drive. To check: Settings, Certification cards, add a card; the footer of the list should mention the iCloud backup, and a Sub Rascasse folder should appear in Files, iCloud Drive. Also in 0.5: cylinders and weights in Edit, merging dives from the list (+) or a dive page (... menu)."], } _, locs = asc(:get, "/v1/apps/#{app.id}/betaAppLocalizations") texts.each do |locale, (description, _)| diff --git a/project.yml b/project.yml @@ -51,17 +51,16 @@ targets: # French translation in App/InfoPlist.xcstrings. NSPhotoLibraryUsageDescription: "Sub Rascasse flags the dives you have photos or videos of and shows them on the dive page. They stay on your iPhone; nothing is sent." NSCameraUsageDescription: "Sub Rascasse uses the camera to photograph your certification cards." - # iCloud backup of the certification cards. It needs the iCloud container, which only the account holder can - # create (developer portal > Identifiers > iCloud Containers > iCloud.org.schurger.subrascasse, then assign - # it to the app identifier: an App Store Connect API key cannot do it). Once it exists: set this to true and - # uncomment NSUbiquitousContainers below and the three iCloud entitlements further down. - CardsICloudBackup: false + # iCloud backup of the certification cards. The iCloud container was created by hand in the developer portal + # (Identifiers > iCloud Containers, then assigned to the app identifier): an App Store Connect API key cannot + # do it. Without it: set this to false and remove NSUbiquitousContainers and the iCloud entitlements. + CardsICloudBackup: true # The cards folder shows up in the Files app, under iCloud Drive. - # NSUbiquitousContainers: - # iCloud.org.schurger.subrascasse: - # NSUbiquitousContainerIsDocumentScopePublic: true - # NSUbiquitousContainerName: Sub Rascasse - # NSUbiquitousContainerSupportedFolderLevels: Any + NSUbiquitousContainers: + iCloud.org.schurger.subrascasse: + NSUbiquitousContainerIsDocumentScopePublic: true + NSUbiquitousContainerName: Sub Rascasse + NSUbiquitousContainerSupportedFolderLevels: Any NSBluetoothAlwaysUsageDescription: "Sub Rascasse uses Bluetooth to download the dives stored in your dive computer." # Open Remora opens "subrascasse://open-remora" after dropping a dive. CFBundleURLTypes: @@ -73,9 +72,9 @@ targets: # Folder shared with Open Remora (dives from the watch, to be imported). com.apple.security.application-groups: [group.org.schurger.dive] # iCloud Drive folder where the certification cards are backed up. - # com.apple.developer.icloud-container-identifiers: [iCloud.org.schurger.subrascasse] - # com.apple.developer.ubiquity-container-identifiers: [iCloud.org.schurger.subrascasse] - # com.apple.developer.icloud-services: [CloudDocuments] + com.apple.developer.icloud-container-identifiers: [iCloud.org.schurger.subrascasse] + com.apple.developer.ubiquity-container-identifiers: [iCloud.org.schurger.subrascasse] + com.apple.developer.icloud-services: [CloudDocuments] schemes: DiveLog: build: