flutter_udid 1.0.0

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 96

flutter_udid #

pub package

Plugin for getting a persistent UDID across app reinstalls on iOS and Android.

Getting Started #

import 'package:flutter_udid/flutter_udid.dart';
String udid = await FlutterUdid.udid;

This provides an UDID for both iOS and Android using the format of the corresponding platform.

PlatformFormat
iOS7946DA4E-8429-423C-B405-B3FC77914E3E
Android8af8770a27cfd182

To get a consistent formatting on both platforms use:

import 'package:flutter_udid/flutter_udid.dart';
String udid = await FlutterUdid.consistentUdid;

This will result in an UDID of the following format:
984725b6c4f55963cc52fca0f943f9a8060b1c71900d542c79669b6dc718a64b

The UDID can change after a factory reset! Additionally if a device has been updated to Android 8.0 through an OTA and the app is reinstalled the UDID may change as well due to security changes in Android 8.0. On rooted and jailbroken devices the ID can be changed, so make to take this into account. However it should not be possible to identify as another already existing user through random guessing because of the complexity of the ID.

For help getting started with Flutter, view the online documentation.

For help on editing plugin code, view the documentation.

1.0.0 #

  • Update Gradle and Kotlin plugins

0.0.3 #

  • Minor reformatting

0.0.2 #

  • Added consistentUdid to get an UDID of the same format on both platforms

0.0.1 #

  • Initial release

example/README.md

flutter_udid_example #

Demonstrates how to use the flutter_udid plugin.

Getting Started #

For help getting started with Flutter, view our online documentation.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  flutter_udid: ^1.0.0

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:flutter_udid/flutter_udid.dart';
  
Version Uploaded Documentation Archive
1.0.0 Feb 19, 2019 Go to the documentation of flutter_udid 1.0.0 Download flutter_udid 1.0.0 archive
0.0.3 Aug 16, 2018 Go to the documentation of flutter_udid 0.0.3 Download flutter_udid 0.0.3 archive
0.0.2 Aug 16, 2018 Go to the documentation of flutter_udid 0.0.2 Download flutter_udid 0.0.2 archive
0.0.1 Aug 16, 2018 Go to the documentation of flutter_udid 0.0.1 Download flutter_udid 0.0.1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
92
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
96
Learn more about scoring.

We analyzed this package on Jun 12, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.3.1
  • pana: 0.12.17
  • Flutter: 1.5.4-hotfix.2

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health issues and suggestions

Document public APIs. (-1 points)

5 out of 5 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.28.0 <3.0.0
crypto ^2.0.6 2.0.6
flutter 0.0.0
Transitive dependencies
charcode 1.1.2
collection 1.14.11
convert 2.1.1
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8