mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-10 01:01:56 +01:00
264d8d90c4
trailing commas, and sort import alphabetically
17 lines
578 B
Dart
17 lines
578 B
Dart
import 'package:device_info_plus/device_info_plus.dart';
|
|
import 'package:flutter/foundation.dart';
|
|
import 'package:package_info_plus/package_info_plus.dart';
|
|
|
|
class AboutInfo {
|
|
static Future<Map<String, dynamic>> getInfo() async {
|
|
final packageInfo = await PackageInfo.fromPlatform();
|
|
final info = await DeviceInfoPlugin().androidInfo;
|
|
return {
|
|
'version': packageInfo.version,
|
|
'flavor': kReleaseMode ? 'release' : 'debug',
|
|
'model': info.model,
|
|
'androidVersion': info.version.release,
|
|
'supportedArch': info.supportedAbis,
|
|
};
|
|
}
|
|
}
|