masterfabric_device_identifiers 0.0.2 copy "masterfabric_device_identifiers: ^0.0.2" to clipboard
masterfabric_device_identifiers: ^0.0.2 copied to clipboard

A Flutter plugin that provides unique device identifiers for Android and iOS platforms.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:masterfabric_core/masterfabric_core.dart';
import 'package:masterfabric_device_identifiers_example/app/app.dart';
import 'package:masterfabric_device_identifiers_example/app/routes.dart' as app_routes;
import 'package:masterfabric_device_identifiers_example/app/di/injection.dart' as di;

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  
  // Initialize MasterApp components
  await MasterApp.runBefore(
    assetConfigPath: 'assets/app_config.json',
    hydrated: false,
  );
  
  // Configure dependency injection
  di.configureDependencies();
  
  // Create router
  final router = app_routes.AppRoutes.createRouter();
  
  runApp(App(router: router));
}