Skip to content

Commit 64cbb68

Browse files
committed
feat: Distinguish between release, debug, and profile variants
Signed-off-by: validcube <[email protected]>
1 parent 00950c7 commit 64cbb68

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/utils/about_info.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ class AboutInfo {
66
static Future<Map<String, dynamic>> getInfo() async {
77
final packageInfo = await PackageInfo.fromPlatform();
88
final info = await DeviceInfoPlugin().androidInfo;
9+
const buildFlavor =
10+
kReleaseMode ? 'release' : (kProfileMode ? 'profile' : 'debug');
11+
912
return {
1013
'version': packageInfo.version,
11-
'flavor': kReleaseMode ? 'release' : 'debug',
14+
'flavor': buildFlavor,
1215
'model': info.model,
1316
'androidVersion': info.version.release,
1417
'supportedArch': info.supportedAbis,

0 commit comments

Comments
 (0)