Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
fengerwoo committed Mar 25, 2021
1 parent bb81526 commit df56107
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 13 deletions.
22 changes: 13 additions & 9 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
## 1.1.0
* package list add info


## 1.1.0
* Publish to pub.dev
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ public List<Map> getInstalledList(Boolean isDetail){
info = this.getPackageDetail(packageInfo.packageName);
}else{
info.put("packageName", packageInfo.packageName);
info.put("appName", packageInfo.applicationInfo.loadLabel(this.activity.getPackageManager()).toString());
info.put("versionName", packageInfo.versionName);
info.put("versionCode", packageInfo.versionCode);
info.put("firstInstallTime", packageInfo.firstInstallTime);
info.put("lastUpdateTime", packageInfo.lastUpdateTime);
}

list.add(info);
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.0.1"
version: "1.1.0"
path:
dependency: transitive
description:
Expand Down
4 changes: 2 additions & 2 deletions lib/src/package_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ class PackageManager {
MethodChannel _channel = MethodChannel("package_manager");

/// @Desc : 获取已安装应用列表
/// detail 参数:true=获取详情、false=只获取包名,为false会大幅度提升速度
/// detail 参数:true=获取详情、false=只获取包名等不耗时信息,为false会大幅度提升速度
/// @author: 枫儿
Future<List> getInstalledList({bool isDetail = true}) async{
Future<List> getInstalledList({bool isDetail = false}) async{
List list = await _channel.invokeMethod("getInstalledList", {"isDetail": isDetail});
return list;
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: package_manager
description: Get the list of installed installation packages, get the name, version, icon, first installation time, and last update time corresponding to the installed package name, install other applications, and uninstall other applications
version: 1.1.0
version: 1.2.0
author: fenger
homepage: https://github.com/fengerwoo
repository: https://github.com/fengerwoo/package_manager
Expand Down

0 comments on commit df56107

Please sign in to comment.