@ -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

@ -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)
call.SendSuccessResponse(appname);
call.SendSuccessResponse(Application::GetID().appname);
void PathProviderAuroraPlugin::unimplemented(const MethodCall &call)
@ -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)