We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8d23d3 commit 1465006Copy full SHA for 1465006
pkgs/cronet_http/lib/src/cronet_client.dart
@@ -125,7 +125,8 @@ class CronetEngine {
125
bool? enableQuic,
126
String? storagePath,
127
String? userAgent}) {
128
- final builder = jb.CronetEngine$Builder(Jni.androidApplicationContext);
+ final builder = jb.CronetEngine$Builder(
129
+ JObject.fromReference(Jni.getCachedApplicationContext()));
130
131
try {
132
if (storagePath != null) {
pkgs/cronet_http/pubspec.yaml
@@ -13,11 +13,11 @@ dependencies:
13
sdk: flutter
14
http: ^1.5.0
15
http_profile: ^0.1.0
16
- jni: ^0.15.2
+ jni: ^0.14.2
17
18
dev_dependencies:
19
dart_flutter_team_lints: ^3.0.0
20
- jnigen: ^0.15.0
+ jnigen: ^0.14.2
21
xml: ^6.1.0
22
yaml_edit: ^2.0.3
23
0 commit comments