From 64cbb68344886bfcc8c41bbffb86d9d0cc51fa74 Mon Sep 17 00:00:00 2001 From: validcube Date: Thu, 6 Mar 2025 23:12:35 +0700 Subject: [PATCH] feat: Distinguish between release, debug, and profile variants Signed-off-by: validcube --- lib/utils/about_info.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/utils/about_info.dart b/lib/utils/about_info.dart index 0b7dcffc..76a5b805 100644 --- a/lib/utils/about_info.dart +++ b/lib/utils/about_info.dart @@ -6,9 +6,12 @@ class AboutInfo { static Future> 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,