Optional standalone Bansify Accounts app (com.bansify.accounts) and shared Android Account SDK (:core + :ui) for the Bansify ecosystem (Mail, Drive, Kiwi Store, PlusTube, Notes, Calendar). Minimum Android API: 26.
- Zero mandatory central app: Installing standalone
com.bansify.accountsis optional. Every Bansify app works independently on day one, in any install order, and keeps functioning if any other Bansify app is uninstalled. - Per-app hardware-backed credentials: Each app holds its own OAuth client-scoped tokens (
EncryptedTokenStorebacked by Tink + AndroidKeyStore undernoBackupFilesDir, strictly fail-closed). Refresh tokens are never shared across apps. - Distributed cross-app discovery: With
BrokerPolicy.PeerDiscovery, verified sibling Bansify apps exchange zero-token account directory snapshots (AccountDirectoryProvider) verified viaBinder.getCallingUid()+PackageManagersigning-certificate fingerprints so users see"Continue as <name>"across apps without duplicating sign-in friction. - FOSS / untrusted builds: Setting
BrokerPolicy.Disableddisables all cross-app IPC and falls back cleanly to Custom Tabs PKCE browser login. - Authentic web sign-in & shared M3 management UI: Login/signup/passkeys/2FA/password updates happen inside existing
accounts.bansify.comweb flows via Custom Tabs PKCE (S256). Native:uiprovides the full 6-section account dashboard matchingaccounts.bansify.com/meplus embeddable toolbar avatar buttons, switcher sheets, settings cards, and error recovery banners in English and Hindi.
| Module | Responsibility |
|---|---|
:core |
OAuth PKCE client, EncryptedTokenStore, SessionManager, PeerBrokerClient, AccountDirectoryProvider, network-hop-safe authInterceptor (zero Compose dependency) |
:ui |
Shared Material 3 GothwadAccountsScreen, AccountManagementActivity, GothwadAccountAvatarButton, GothwadAccountSwitcherSheet, GothwadAccountSettingsCard, EN/HI strings |
:app |
Standalone com.bansify.accounts launcher app |
:sample |
Multi-flavor (alpha + beta) host app demonstrating embedded SDK integration and cross-app discovery side by side |
python3 tools/check_docs.py && python3 tools/check_android_scaffold.py
./gradlew \
:core:testDebugUnitTest :ui:testDebugUnitTest \
:core:lintDebug :ui:lintDebug :app:lintDebug :sample:lintAlphaDebug :sample:lintBetaDebug \
:app:assembleDebug :sample:assembleAlphaDebug :sample:assembleBetaDebug \
:core:publishReleasePublicationToMavenLocal :ui:publishReleasePublicationToMavenLocal