mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-31 02:27:08 -04:00 
			
		
		
		
	* optimize android side gradle settings * android minsdk back to 21 * remove unused package, update linter and fix lint error * clean code of 'shared module' with offical dart style guide * restore uploadProfileImage method in UserService
		
			
				
	
	
		
			19 lines
		
	
	
		
			458 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			458 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
 | |
|     var deviceId = await FlutterUdid.consistentUdid;
 | |
|     var deviceType = "";
 | |
| 
 | |
|     if (Platform.isAndroid) {
 | |
|       deviceType = "ANDROID";
 | |
|     } else if (Platform.isIOS) {
 | |
|       deviceType = "IOS";
 | |
|     }
 | |
| 
 | |
|     return {"deviceId": deviceId, "deviceType": deviceType};
 | |
|   }
 | |
| }
 |