mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2025-05-10 12:35:36 +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
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue