mirror of
https://github.com/immich-app/immich.git
synced 2024-12-21 01:39:59 +02:00
274fba1bd2
* Implement CI/CD for Android with Fastlane
19 lines
464 B
Dart
19 lines
464 B
Dart
import 'package:flutter_udid/flutter_udid.dart';
|
|
import 'dart:io' show Platform;
|
|
|
|
class DeviceInfoService {
|
|
Future<Map<String, dynamic>> getDeviceInfo() async {
|
|
// Get device info
|
|
String deviceId = await FlutterUdid.consistentUdid;
|
|
String deviceType = "";
|
|
|
|
if (Platform.isAndroid) {
|
|
deviceType = "ANDROID";
|
|
} else if (Platform.isIOS) {
|
|
deviceType = "IOS";
|
|
}
|
|
|
|
return {"deviceId": deviceId, "deviceType": deviceType};
|
|
}
|
|
}
|