File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
## 1.2.0-wip
2
2
3
3
* Support the Cronet embedding dependency with ` --dart-define=cronetHttpNoPlay=true ` .
4
+ * Fix a bug in the documentation where ` isOwned ` is used rather than
5
+ ` closeEngine ` .
4
6
5
7
## 1.1.1
6
8
Original file line number Diff line number Diff line change @@ -38,11 +38,10 @@ void main() async {
38
38
final Client httpClient;
39
39
if (Platform.isAndroid) {
40
40
final engine = CronetEngine.build(
41
- cacheMode: CacheMode.memory,
42
- cacheMaxSize: 2 * 1024 * 1024,
43
- userAgent: 'Book Agent',
44
- );
45
- httpClient = CronetClient.fromCronetEngine(engine, isOwned: true);
41
+ cacheMode: CacheMode.memory,
42
+ cacheMaxSize: 2 * 1024 * 1024,
43
+ userAgent: 'Book Agent');
44
+ httpClient = CronetClient.fromCronetEngine(engine, closeEngine: true);
46
45
} else {
47
46
httpClient = IOClient(HttpClient()..userAgent = 'Book Agent');
48
47
}
You can’t perform that action at this time.
0 commit comments