New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] 'flutter_background' blocking build #77
Comments
Hey @andreystavitsky and @stx, and thanks for letting me know. For now, you may be able to use a dependency override in your pubspec.yaml. To depend on a git commit, see https://dart.dev/tools/pub/dependencies#git-packages. To override a dependency, see https://dart.dev/tools/pub/dependencies#dependency-overrides. I won't be able to fix this in this project until a published version is released (I've pinged the author of the package in the issue you linked), because pub.dev packages cannot depend on packages from Git. Please try this and let me know how it works out! |
Hello @JaffaKetchup
|
That's what I hoped @andreystavitsky :) |
@stx @andreystavitsky With v7 release fast approaching, I'd like to ask a question. Do you think it would be more appropriate to have a seperate package providing the background download functionality? Pros:
Cons
|
@JaffaKetchup my vote is for separate package P.S. Happy New Year and thanks for your work! |
And the same for the import/export functionality, or is that too far? Happy new years to both of you as well :) |
I think that main purpose of this plugin is caching, and as for me, I currently needed caching only. Import\export and background downloading, for the other hand, look more suitable for each other. It's my personal opinion, of course. |
@JaffaKetchup Intuitively, when I saw this package I was surprised when I read about background downloading. I think almost everyone looking for this package is just looking for your typical caching (make network request, save it and reuse it.) I think background downloading and loading is a specific, heavy enough load to justify its own package. Hope that helps! |
Thanks guys :) I think I'm going to seperate both import/export and background bulk download (I'll leave bulk download in base, as it doesn't add any dependencies) into their own seperate packages. |
I agree with the general consensus. This plugin should concentrate on caching and import/export/bg_download can be handled separately. |
FYI, this is another error you may get:
Just copy-pasting if someone is searching with these keywords |
@stx Can you change your override to point to the new version on pub.dev? Let me know if it works. |
@JaffaKetchup I can confirm that with 1.2.0 my application was successfully built. |
What is the bug?
Due to outdated gradle version in currentrly published flutter_background plugin, this plugin cannot be built.
There's an issue for this.
That was fixed in fcce0d57525802b6f720dee0a080a10a0feaca4b, but published version of that plugin does not contain this commit.
> Could not resolve com.google.jimfs:jimfs:1.1. Required by: project :flutter_background > com.android.tools.build:gradle:3.5.0 > com.android.tools.build:builder:3.5.0 > com.android.tools:sdklib:26.5.0 > com.android.tools:repository:26.5.0 > Could not resolve com.google.jimfs:jimfs:1.1. > Could not get resource 'https://jcenter.bintray.com/com/google/jimfs/jimfs/1.1/jimfs-1.1.pom'. > Could not HEAD 'https://jcenter.bintray.com/com/google/jimfs/jimfs/1.1/jimfs-1.1.pom'. > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.5.1/userguide/build_environment.html#gradle_system_properties > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
What is the expected behaviour?
Build successful
How can we reproduce this issue?
No response
Do you have a potential solution?
No response
Can you provide any other information?
No response
Platforms Affected
Android
Severity
Fatal: Causes the application to crash
Frequency
Consistently: Always occurs at the same time and location
Requirements
flutter doctor
finds no relevant issuesThe text was updated successfully, but these errors were encountered: