alexrintt / shared-storage

Flutter plugin to work with Android external storage.
http://alexrintt.io/shared-storage/
MIT License
52 stars 26 forks source link

Build fails on latest flutter beta #150

Closed Persie0 closed 9 months ago

Persie0 commented 10 months ago

Describe the bug When building an appbundle on the latest flutter beta, you get an error. Stable works fine.

To Reproduce Run flutter build appbundle --obfuscate --split-debug-info=./build `Running Gradle task 'bundleRelease'...

...

warning: [options] source value 7 is obsolete and will be removed in a future release warning: [options] target value 7 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. Note: Recompile with -Xlint:deprecation for details. 3 warnings /opt/hostedtoolcache/flutter/3.19.0-0.1.pre-beta/x64/.pub-cache/hosted/pub.dev/shared_storage-0.8.0/lib/src/common/functional_extender.dart:28:36: Error: A value of type 'Object?' can't be returned from a function with return type 'T?'.

FAILURE: Build failed with an exception.

BUILD FAILED in 4m 34s Running Gradle task 'bundleRelease'... 275.3s Gradle task bundleRelease failed with exit code 1 Error: Process completed with exit code 1.`

Persie0 commented 9 months ago

now also on latest stable, any update?

3 warnings /opt/hostedtoolcache/flutter/3.19.0-stable/x64/.pub-cache/hosted/pub.dev/shared_storage-0.8.0/lib/src/common/functional_extender.dart:28:36: Error: A value of type 'Object?' can't be returned from a function with return type 'T?'.

alexrintt commented 9 months ago

Thanks for reporting, published a fix https://pub.dev/packages/shared_storage/versions/0.8.1.