updated packages & dependencies

This commit is contained in:
Thibault Deckers 2022-10-09 19:39:51 +02:00
parent ea96ef188a
commit 0e077b2342
8 changed files with 40 additions and 40 deletions

View file

@ -155,22 +155,22 @@ repositories {
dependencies { dependencies {
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2' implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2'
implementation 'androidx.core:core-ktx:1.9.0' implementation 'androidx.core:core-ktx:1.9.0'
implementation 'androidx.exifinterface:exifinterface:1.3.3' implementation 'androidx.exifinterface:exifinterface:1.3.4'
implementation 'androidx.multidex:multidex:2.0.1' implementation 'androidx.multidex:multidex:2.0.1'
implementation 'com.caverock:androidsvg-aar:1.4' implementation 'com.caverock:androidsvg-aar:1.4'
implementation 'com.commonsware.cwac:document:0.4.1' implementation 'com.commonsware.cwac:document:0.5.0'
implementation 'com.drewnoakes:metadata-extractor:2.18.0' implementation 'com.drewnoakes:metadata-extractor:2.18.0'
// forked, built by JitPack, cf https://jitpack.io/p/deckerst/Android-TiffBitmapFactory // forked, built by JitPack, cf https://jitpack.io/p/deckerst/Android-TiffBitmapFactory
implementation 'com.github.deckerst:Android-TiffBitmapFactory:876e53870a' implementation 'com.github.deckerst:Android-TiffBitmapFactory:876e53870a'
// forked, built by JitPack, cf https://jitpack.io/p/deckerst/pixymeta-android // forked, built by JitPack, cf https://jitpack.io/p/deckerst/pixymeta-android
implementation 'com.github.deckerst:pixymeta-android:706bd73d6e' implementation 'com.github.deckerst:pixymeta-android:706bd73d6e'
implementation 'com.github.bumptech.glide:glide:4.14.1' implementation 'com.github.bumptech.glide:glide:4.14.2'
// huawei flavor only // huawei flavor only
huaweiImplementation 'com.huawei.agconnect:agconnect-core:1.5.2.300' huaweiImplementation 'com.huawei.agconnect:agconnect-core:1.7.2.300'
kapt 'androidx.annotation:annotation:1.5.0' kapt 'androidx.annotation:annotation:1.5.0'
kapt 'com.github.bumptech.glide:compiler:4.13.0' kapt 'com.github.bumptech.glide:compiler:4.14.2'
compileOnly rootProject.findProject(':streams_channel') compileOnly rootProject.findProject(':streams_channel')
} }

View file

@ -104,9 +104,8 @@ object MimeTypes {
else -> false else -> false
} }
// as of androidx.exifinterface:exifinterface:1.3.3 // as of androidx.exifinterface:exifinterface:1.3.4
fun canEditExif(mimeType: String) = when (mimeType) { fun canEditExif(mimeType: String) = when (mimeType) {
DNG,
JPEG, JPEG,
PNG, PNG,
WEBP -> true WEBP -> true

View file

@ -13,7 +13,7 @@ buildscript {
classpath 'com.google.gms:google-services:4.3.14' classpath 'com.google.gms:google-services:4.3.14'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.2' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.2'
// HMS (used by some flavors only) // HMS (used by some flavors only)
classpath 'com.huawei.agconnect:agcp:1.5.2.300' classpath 'com.huawei.agconnect:agcp:1.7.2.300'
} }
} }

View file

