Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.pow(2^63)-1 instead of 9223372036854775807 #960

Merged
merged 6 commits into from
Aug 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
5 changes: 3 additions & 2 deletions lib/src/filter/path_filter.dart
Original file line number Diff line number Diff line change
@@ -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' as math;

import '../managers/photo_manager.dart';
import '../types/entity.dart';

Expand Down Expand Up @@ -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).toInt();
}
}

Expand Down
Loading