Skip to content

Commit 645e580

Browse files
committed
fix(cupertino_http): Build hook code assets check
1 parent 8227c9d commit 645e580

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

pkgs/cupertino_http/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 3.0.2
2+
3+
* Fix a [bug](https://github.com/dart-lang/http/issues/1929) where code
4+
assets were built on non-code-assets hook invocations.
5+
16
## 3.0.1
27

38
* Fix a [bug](https://github.com/dart-lang/http/issues/1925) where native

pkgs/cupertino_http/hook/build.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ import 'package:native_toolchain_c/native_toolchain_c.dart';
99

1010
void main(List<String> args) async {
1111
await build(args, (input, output) async {
12+
if (!input.config.buildCodeAssets) {
13+
return;
14+
}
1215
if (input.config.code.targetOS != OS.iOS &&
1316
input.config.code.targetOS != OS.macOS) {
1417
return;

pkgs/cupertino_http/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: cupertino_http
2-
version: 3.0.1
2+
version: 3.0.2
33
description: >-
44
A macOS/iOS Flutter plugin that provides access to the Foundation URL
55
Loading System.

0 commit comments

Comments
 (0)