Browse Source

[xdga_directories] Update readme, spec

merge-requests/1/head
Vitaliy Zarubin 2 years ago
parent
commit
55b8dae098
  1. 5
      packages/path_provider/path_provider_aurora/README.md
  2. 6
      packages/path_provider/path_provider_aurora/aurora/path_provider_aurora_plugin.cpp
  3. 4
      packages/xdga_directories/example/aurora/rpm/com.example.xdga_directories_example.spec

5
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)

6
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)

4
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)

Loading…
Cancel
Save