mirror of
https://github.com/immich-app/immich.git
synced 2024-12-13 11:54:52 +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};
|
|
}
|
|
}
|