Commit graph

18 commits

Author SHA1 Message Date
instant992
00479f6f98 Show sponsor badge next to names everywhere + update app icon
- Sponsor heart now appears in the chats list (DialogCell), chat header
  (ChatAvatarContainer), message author names (ChatMessageCell) and user
  lists (UserCell), not just on the profile screen
- Added ShimmerHeartDrawable.drawStatic() for cheap static rendering in
  frequently-repainted list cells; header keeps the animated shimmer
- Cells request sponsor status via SponsorHelper batch lookup and redraw
  on sponsorStatusUpdated
- Regenerate launcher icon from updated foxigram4.png
2026-06-10 01:00:16 +04:00
instant992
695de54a0a Sponsor badges for everyone + new app icon
- Sponsor checkmark now shows on ANY user's profile, not just your own
- SponsorHelper batches sponsor-status lookups by Telegram id (cached 6h)
  and posts sponsorStatusUpdated so the badge redraws when resolved
- ProfileActivity requests the lookup when opening a profile
- Replace the main launcher icon with foxigram4.png (all densities,
  legacy + adaptive foreground)
2026-06-10 00:13:37 +04:00
instant992
b4c3d9fbd6 Chats list: show balance & subscription for Telegram-linked accounts
- SponsorHelper now caches balance, expire_at, plan and telegram_linked
  from /mobile/me (keyed by Telegram id)
- New FoxAccountInfoCell: balance on the left, subscription days left on
  the right, shown as the first row above 'Archived chats'
- Only visible when the Telegram account is linked to GhostCloud/FoxCloud
- DialogsActivity refreshes on resume and updates the row on change
2026-06-09 23:40:37 +04:00
instant992
2fc29ea46d Foxi settings: drop official channel/site, point source to our repo, add update check
- Remove the Official Channel and Official Site entries
- Point 'View source code' at github.com/instant992/FoxiGram
- Add a 'Check for updates' row below 'Support FoxiGram'
2026-06-09 14:00:16 +04:00
instant992
76093b407e Sponsor heart: render sponsor.png with a moving shimmer highlight
- Bundle the GhostCloud sponsor.png as drawable-nodpi/foxsponsor_heart.png
- Draw the artwork and sweep a glossy highlight band across it, masked to
  the heart shape via the bitmap alpha (DST_IN), so it shimmers again
2026-06-09 13:17:52 +04:00
instant992
e2f2ceb26d Sponsor heart: airbrushed multicolor blend matching sponsor.png
Replace the hard gloss streak with soft overlapping color blobs (violet
top-left, blue center, orange/coral right and bottom) that drift slightly
for a subtle shimmer, matching the GhostCloud sponsor.png reference.
2026-06-09 12:59:35 +04:00
instant992
e9e9711f0b Rename to Foxi Settings, drop cloud sync, move support/sponsors into Donate
- Rename 'Neko Settings' -> 'Foxi Settings' (en/ru)
- Remove the cloud settings sync action (was broken/unneeded)
- Move 'Support the project' (t.me/vpnghostbot) and 'Top sponsors' from the
  main settings list into the 'Support FoxiGram' (Donate) screen
- Remove the Google Play billing section from the Donate screen
2026-06-09 10:17:54 +04:00
instant992
47f9aef160 Sponsor: GhostCloud labeling, curved gloss streak, support link & top sponsors
- Bulletin now reads 'Sponsor GhostCloud' + granted for 444+ rubles (en/ru)
- Heart highlight reworked: thin curved streak sweeping diagonally instead
  of an orbiting blob; palette tuned closer to the reference
- SponsorHelper.loadTopSponsors() hits mobile donors/leaderboard via X-Tg-Id
- New FoxSponsorsActivity lists the top sponsors
- Neko settings: 'Support the project' (t.me/vpnghostbot) + 'Top sponsors'
2026-06-09 09:54:31 +04:00
instant992
9b81a463a6 Sponsor heart: glossy 3D look with moving specular highlight
Replace the flat linear rainbow sweep with a glossy sticker-style heart:
diagonal purple/blue-to-orange base, soft purple glow, bottom shade, and
a moving glossy highlight orbiting inside plus a fixed top-left specular
dot for an iridescent emoji feel.
2026-06-09 09:27:11 +04:00
instant992
7eeae7fe82 Sponsor heart: rainbow gradient + restore custom emoji status
- Make the shimmering heart a full rainbow spectrum (was single-hue)
- Move heart to rightDrawable2 so the custom emoji status / premium star
  returns to its normal slot next to the name
