22 lines
446 B
Dart
22 lines
446 B
Dart
import 'package:flutter/foundation.dart';
|
|
|
|
import 'package:android_id/android_id.dart';
|
|
|
|
class AppSysTool {
|
|
static const String _tag = "app系统工具";
|
|
|
|
static Future<String> getAndroidId() async {
|
|
const androidIdPlugin = AndroidId();
|
|
final String? androidId = await androidIdPlugin.getId();
|
|
return androidId ?? "";
|
|
}
|
|
|
|
static bool isProd() {
|
|
return !kDebugMode;
|
|
}
|
|
|
|
static bool isDev() {
|
|
return kDebugMode;
|
|
}
|
|
}
|