-
Notifications
You must be signed in to change notification settings - Fork 383
🚀 Use org.chromium.net:cronet-embedded
instead of com.google.android.gms:play-services-cronet
#842
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
Conversation
48d90b0
to
ed2b4d3
Compare
Wouldn't this change increase the packaged size of applications significantly? A note on the exoplayer site suggests that the size increase would be ~8MB. |
Yes, but with phones that's unable to use GMS, the GMS version won't get any available instances of Cronet. |
As we discussed in the bug (#807), I think that we should have two separate packages here and the developer can decide whether they want to have a GPS dependency or not. |
So as I said in #807 (comment), a CI that writes different dependency and publish another package would be okay too. WDYT? |
In principle I like the idea! I have two concerns:
|
It's easy to publish packages within a monorepo or nested repo, just need to use matrix when running jobs. See https://github.com/cfug/diox/blob/main/.github/workflows/publish.yml
Yes, that's the minimum requirement, we can run a Dart (or Shell) script during the job which won't require any manual tweak. |
I think we could symlink the same |
You'll have to deal with publishing scripts eventually because pub doesn't support symlink publishing. |
It doesn't? I thought the new implementation supported them. If it doesn't, we can file an issue and see how hard it would be to make them work. I can't imagine it should be too hard. |
|
And also, this will increase the complexities when maintaining two packages. Considering the current cronet adds other implementations without the symlinked, they will have to maintain with more commits. |
Close in favor of #853. |
Resolves #807.
We can discuss the intention to use or not to use GMS-based dependencies further.
Cronet represent
org.chromium.net
instead of as part of Google Play Services. So it should be using theorg.chromium.net
, the implementation code in the package remains valid after the change.