From 6f4b68f862ed4ec2ddbb39df9ac9987455fe7bc9 Mon Sep 17 00:00:00 2001 From: Alex Li Date: Tue, 1 Aug 2023 20:31:52 +0800 Subject: [PATCH 1/4] Update path_filter.dart --- lib/src/filter/path_filter.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/src/filter/path_filter.dart b/lib/src/filter/path_filter.dart index 375c8369..cf3c819a 100644 --- a/lib/src/filter/path_filter.dart +++ b/lib/src/filter/path_filter.dart @@ -1,6 +1,8 @@ // Copyright 2018 The FlutterCandies author. All rights reserved. // Use of this source code is governed by an Apache license that can be found // in the LICENSE file. +import 'dart:math'; + import '../managers/photo_manager.dart'; import '../types/entity.dart'; @@ -239,8 +241,7 @@ extension PMDarwinAssetCollectionSubtypeExt on PMDarwinAssetCollectionSubtype { case PMDarwinAssetCollectionSubtype.smartAlbumCinematic: return 218; case PMDarwinAssetCollectionSubtype.any: - // pow(2, 63) - 1; - return 9223372036854775807; + return math.pow(2, 63) - 1; } } From 953a4176d074f72731f1ddad125581ac29995372 Mon Sep 17 00:00:00 2001 From: Alex Li Date: Tue, 1 Aug 2023 20:39:07 +0800 Subject: [PATCH 2/4] Update path_filter.dart --- lib/src/filter/path_filter.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/filter/path_filter.dart b/lib/src/filter/path_filter.dart index cf3c819a..18a1cc97 100644 --- a/lib/src/filter/path_filter.dart +++ b/lib/src/filter/path_filter.dart @@ -1,7 +1,7 @@ // Copyright 2018 The FlutterCandies author. All rights reserved. // Use of this source code is governed by an Apache license that can be found // in the LICENSE file. -import 'dart:math'; +import 'dart:math' as math; import '../managers/photo_manager.dart'; import '../types/entity.dart'; From 0d0efdde78ef8ed7d471c9bb4c90e503358d9247 Mon Sep 17 00:00:00 2001 From: Alex Li Date: Wed, 2 Aug 2023 18:11:54 +0800 Subject: [PATCH 3/4] Update path_filter.dart --- lib/src/filter/path_filter.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/filter/path_filter.dart b/lib/src/filter/path_filter.dart index 18a1cc97..da5ae56e 100644 --- a/lib/src/filter/path_filter.dart +++ b/lib/src/filter/path_filter.dart @@ -241,7 +241,7 @@ extension PMDarwinAssetCollectionSubtypeExt on PMDarwinAssetCollectionSubtype { case PMDarwinAssetCollectionSubtype.smartAlbumCinematic: return 218; case PMDarwinAssetCollectionSubtype.any: - return math.pow(2, 63) - 1; + return (math.pow(2, 63) - 1).toInt(); } } From e8a19572c2024f1b94a4a85e9bb895dd513ecc3a Mon Sep 17 00:00:00 2001 From: Alex Li Date: Thu, 3 Aug 2023 10:21:30 +0800 Subject: [PATCH 4/4] Update CHANGELOG.md --- CHANGELOG.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4958fa3d..448c0cf9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,17 @@ that can be found in the LICENSE file. --> # CHANGELOG +## 2.7.1 + +### Fixes + +- Fix namespace on Android. +- Remove the package definition from the manifest. +- Use `math.pow(2^63)-1` to make Web compile work again. + ## 2.7.0 -### Feature +### Features - Support `darwinType` and `darwinSubType` in `AssetPathEntity` on iOS and macOS. (#950)