Skip to content

refactor(app): rename whisper to shept - #19

Open
jsfraz wants to merge 182 commits into
mainfrom
development
Open

jsfraz wants to merge 182 commits into
mainfrom
development

Conversation

@jsfraz

@jsfraz jsfraz commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Renames the Flutter app to Shept and retires Firebase.

  • name: shept, own imports and both client dependencies on v0.5.0
  • Display name, Linux window title, notification channels and icon, release asset name
  • Android applicationId/namespace and iOS bundle IDs → cz.josefraz.shept; Kotlin package moved
  • Wire format whisperMsg → sheptMsg, secure-storage keys, documents dir, method channel
  • Firebase dependencies and gradle plugin commented out; FCM code kept but commented (Firebase is being removed)

Breaking: the new application ID installs as a separate app, so existing installs do not upgrade and local data is not migrated.

252 tests pass; analyzer reports only pre-existing infos.

Flutter 3.47.9 / Dart 3.13.7 toolchain. Migrated file_picker to 13.x API.
- flutter-ci.yml: format on changed files, analyze, test, secret scan
- skip CI for fork pull requests, which cannot read repository secrets
- exclude build_runner output from analysis
- adapt media upload and download call sites to the regenerated client
The backlog is tracked outside the repository now; keeping a second copy in the
README only made it drift.
Gradle 8.12 is below Flutter 3.47's minimum and flutter_local_notifications 23
requires compileSdk 37, which needs AGP 9.

- Gradle 9.9.1, AGP 9.5.1, Kotlin 2.4.21, google-services 4.6.0
- compileSdk 37, Java 11, Kotlin compilerOptions DSL
- drop Jetifier, enable the resValues build feature (off by default in AGP 9)
- mcp_toolkit 7.0.1 initialised in debug builds only
- README/AGENTS document the global OpenCode MCP setup and its limits
- ignore .flutter_mcp and .mcp_screenshots
record 7.2.0 (replaces record_ios/macos with record_darwin), objective_c,
shared_preferences and other in-range bumps. Major versions stay blocked by
hive_generator (analyzer <7) and by the mcp_toolkit 7.0.1 pin.
getToken() and onTokenRefresh are deprecated in firebase_messaging 17; the
replacement registers the app instance and delivers its Firebase Installation
ID. The server now sends to that FID.
The installation-ID API stays off unless firebase_messaging_installation_id_enabled
sits at application level; meta-data under <activity> is ignored. Also clear the
pending FID once the server accepted it, so the 30s retry loop stops re-sending.
Firebase reads default_notification_channel_id at application level, so the
copy under <activity> was ignored and pushes landed in the silent fallback
channel. The referenced channel is now created at startup, otherwise Firebase
logs a missing-channel warning and falls back anyway.
app_icon.png is an opaque RGB launcher icon, so Android (which draws only the
alpha channel) rendered it as a solid square. The new ic_stat_whisper set is a
white ghost silhouette with transparent eyes/smile/whistle, used by both FCM
and local notifications.
Chat Info gets a theme row that opens the existing color picker and stores the
seed color per contact in the theme Hive box (chatTheme:<userId>), plus a reset
row back to the global theme. ChatPage wraps its body in a Theme seeded with the
override and reloads it when returning from Chat Info.
Chat Info now shares the same seeded theme as the conversation, so its text and
app bar follow the chat color. The ThemeData construction moved to ThemeUtils so
both pages build it the same way.
Shows image, GIF and video messages that already have a local file, newest
first, in a three-column grid; tapping opens MediaViewerPage. Voice messages and
attachments that are still downloading are left out. Thumbnails are decrypted on
demand; videos show a play tile because there is no thumbnail generator.
The attachment sheet's GIF entry no longer opens the file picker: it opens a
KLIPY page with trending GIFs and debounced search, then downloads the chosen
animated webp/gif and sends it through the normal E2E media pipeline. The app
key comes from --dart-define=KLIPY_API_KEY; without it the page explains that
GIF search is not configured.

The message field also accepts image/gif and image/webp inserted by the system
keyboard (Gboard), mapping both to GIF media.
The client-side KLIPY integration is gone (client, picker page, test and the
GIF entry in the attachment sheet), so the app no longer talks to a third-party
provider: a server-side proxy was rejected as too much new surface for the
metadata it would hide. Keyboard-inserted GIF/WebP still works; there is no
file-based GIF upload anymore.
Image.memory was laid out at the bitmap's intrinsic size, so a 320px GIF sat as
a small tile in the middle of the black viewer. SizedBox.expand + BoxFit.contain
fills the screen (letterboxed) and keeps pinch-zoom working.
There is no server password (auth is RSA), so this changes the app lock and
the at-rest encryption key: the profile box and every media file are
re-encrypted under the key derived from the new password, then the bcrypt hash
is swapped. Media is staged as .new files and only swapped in after the profile
is written, and the profile box is backed up first, so a failure keeps the old
password valid. Biometric unlock stores a copy of the key and is updated (or
disabled) after the change.

Also fixes writeTempBytes writing plaintext GIFs into the encrypted media dir.
A share that arrives while the app is locked must not open a contact picker
over the password screen, so the inbox starts with Home instead of at launch.
Text and URL shares are sent as text messages rather than being read as file
paths, and text/plain is an explicit share target.
A note that reaches its end now asks for the next one in the chat, the
way a finished voice message does. MediaAutoplay (renamed from
VoiceAutoplay) owns both chains: it skips the other media type, stops at
our own message and at the end of the chat, and skips a note without a
local copy.

The ring is inset to sit on the video's circle rather than on the
bubble's clip edge, where it was shaved flat at all four sides, and the
time label moved to the bottom of the note.
A playing note grows to 230 dp and, once less than half of its circle is
in view, keeps playing in a 144 dp copy at the top right, under the
pinned-message strip. Tap pauses it, a horizontal swipe throws it away
and stops playback.

The circle keeps its player, so the inline view and the copy render one
video without restarting it, and only one of them builds a VideoPlayer at
a time. The bubble reserves the grown size so starting or finishing a
note never re-lays the chat out under the user's thumb, and the note
stays alive (keep-alive) while it is the live one - without that its
player would die the moment it left the viewport.

Visibility is measured against the settled list: a rubber-band bounce
drags the whole list with the finger, which used to make the copy blink
and latch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant