vkcom / knet Goto Github PK
View Code? Open in Web Editor NEWAndroid network library with QUIC protocol supporting.
License: MIT License
Android network library with QUIC protocol supporting.
License: MIT License
CronetKnetEngine cronetKnetEngine = new CronetKnetEngine.Builder().build$cronet_release();
Hi, looks like if the http request is a PUT the request is missing a body?
Hi, we have noticed that this project does not include an x86_64 binary. This is required for Chromebooks and other devices. Crash report for reference:
2021-11-17 14:12:33.413 6772-6772/com.example E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example, PID: 6772 java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.example-4ObnE4hgI7tCiid5nvokZw==/base.apk"],nativeLibraryDirectories=[/data/app/com.example-4ObnE4hgI7tCiid5nvokZw==/lib/x86_64, /data/app/com.example-4ObnE4hgI7tCiid5nvokZw==/base.apk!/lib/x86_64, /system/lib64, /vendor/lib64]]] couldn't find "libcronet.93.0.4577.82.so" at java.lang.Runtime.loadLibrary0(Runtime.java:1012) at java.lang.System.loadLibrary(System.java:1669) at org.chromium.net.impl.CronetLibraryLoader.ensureInitialized(CronetLibraryLoader.java:71) at org.chromium.net.impl.CronetUrlRequestContext.<init>(CronetUrlRequestContext.java:154) at org.chromium.net.impl.NativeCronetEngineBuilderImpl.build(NativeCronetEngineBuilderImpl.java:32) at org.chromium.net.ExperimentalCronetEngine$Builder.build(ExperimentalCronetEngine.java:232) at com.vk.knet.cornet.CronetEngineBuilder.build(CronetEngineBuilder.kt:234) at com.vk.knet.cornet.experiment.CronetClient$Builder.cronetEngine(CronetClient.kt:507) at com.vk.knet.cornet.experiment.CronetClient$Builder.build$cronet_release(CronetClient.kt:440) at com.vk.knet.cornet.CronetKnetEngine$Builder.build$cronet_release(CronetKnetEngine.kt:82) at com.vk.knet.cornet.CronetKnetEngine$Companion.Build(CronetKnetEngine.kt:45) at com.example.Utils.KnetCronet.<clinit>(KnetCronet.kt:16) at com.example.Core.Application.onCreate(Application.java:156) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1167) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6130) at android.app.ActivityThread.access$1100(ActivityThread.java:201) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1725) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6971) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:865)
Hello: Can you update cronet-embedded? I see google upgrade to cronet-embedded: 95.4638.50
Какие rules надо для proguard? С proguard получаю ошибку java.lang.RuntimeException: Unable to find any Cronet provider. Have you included all necessary jars?
Пробовал
-keep class org.chromium.net.impl.NativeCronetProvider {
public <init>(android.content.Context);
}
С таким правилом получаю java.lang.UnsatisfiedLinkError: JNI_ERR returned from JNI_OnLoad in "/data/app/apppackage/lib/arm64/libcronet.93.0.4577.82.so"
How can I properly cancel tasks that being executed or in queue? shutdown
may not be a proper way?
I'm testing okhttp with Knet as a okhttp interceptor. When I cancel a okhttp request, knet seems not cancel correcttly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.