@ -294,9 +294,9 @@ class AvesEntry {
bool get canRotateAndFlip => canEdit && canEditExif; bool get canRotateAndFlip => canEdit && canEditExif;
// as of androidx.exifinterface:exifinterface:1.3.3 // `exifinterface` v1.3.3 declared support for DNG, but it strips non-standard Exif tags when saving attributes,
// `exifinterface` declares support for DNG, but `exifinterface` strips non-standard Exif tags when saving attributes, // and DNG requires DNG-specific tags saved along standard Exif. So it was actually breaking DNG files.
// and DNG requires DNG-specific tags saved along standard Exif. So `exifinterface` actually breaks DNG files. // as of androidx.exifinterface:exifinterface:1.3.4
bool get canEditExif { bool get canEditExif {
switch (mimeType.toLowerCase()) { switch (mimeType.toLowerCase()) {
case MimeTypes.jpeg: case MimeTypes.jpeg:

View file

@ -95,6 +95,9 @@ class _HomePageState extends State<HomePage> {
// hide in some countries apps that force quit on permission denial // hide in some countries apps that force quit on permission denial
await [ await [
Permission.storage, Permission.storage,
// for media access on Android >=13
Permission.photos,
Permission.videos,
// to access media with unredacted metadata with scoped storage (Android >=10) // to access media with unredacted metadata with scoped storage (Android >=10)
Permission.accessMediaLocation, Permission.accessMediaLocation,
].request(); ].request();

View file

@ -19,8 +19,12 @@ class PlatformMobileServices extends MobileServices {
@override @override
Future<void> init() async { Future<void> init() async {
final result = await HmsApiAvailability().isHMSAvailable(); try {
_isAvailable = result == _hmsCoreAvailable; final result = await HmsApiAvailability().isHMSAvailable();
_isAvailable = result == _hmsCoreAvailable;
} on Exception catch (e, stack) {
debugPrint('Failed to check services availability with exception=$e, stack=$stack');
}
debugPrint('Device has Huawei Mobile Services=$_isAvailable'); debugPrint('Device has Huawei Mobile Services=$_isAvailable');
final apiKey = await AvesPlatformMetaPlatform.instance.getMetadata(manifestApiKey); final apiKey = await AvesPlatformMetaPlatform.instance.getMetadata(manifestApiKey);

View file

@ -14,7 +14,7 @@ packages:
name: _flutterfire_internals name: _flutterfire_internals
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.1" version: "1.0.2"
analyzer: analyzer:
dependency: transitive dependency: transitive
description: description:
@ -126,14 +126,14 @@ packages:
name: cloud_firestore_platform_interface name: cloud_firestore_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "5.7.6" version: "5.7.7"
cloud_firestore_web: cloud_firestore_web:
dependency: transitive dependency: transitive
description: description:
name: cloud_firestore_web name: cloud_firestore_web
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.8.9" version: "2.8.10"
collection: collection:
dependency: "direct main" dependency: "direct main"
description: description:
@ -147,7 +147,7 @@ packages:
name: connectivity_plus name: connectivity_plus
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.3.8" version: "2.3.9"
connectivity_plus_linux: connectivity_plus_linux:
dependency: transitive dependency: transitive
description: description:
@ -175,7 +175,7 @@ packages:
name: connectivity_plus_web name: connectivity_plus_web
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.2.4" version: "1.2.5"
connectivity_plus_windows: connectivity_plus_windows:
dependency: transitive dependency: transitive
description: description:
@ -238,42 +238,42 @@ packages:
name: device_info_plus name: device_info_plus
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "5.0.1" version: "5.0.5"
device_info_plus_linux: device_info_plus_linux:
dependency: transitive dependency: transitive
description: description:
name: device_info_plus_linux name: device_info_plus_linux
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "4.0.0" version: "4.0.2"
device_info_plus_macos: device_info_plus_macos:
dependency: transitive dependency: transitive
description: description:
name: device_info_plus_macos name: device_info_plus_macos
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "4.0.0" version: "4.0.2"
device_info_plus_platform_interface: device_info_plus_platform_interface:
dependency: transitive dependency: transitive
description: description:
name: device_info_plus_platform_interface name: device_info_plus_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "4.0.0" version: "4.0.1"
device_info_plus_web: device_info_plus_web:
dependency: transitive dependency: transitive
description: description:
name: device_info_plus_web name: device_info_plus_web
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "4.0.0" version: "4.0.2"
device_info_plus_windows: device_info_plus_windows:
dependency: transitive dependency: transitive
description: description:
name: device_info_plus_windows name: device_info_plus_windows
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "5.0.0" version: "5.0.2"
dynamic_color: dynamic_color:
dependency: "direct main" dependency: "direct main"
description: description:
@ -361,14 +361,14 @@ packages:
name: firebase_crashlytics name: firebase_crashlytics
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.8.12" version: "2.8.13"
firebase_crashlytics_platform_interface: firebase_crashlytics_platform_interface:
dependency: transitive dependency: transitive
description: description:
name: firebase_crashlytics_platform_interface name: firebase_crashlytics_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.2.18" version: "3.2.19"
flex_color_picker: flex_color_picker:
dependency: "direct main" dependency: "direct main"
description: description:
@ -615,7 +615,7 @@ packages:
name: logging name: logging
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.2" version: "1.1.0"
markdown: markdown:
dependency: transitive dependency: transitive
description: description:
@ -845,7 +845,7 @@ packages:
name: permission_handler_platform_interface name: permission_handler_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.8.0" version: "3.9.0"
permission_handler_windows: permission_handler_windows:
dependency: transitive dependency: transitive
description: description:
@ -937,13 +937,6 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.1" version: "3.0.1"
quiver:
dependency: transitive
description:
name: quiver
url: "https://pub.dartlang.org"
source: hosted
version: "3.1.0"
screen_brightness: screen_brightness:
dependency: "direct main" dependency: "direct main"
description: description:
@ -985,7 +978,7 @@ packages:
name: screen_brightness_windows name: screen_brightness_windows
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.1.0" version: "0.1.1"
shared_preferences: shared_preferences:
dependency: "direct main" dependency: "direct main"
description: description:
@ -1109,7 +1102,7 @@ packages:
name: sqflite name: sqflite
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.0" version: "2.1.0+1"
sqflite_common: sqflite_common:
dependency: transitive dependency: transitive
description: description:
@ -1137,7 +1130,7 @@ packages:
name: stream_transform name: stream_transform
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.0" version: "2.0.1"
streams_channel: streams_channel:
dependency: "direct main" dependency: "direct main"
description: description:
@ -1209,7 +1202,7 @@ packages:
name: tuple name: tuple
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.0" version: "2.0.1"
typed_data: typed_data:
dependency: transitive dependency: transitive
description: description:

View file

@ -86,7 +86,8 @@ dependencies:
xml: xml:
dependency_overrides: dependency_overrides:
# TODO TLAD as of 2022/06/18, latest version (v10.0.0) does not support Android 13 storage permissions # TODO TLAD as of 2022/10/09, latest version (v10.1.0) does not support Android 13 storage permissions
# `permission_handler_platform_interface` v3.9.0 added support for them but it is not effective
permission_handler_android: permission_handler_android:
git: git:
url: https://github.com/deckerst/flutter-permission-handler url: https://github.com/deckerst/flutter-permission-handler