smartlinks_core 2.0.3 copy "smartlinks_core: ^2.0.3" to clipboard
smartlinks_core: ^2.0.3 copied to clipboard

Shared configuration, identity, native bridge, and HTTP client for SmartLinks Flutter SDK modules.

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.

0
likes
130
points
228
downloads

Documentation

API reference

Publisher

verified publishersmartlinks.live

Weekly Downloads

Shared configuration, identity, native bridge, and HTTP client for SmartLinks Flutter SDK modules.

Homepage
Repository (GitLab)

License

MIT (license)

Dependencies

dio, flutter, hive_flutter

More

Packages that depend on smartlinks_core

Packages that implement smartlinks_core