Skip to content

Commit b03511c

Browse files
authored
⚡️ Use modified date on Android (#671)
1 parent 2b8256e commit b03511c

File tree

8 files changed

+21
-16
lines changed

8 files changed

+21
-16
lines changed

.github/workflows/runnable.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ jobs:
4646
- name: Run tests
4747
run: flutter test
4848
- name: Generate docs
49-
run: |
50-
dart pub global activate dartdoc
51-
dart pub global run dartdoc .
49+
run: dart doc --dry-run .
5250

5351
test_iOS:
5452
needs: analyze

CHANGELOG.md

+10-3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ that can be found in the LICENSE file. -->
1111

1212
*None.*
1313

14+
## 9.4.2
15+
16+
### Improvements
17+
18+
- Add Traditional Chinese language text delegate. (Thanks to @Gasol)
19+
- Improves the default sort conditions on Android.
20+
1421
## 9.4.1
1522

1623
### Improvements
@@ -169,7 +176,7 @@ that can be found in the LICENSE file. -->
169176

170177
### New features
171178

172-
- Add Korean language support. (#494)
179+
- Add Korean language support. (Thanks to @LIMMIHEE)
173180

174181
### Improvements
175182

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

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

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

246253
### New features
247254

248-
- Add Vietnamese language text delegate. (#424).
255+
- Add Vietnamese language text delegate. (Thanks to @nploi).
249256

250257
### Improvements
251258

example/android/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip

example/android/settings.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pluginManagement {
2020
plugins {
2121
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
2222
id "com.android.application" version "8.2.2" apply false
23-
id "org.jetbrains.kotlin.android" version "1.9.20" apply false
23+
id "org.jetbrains.kotlin.android" version "1.9.21" apply false
2424
}
2525

2626
include ":app"

example/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: wechat_assets_picker_demo
22
description: The demo project for the wechat_assets_picker package.
3-
version: 9.4.1+63
3+
version: 9.4.2+64
44
publish_to: none
55

66
environment:

lib/src/constants/typedefs.dart

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import 'package:provider/provider.dart';
1313
typedef CNP<T extends ChangeNotifier?> = ChangeNotifierProvider<T>;
1414

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

6868
/// {@template wechat_assets_picker.AssetsChangeRefreshPredicate}
69-
/// Whether assets changing should call refresh with the given [call]
70-
/// and the current selected [path].
71-
/// 判断资源变化是否根据 [call] 和当前选中的 [path] 进行更新。
69+
/// Whether assets changing should call refresh with the given `call`
70+
/// and the current selected `path`.
71+
/// 判断资源变化是否根据 `call` 和当前选中的 `path` 进行更新。
7272
/// {@endtemplate}
7373
typedef AssetsChangeRefreshPredicate<Path> = bool Function(
7474
PermissionState permission,

lib/src/provider/asset_picker_provider.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ class DefaultAssetPickerProvider
352352
)..merge(fog);
353353
} else if (fog == null && Platform.isAndroid) {
354354
options = AdvancedCustomFilter(
355-
orderBy: [OrderByItem.desc(CustomColumns.android.dateTaken)],
355+
orderBy: [OrderByItem.desc(CustomColumns.android.modifiedDate)],
356356
);
357357
} else {
358358
options = fog;

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: wechat_assets_picker
2-
version: 9.4.1
2+
version: 9.4.2
33
description: |
44
An image picker (also with videos and audio)
55
for Flutter projects based on WeChat's UI,

0 commit comments

Comments
 (0)