dynamic_content

Pub Package Build Status Coverage Status GitHub Issues GitHub Forks GitHub Stars GitHub License

DynamicContent is a text file (json) that provided as application assets, and might be updated from remote site (and check updates for a given ttl).

Getting Started

In your dart/flutter project add the dependency:

 dependencies:
   ...
   dynamic_content: ^1.0.0

Get cibtebt

import 'package:dynamic_content/dynamic_content.dart';

final settingsContent = DynamicContent(
    variants: [
      'https://some-remote-endpoint.org/config-${Platform.operatingSystem}.zip',
      'https://some-remote-endpoint.org/config.zip'],
    localPath: 'config.json',
    bundlePath: 'assets/config-${Platform.operatingSystem}.json');

// fetch current content (from assets or cached)
final Map<String, dynamic> adsSettings = await settingsContent.fetch();

// update ads settings from remote
await settingsContent.update();

Features and bugs

Please file feature requests and bugs at the issue tracker.

License

The Apache 2.0 License, see LICENSE.