API 30: improved media store xmp value in fullscreen debug page

This commit is contained in:
Thibault Deckers 2020-07-19 19:04:56 +09:00
parent 6bd590cde2
commit c86af1945f
2 changed files with 6 additions and 2 deletions

View file

@ -41,7 +41,7 @@ if (keystorePropertiesFile.exists()) {
} }
android { android {
compileSdkVersion 29 // latest (or latest-1 if the sources of latest SDK are unavailable) compileSdkVersion 30 // latest (or latest-1 if the sources of latest SDK are unavailable)
lintOptions { lintOptions {
disable 'InvalidPackage' disable 'InvalidPackage'
@ -54,7 +54,7 @@ android {
// but Flutter (as of v1.17.3) fails to run in release mode when using Gradle plugin 4.0: // but Flutter (as of v1.17.3) fails to run in release mode when using Gradle plugin 4.0:
// https://github.com/flutter/flutter/issues/58247 // https://github.com/flutter/flutter/issues/58247
minSdkVersion 24 minSdkVersion 24
targetSdkVersion 29 // same as compileSdkVersion targetSdkVersion 30 // same as compileSdkVersion
versionCode flutterVersionCode.toInteger() versionCode flutterVersionCode.toInteger()
versionName flutterVersionName versionName flutterVersionName
manifestPlaceholders = [googleApiKey:keystoreProperties['googleApiKey']] manifestPlaceholders = [googleApiKey:keystoreProperties['googleApiKey']]

View file

@ -1,4 +1,5 @@
import 'dart:collection'; import 'dart:collection';
import 'dart:typed_data';
import 'package:aves/model/image_entry.dart'; import 'package:aves/model/image_entry.dart';
import 'package:aves/model/image_metadata.dart'; import 'package:aves/model/image_metadata.dart';
@ -168,6 +169,9 @@ class _FullscreenDebugPageState extends State<FullscreenDebugPage> {
} }
value += ' (${DateTime.fromMillisecondsSinceEpoch(v)})'; value += ' (${DateTime.fromMillisecondsSinceEpoch(v)})';
} }
if (key == 'xmp' && v != null && v is Uint8List) {
value = String.fromCharCodes(v);
}
return MapEntry(key, value); return MapEntry(key, value);
})); }));
return InfoRowGroup(data); return InfoRowGroup(data);