unsuitable001 / dart_cronet_sample

[SELECTED] Sample project for GSoC '21 - Cronet based HTTP package
https://github.com/google/cronet.dart
MIT License
2 stars 1 forks source link

giving error for unknown dependencies for chromium and ContextUtils #19

Closed asimjawad closed 3 years ago

asimjawad commented 3 years ago

I am trying to add this in a project and i am getting this error

unsuitable001 commented 3 years ago

Ah. Got it. You trying to run it on android, right? The instructions in readme isn't exactly accurate for android. I need to update that.

Problem: Some binaries are missing that aren't committed to git. Solution:

  1. Clone the repo
  2. Go to repo's root and run this
    dart run tool/get_mobile_binaries.dart androidarm64-v8a
  3. Go to your project and add this package from your local machine's path using
    cronet_sample:
    path: <cloned_repo_path>

    That's it. All good to go. Then you can use it as you like. You do NOT need to run those flutter pub run cronet_sample <platform>

Let me know how it goes. Thank you and all the best.

unsuitable001 commented 3 years ago

@asimjawad I'm including the binaries in the latest commit. So, you don't have to do anything written above :smile: . Just do flutter pub get after adding it as git dependency and you're all good to go.

asimjawad commented 3 years ago

thanks mate..

unsuitable001 commented 3 years ago

@asimjawad Hey, you can check google/cronet.dart & my fork for a lot more polished, stable and maintained code. These repositories are polished version of this repo. I'm keeping this repo for experiments and PoC only. :smiley: Anyone is invited to colab with this platform.

Flutter Support will be made available shortly via https://github.com/google/cronet.dart/issues/5

v0.0.1 of the package is available on pub.dev. Only a subset of the whole api is exposed at this moment. We'll roll out others very shortly.

Being one of the early adopters I'm notifying you about these changes :smile: Hope it works out good and looking for feedbacks.