Initial commit: 91dj android client dev_1.0.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import 'device_id_native.dart'
|
||||
// ignore: uri_does_not_exist
|
||||
if (dart.library.html) 'device_id_web.dart';
|
||||
|
||||
/// SDK 内部 device_id 生成工具。
|
||||
///
|
||||
/// device_id 不再信任业务方传入值:
|
||||
/// - Android/iOS 优先读取原生平台稳定 ID;
|
||||
/// - 其它端降级生成 UUID v4 并持久化;
|
||||
/// - 任何异常都返回空字符串,由事件校验链路决定是否丢弃。
|
||||
class DeviceIdUtil {
|
||||
static Future<String> getDeviceId() => generateOrLoadDeviceId();
|
||||
}
|
||||
Reference in New Issue
Block a user