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

⚡️ Use modified date on Android #671

Merged
merged 4 commits into from
Dec 19, 2024
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
4 changes: 1 addition & 3 deletions .github/workflows/runnable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ jobs:
- name: Run tests
run: flutter test
- name: Generate docs
run: |
dart pub global activate dartdoc
dart pub global run dartdoc .
run: dart doc --dry-run .

test_iOS:
needs: analyze
Expand Down
13 changes: 10 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ that can be found in the LICENSE file. -->

*None.*

## 9.4.2

### Improvements

- Add Traditional Chinese language text delegate. (Thanks to @Gasol)
- Improves the default sort conditions on Android.

## 9.4.1

### Improvements
Expand Down Expand Up @@ -169,7 +176,7 @@ that can be found in the LICENSE file. -->

### New features

- Add Korean language support. (#494)
- Add Korean language support. (Thanks to @LIMMIHEE)

### Improvements

Expand Down Expand Up @@ -223,7 +230,7 @@ that can be found in the LICENSE file. -->
### New features

- Sync all UI details from WeChat 8.3.x. (#458)
- Add Turkish language text delegate. (#331).
- Add Turkish language text delegate. (Thanks to @cevheri).
- Allow to confirm 0 assets if there are selected assets previously. (#461)

### Improvements
Expand All @@ -245,7 +252,7 @@ that can be found in the LICENSE file. -->

### New features

- Add Vietnamese language text delegate. (#424).
- Add Vietnamese language text delegate. (Thanks to @nploi).

### Improvements

Expand Down
2 changes: 1 addition & 1 deletion example/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
2 changes: 1 addition & 1 deletion example/android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pluginManagement {
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "8.2.2" apply false
id "org.jetbrains.kotlin.android" version "1.9.20" apply false
id "org.jetbrains.kotlin.android" version "1.9.21" apply false
}

include ":app"
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: wechat_assets_picker_demo
description: The demo project for the wechat_assets_picker package.
version: 9.4.1+63
version: 9.4.2+64
publish_to: none

environment:
Expand Down
10 changes: 5 additions & 5 deletions lib/src/constants/typedefs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import 'package:provider/provider.dart';
typedef CNP<T extends ChangeNotifier?> = ChangeNotifierProvider<T>;

/// {@template wechat_assets_picker.LoadingIndicatorBuilder}
/// Build the loading indicator with the given [isAssetsEmpty].
/// 根据给定的 [isAssetsEmpty] 构建加载指示器。
/// Build the loading indicator with the given `isAssetsEmpty`.
/// 根据给定的 `isAssetsEmpty` 构建加载指示器。
/// {@endtemplate}
typedef LoadingIndicatorBuilder = Widget Function(
BuildContext context,
Expand Down Expand Up @@ -66,9 +66,9 @@ typedef AssetsChangeCallback<Path> = void Function(
);

/// {@template wechat_assets_picker.AssetsChangeRefreshPredicate}
/// Whether assets changing should call refresh with the given [call]
/// and the current selected [path].
/// 判断资源变化是否根据 [call] 和当前选中的 [path] 进行更新。
/// Whether assets changing should call refresh with the given `call`
/// and the current selected `path`.
/// 判断资源变化是否根据 `call` 和当前选中的 `path` 进行更新。
/// {@endtemplate}
typedef AssetsChangeRefreshPredicate<Path> = bool Function(
PermissionState permission,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/provider/asset_picker_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ class DefaultAssetPickerProvider
)..merge(fog);
} else if (fog == null && Platform.isAndroid) {
options = AdvancedCustomFilter(
orderBy: [OrderByItem.desc(CustomColumns.android.dateTaken)],
orderBy: [OrderByItem.desc(CustomColumns.android.modifiedDate)],
);
} else {
options = fog;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: wechat_assets_picker
version: 9.4.1
version: 9.4.2
description: |
An image picker (also with videos and audio)
for Flutter projects based on WeChat's UI,
Expand Down
Loading