From 55b8dae0987dc06c511852ee1fb636e448def916 Mon Sep 17 00:00:00 2001 From: Vitaliy Zarubin Date: Thu, 27 Apr 2023 15:09:26 +0300 Subject: [PATCH] [xdga_directories] Update readme, spec --- packages/path_provider/path_provider_aurora/README.md | 5 +++++ .../aurora/path_provider_aurora_plugin.cpp | 6 ++---- .../aurora/rpm/com.example.xdga_directories_example.spec | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/packages/path_provider/path_provider_aurora/README.md b/packages/path_provider/path_provider_aurora/README.md index 9d05fc9..ec3d716 100644 --- a/packages/path_provider/path_provider_aurora/README.md +++ b/packages/path_provider/path_provider_aurora/README.md @@ -30,6 +30,11 @@ import 'package:path_provider/path_provider.dart'; - [x] `getExternalStorageDirectories` (There is no concept of External in Aurora OS, but this interface allows you to get the pictures/music/movies directory) - [x] `getDownloadsDirectory` +## Extra methods + +PathProviderAurora.getApplicationOrg(); +PathProviderAurora.getApplicationName(); + ### Preview example ![preview.png](data%2Fpreview.png) \ No newline at end of file diff --git a/packages/path_provider/path_provider_aurora/aurora/path_provider_aurora_plugin.cpp b/packages/path_provider/path_provider_aurora/aurora/path_provider_aurora_plugin.cpp index 7ad8d5c..14079a3 100644 --- a/packages/path_provider/path_provider_aurora/aurora/path_provider_aurora_plugin.cpp +++ b/packages/path_provider/path_provider_aurora/aurora/path_provider_aurora_plugin.cpp @@ -28,14 +28,12 @@ void PathProviderAuroraPlugin::onMethodCall(const MethodCall &call) void PathProviderAuroraPlugin::onGetApplicationOrg(const MethodCall &call) { - const auto [orgname, appname] = Application::GetID(); - call.SendSuccessResponse(orgname); + call.SendSuccessResponse(Application::GetID().orgname); } void PathProviderAuroraPlugin::onGetApplicationName(const MethodCall &call) { - const auto [orgname, appname] = Application::GetID(); - call.SendSuccessResponse(appname); + call.SendSuccessResponse(Application::GetID().appname); } void PathProviderAuroraPlugin::unimplemented(const MethodCall &call) diff --git a/packages/xdga_directories/example/aurora/rpm/com.example.xdga_directories_example.spec b/packages/xdga_directories/example/aurora/rpm/com.example.xdga_directories_example.spec index 57c2e5a..36130d1 100644 --- a/packages/xdga_directories/example/aurora/rpm/com.example.xdga_directories_example.spec +++ b/packages/xdga_directories/example/aurora/rpm/com.example.xdga_directories_example.spec @@ -1,12 +1,12 @@ %global __provides_exclude_from ^%{_datadir}/%{name}/lib/.*$ -%global __requires_exclude ^lib(dconf|flutter-embedder|maliit-glib|.+_platform_plugin)\\.so.*$ +%global __requires_exclude ^lib(dconf|flutter-embedder|maliit-glib|appmanifest-.+|.+_platform_plugin)\\.so.*$ Name: com.example.xdga_directories_example Summary: Demonstrates how to use the xdga_directories plugin. Version: 0.1.0 Release: 1 License: Proprietary -Source0: %{name}-%{version}.tar.bz2 +Source0: %{name}-%{version}.tar.zst BuildRequires: cmake BuildRequires: pkgconfig(flutter-embedder)