feat: add support for Flutter Linux, macOS and Windows (#10)

This commit is contained in:
Aleksey Kulikov 2021-10-30 13:54:25 +03:00 committed by GitHub
parent a71bb14b86
commit c8895524be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 401 additions and 18 deletions

View file

@ -0,0 +1,26 @@
#ifndef FLUTTER_PLUGIN_LIBGIT2DART_PLUGIN_H_
#define FLUTTER_PLUGIN_LIBGIT2DART_PLUGIN_H_
#include <flutter_linux/flutter_linux.h>
G_BEGIN_DECLS
#ifdef FLUTTER_PLUGIN_IMPL
#define FLUTTER_PLUGIN_EXPORT __attribute__((visibility("default")))
#else
#define FLUTTER_PLUGIN_EXPORT
#endif
typedef struct _Libgit2dartPlugin Libgit2dartPlugin;
typedef struct {
GObjectClass parent_class;
} Libgit2dartPluginClass;
FLUTTER_PLUGIN_EXPORT GType libgit2dart_plugin_get_type();
FLUTTER_PLUGIN_EXPORT void libgit2dart_plugin_register_with_registrar(
FlPluginRegistrar* registrar);
G_END_DECLS
#endif // FLUTTER_PLUGIN_LIBGIT2DART_PLUGIN_H_