mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-04-29 13:34:25 +02:00
feat: Distinguish between release, debug, and profile variants
Signed-off-by: validcube <pun.butrach@gmail.com>
This commit is contained in:
parent
00950c79f0
commit
64cbb68344
@ -6,9 +6,12 @@ class AboutInfo {
|
||||
static Future<Map<String, dynamic>> getInfo() async {
|
||||
final packageInfo = await PackageInfo.fromPlatform();
|
||||
final info = await DeviceInfoPlugin().androidInfo;
|
||||
const buildFlavor =
|
||||
kReleaseMode ? 'release' : (kProfileMode ? 'profile' : 'debug');
|
||||
|
||||
return {
|
||||
'version': packageInfo.version,
|
||||
'flavor': kReleaseMode ? 'release' : 'debug',
|
||||
'flavor': buildFlavor,
|
||||
'model': info.model,
|
||||
'androidVersion': info.version.release,
|
||||
'supportedArch': info.supportedAbis,
|
||||
|
Loading…
x
Reference in New Issue
Block a user