smartlinks_core

Core Flutter plugin for the SmartLinks SDK: initialization, identity, configuration, and the native bridge (SmartLinksNativeApi) used by all other modules.

Integrators: use the umbrella package smartlinks_flutter unless you need only the bridge. Full docs: repository README.

What this package provides

  • SmartLinksCore.initialize() / SmartLinksConfig
  • SmartLinksIdentityapp_user_id, promo expiration, attribution id
  • SmartLinksNativeApi — communities, blogs, AI, promo, purchase verify, ads tracking
  • SmartLinksTheme, SmartLinksAppearanceRegistry, SmartLinksAppearanceScope
  • Flutter plugin (smartlinks_core) wrapping:
    • Android: live.smartlinks:smartlinks-sdk-core
    • iOS: SmartLinksSDK/Core (~> 2.0.1)

When to depend on this package directly

  • Building a custom UI but still using SmartLinks backend APIs via the native bridge
  • Publishing a thin wrapper or internal tool that does not need feedback/community/ads UI

Usage (low-level)

import 'package:smartlinks_core/smartlinks_core.dart';

await SmartLinksCore.initialize(apiKey: 'YOUR_KEY', isDebug: true);

final communities = await SmartLinksNativeApi.getCommunities();
final userId = await SmartLinksIdentity.getAppUserId();

Prefer SmartLinks.initialize() from smartlinks_flutter for production apps.

License

MIT — see LICENSE.

Libraries