kitty_sdk 0.5.1
kitty_sdk: ^0.5.1 copied to clipboard
Kitty Flutter SDK — unified package for device fingerprint attribution (Flare) and authentication, user management, licenses & subscriptions (Account) against the Kitty Launch platform APIs.
Kitty Flutter SDK #
Unified Flutter SDK for the Kitty Launch platform — combines Flare (device fingerprint attribution) and Account (authentication, user management, licenses, subscriptions) in a single package.
Install #
dependencies:
kitty_sdk: ^0.1.0
Quick Start #
import 'package:kitty_sdk/kitty_sdk.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await KittySdk.initialize(
config: KittySdkConfig(
projectId: 'proj_xxx',
accountBaseUrl: '<your-account-api-url>',
flareBaseUrl: '<your-flare-api-url>',
),
);
runApp(const MyApp());
}
Usage #
Flare — fingerprint identification #
final match = await KittySdk.flare.identify();
if (match != null) {
print('Matched! uid=${match.uid} type=${match.matchType}');
}
Account — authentication #
final account = await KittySdk.account.loginWithPassword(
email: 'user@example.com',
password: 'secret',
);
KittySdk.account.accountStream.listen((account) {
// React to auth state changes
});
Account — licenses #
final user = KittySdk.account.currentAccount;
final license = user?.bestLicense;
if (license != null && license.isActive) {
// User has active license
}
Modules #
| Module | Access | Description |
|---|---|---|
| Flare | KittySdk.flare |
Device fingerprint identification & purchase attribution |
| Account | KittySdk.account |
Auth, user management, licenses, subscriptions |