The camera app that minds its own business. (for iOS)
  • Swift 98.7%
  • Ruby 0.7%
  • Python 0.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Bill Booth d7e4a9c5f2
Refresh the gallery thumbnail after a photo is obfuscated (#34)
updateImage removed the on-disk thumbnail and the shared cache entry, but the
gallery view model keeps its own published copy in photoThumbnails and never
dropped it, so the old un-obfuscated thumbnail stayed until the session locked.

ThumbnailCache now publishes photo invalidations. updateImage removes the
on-disk thumbnail first, then invalidates. The gallery drops the stale entry and
reloads that photo's thumbnail immediately.

On upgrade, a one-time purge (keyed by thumbnailFormatVersion, marker stored
in the thumbnails directory) discards all on-disk photo thumbnails so any stale
one is rebuilt from its photo.
2026-12-04 17:20:41 -08:00
.bundle Implement fastlane for testing 2025-10-12 21:11:07 -07:00
.github/workflows Fix Dependabot and CodeQL alerts (#32) 2026-12-04 08:28:31 -08:00
Configs Provide local config override option 2025-09-09 00:35:26 -07:00
docs Let promote_release run when main is ahead of origin/main 2026-12-04 09:14:07 -08:00
fastlane Make the fastlane screenshot run drive the real flow with sample photos 2026-12-03 08:43:13 -08:00
scripts Let promote_release run when main is ahead of origin/main 2026-12-04 09:14:07 -08:00
SnapSafe Refresh the gallery thumbnail after a photo is obfuscated (#34) 2026-12-04 17:20:41 -08:00
SnapSafe.xcodeproj Refresh the gallery thumbnail after a photo is obfuscated (#34) 2026-12-04 17:20:41 -08:00
SnapSafe.xcworkspace Release 1.4.0: encrypted video, alphanumeric PINs (#24) 2026-10-11 22:04:57 -07:00
SnapSafeTests Refresh the gallery thumbnail after a photo is obfuscated (#34) 2026-12-04 17:20:41 -08:00
SnapSafeUITests Fix screenshot tests running on a real device 2026-12-03 09:23:50 -08:00
.gitignore Release 1.4.0: encrypted video, alphanumeric PINs (#24) 2026-10-11 22:04:57 -07:00
.periphery.yml Release 1.4.0: encrypted video, alphanumeric PINs (#24) 2026-10-11 22:04:57 -07:00
AGENTS.md Release 1.4.0: encrypted video, alphanumeric PINs (#24) 2026-10-11 22:04:57 -07:00
crowdin.yml Update Crowdin configuration file 2025-09-16 22:18:43 -08:00
Gemfile Implement fastlane for testing 2025-10-12 21:11:07 -07:00
Gemfile.lock Fix Dependabot and CodeQL alerts (#32) 2026-12-04 08:28:31 -08:00
Localizable.xcstrings #31 Refactor/wipe trigger layering (#33) 2026-12-03 21:32:15 -08:00
PRIVACY.md Create PRIVACY.md 2025-09-24 18:23:21 -07:00
README.md Add promote_release.py and document the scripted release 2026-12-04 09:10:47 -08:00
Signing.xcconfig Release 1.4.0: encrypted video, alphanumeric PINs (#24) 2026-10-11 22:04:57 -07:00
Snap-Safe-Info.plist Declare the app single-window and add a test that guards it 2026-12-03 18:18:06 -08:00
SnapSafe.xctestplan Changing release certs 2025-10-14 23:59:22 -07:00

SnapSafe for iOS

The camera app that minds its own business.

iOS build CodeQL Advanced Codacy Badge Crowdin

Recommended iOS Settings

Apple provides a number of security features we can use on our devices to ensure the device is as secure as possible. This section outlines settings you can use to protect your device.

USB-Restricted Mode (iOS 18+)

This option controls when the USB port is deactivated. By default, this should be in the most secure setting which is a setting of: disabled. This is important because it hardens the device from attacks via the USB port. The behavior of the USB port is dependent on the lock state of the device.

Condition What the port will do
Device has been unlocked < 1 h ago Accept data from known accessories and hosts; prompt for “Trust This Computer” for new hosts
Locked ≥ 1 h New accessories are blocked until the user unlocks; previously-trusted ones still work for 30 days ➀
No accessory use for ≥ 3 d The moment the device locks, all data connections are torn down; user must unlock to re-enable ➀

To check whether you have this setting disabled, go to:

Settings → Face ID & Passcode (or Touch ID & Passcode) → Allow Access When Locked → Accessories

Verify the setting is disabled (the default).

Building, Testing & Releasing

The build, test, and release pipeline is driven by fastlane. Everything runs through bundle exec fastlane <lane>, so install the Ruby dependencies once:

bundle install

Fastlane lanes

Lane What it does
fastlane build Compiles the app for testing (build_for_testing).
fastlane test Runs the SnapSafeTests unit suite on an iPhone simulator.
fastlane run_multi_version_tests Runs the unit suite across multiple iOS versions (18.5 and 26.0).
fastlane verify_test_membership Runs the test-target membership guard on its own (see below).
fastlane build_release Builds a signed App Store IPA into ./build (gym).
fastlane beta Builds and uploads to TestFlight.
fastlane deploy Builds and uploads to App Store Connect.

Common settings live in fastlane/Scanfile (test config), fastlane/Snapfile (screenshots), and fastlane/Appfile (app identifier).

Test-target membership guard

Test files in Xcode must be explicitly added to the SnapSafeTests target. A .swift file that exists on disk but isn't a member is silently never compiled — its tests never run, while the test bundle still reports success. To prevent this, scripts/check_test_target_membership.rb fails if any .swift file under SnapSafeTests/ is not compiled by the target.

The build and test lanes run this guard first, so it is enforced both locally and in CI (CI runs fastlane test). Run it directly with:

bundle exec fastlane verify_test_membership
# or:
bundle exec ruby scripts/check_test_target_membership.rb

On failure it lists the offending files; add each to the SnapSafeTests target (Xcode → File Inspector → Target Membership) and re-run.

Continuous integration

Workflow Trigger Does
.github/workflows/build-and-test.yml push / PR to main fastlane test (membership guard + unit tests), publishes results.
.github/workflows/codeql.yml push / PR / schedule CodeQL security analysis.
.github/workflows/publish-release.yml push of a v* tag fastlane build_release → GitHub Release, then fastlane deploy → App Store Connect.
.github/workflows/notify-release.yml GitHub release published Sends a release notification.

Cutting a release

  1. Make sure main is green (the build-and-test workflow passes) and your local main is up to date.

  2. Run the release script. It bumps the version and build number, commits, and tags that commit:

    scripts/promote_release.py 1.5.0
    git push --atomic origin main v1.5.0
    
  3. The Publish iOS Release workflow builds the IPA, creates the GitHub Release, and uploads the build to App Store Connect.

See docs/HOW-TO-RELEASE.md for the full checklist.

Release signing/upload requires the repository secrets used by the workflow: the distribution certificate/profile import, and the App Store Connect API key (APP_STORE_CONNECT_API_KEY_ID, APP_STORE_CONNECT_ISSUER_ID, APP_STORE_CONNECT_API_KEY_CONTENT).

Contributing

Take a look at our development docs.

🪨 Dark Rock Studios

Dark Rock Studios is all about building Free and Open Source Software.

🐛 Found bugs?
💡 Have suggestions?
📚 Want to help translate?
🎮 Interested in our other apps?
👉 Join our community of Open Source enthusiasts on Discord!