mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
a54ca799b9
* update rules of analysis_options.yaml. and solved all problems * refactor: fix remaining problems --------- Co-authored-by: Ushie <ushiekane@gmail.com>
18 lines
574 B
Dart
18 lines
574 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,
|
|
'arch': info.supportedAbis.first
|
|
};
|
|
}
|
|
}
|