- Add clickable rightDrawable2 support to SimpleTextView so tapping the
  heart still opens the explanation bulletin
2026-06-09 09:00:56 +04:00
instant992
323c1ff10e Sponsor badge: shimmering heart + tap-to-explain bulletin
- Replace static star with self-animating iridescent ShimmerHeartDrawable
- Move badge to clickable rightDrawable slot; tap shows a Nekogram-style
  bulletin explaining why the badge was granted
- Add en/ru strings; drop unused vector resource
2026-06-09 08:35:21 +04:00
instant992
e926e7afc6 Fix sponsor check endpoint path (/api/auth/mobile/me)
The auth_mobile router is mounted with prefix /api/auth, so the
bare /mobile/me path returned 404. Use the full path.
2026-06-09 08:09:14 +04:00
instant992
51bde550b9 Add sponsor badge next to own name on profile
- SponsorHelper queries FoxCloud /mobile/me by Telegram ID (X-Tg-Id) and caches is_sponsor per account
- Self profile shows a sponsor badge next to the name when is_sponsor is true
- Reactive refresh via new NotificationCenter.sponsorStatusUpdated global event

Verified: TMessagesProj compileReleaseJavaWithJavac succeeds.
2026-06-09 04:34:19 +04:00
instant992
d200a290f8 Support multiple named built-in proxies (5 LTE + 2 WiFi)
- XrayServers now holds a structured server list with per-entry name and local port
- XrayController builds built-in proxies from the list (createBuiltinProxies/byPort)
- ProxyInfo gains builtinName; proxy list shows the configured name
- Built-in proxies keep the same protection: read-only, not editable/shareable
- Credentials stay in git-ignored XrayServers.java; template updated

Verified: TMessagesProj compileReleaseJavaWithJavac succeeds.
2026-06-09 03:42:14 +04:00
instant992
d79c149e3e Add in-app download and silent install for GitHub updates
- ApkInstaller.downloadAndInstall downloads APK by URL with a progress dialog
- Reuses existing PackageInstaller silent-install pipeline via shared File path
- Update dialogs now download in-app instead of opening a browser
- Add UpdateDownloading string

Verified: TMessagesProj compileReleaseJavaWithJavac succeeds.
2026-06-09 03:24:22 +04:00
instant992
12792f77f3 Switch update checker to GitHub Releases
- UpdateHelper now fetches latest release from GitHub API instead of helper bot
- Compares dotted version names, prefers arm64 APK asset, falls back to release page
- Keeps TL_help_appUpdate output contract so existing update UI works unchanged
- Decouples ConfigHelper from update check
2026-06-09 03:00:30 +04:00
instant992
42a780f702 Disable helper-bot data channel, harden WebApp null-check, update branding
- Extra.getHelperBot() returns null on empty username (closes data channel)
- WebAppHelper: guard against null helper bot to prevent NPE
- Disable anti-repackaging signature check for rebranded fork
- Update launcher icons and branding assets
2026-06-09 02:33:57 +04:00
instant992
8e79f2ee9c FoxiGram: Telegram client with built-in Xray VLESS proxy
Based on Nekogram. Key additions:
- Rebrand to FoxiGram (app name, APK name, applicationId com.foxigram.app)
- Embedded Xray (VLESS+Reality) proxy client via JNI libxray.so
- Bundled hidden one-tap proxies (LTE + WiFi), read-only in UI
- Auto-restore proxy on restart, rebind to active network (LTE/WiFi)
- Server credentials externalized to git-ignored XrayServers.java (+ template)
- libxray Go source included; compiled .so, keystore, google-services.json ignored
2026-06-08 16:41:07 +04:00