client_information 2.1.4 copy "client_information: ^2.1.4" to clipboard
client_information: ^2.1.4 copied to clipboard

This is a plugin that lets you get the basic information from your application's client. It's easy to use and supports different platforms (Android, iOS, and Web).

2.1.4 #

  • chore: upgrade package uuid's version

2.1.3 #

  • fix: Problem with `osVersionCode`` number(#13)

2.1.2 #

  • doc: Update README.md

2.1.1 #

  • feat: support osVersionCode(#11)

2.1.0 #

  • feature: Adding decorator method to decorate the information.

    var information = await ClientInformation.fetch(
        // you can pass decorators to decoration the value before it return.
        decorators: ClientInformationDecorators(
          deviceId: (oriInfo, value) =>
              'prefix-$value-${oriInfo.applicationName}',
        ),
      );
    
    // or you can use extension methods like this:
    var information = await ClientInformation.fetch();
    var decoratedInfo = information.decoration(deviceId: (oriInfo, value) => '$value-some-suffix-string-here');
    
  • fix: update Android gradle setting. (#10, Thanks @pnghai)

  • doc: Update the example project & README.md

2.0.4 #

  • fix: Edge Chromium check missing(#12, Thanks @DaggeDaggmask)
  • chore: Fix code lint issues.
  • refactor: Update example project to support null-safety.

2.0.3+1 #

  • doc: Update README.md

2.0.3 #

2.0.2+2 #

  • Update document

2.0.2+1 #

  • chore: code formatter

2.0.2 #

  • fix: fix initialization on web (#4)

2.0.1 #

  • fix: Web exception when get deviceID (#1)

2.0.0 #

  • null-safety support

1.1.0+1 #

  • Fix: static analysis (pana) using stable version

1.1.0 #

  • Remove package http dependency.
  • Replace dependency 'ulid' -> 'uuid'.
  • Use pedantic.

2.0.0-nullsafety.0 #

  • Migrate package to null-safety, increase minimum SDK version to 2.12, replace dependency 'ulid' -> 'uuid'.

1.0.4 #

  • Update document.

1.0.3 #

  • Fix some document error.

1.0.2 #

  • New attribute deviceName : Show the device name like "iPhone", "iPad", "Pixel"...

  • New attribute applicationId : Show you the application ID (*Not support for web project)

  • Support test mode.

    // ...
    setUp(() async {
      ClientInformation.mockOn(
          deviceId: 'mock_device_id', osName: 'MyCustomOS');
    });
    
    tearDown(() {
      ClientInformation.mockOff();
    });
    
    test('Custom `deviceId` will be "mock_device_id"', () async {
      ClientInformation info = await ClientInformation.fetch();
      expect(info.deviceId, 'mock_device_id');
    });
    
    // ...
    
  • Update document: README.md

1.0.1 #

  • Update document: README.md
  • Remove "author" section from pubspec.yaml

1.0.0 #

  • Initial release
52
likes
150
pub points
95%
popularity

Publisher

unverified uploader

This is a plugin that lets you get the basic information from your application's client. It's easy to use and supports different platforms (Android, iOS, and Web).

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, uuid

More

Packages that depend on client_information