mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
feat: add support for Flutter Linux, macOS and Windows (#10)
This commit is contained in:
parent
a71bb14b86
commit
c8895524be
18 changed files with 401 additions and 18 deletions
23
windows/include/libgit2dart/libgit2dart_plugin.h
Normal file
23
windows/include/libgit2dart/libgit2dart_plugin.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
#ifndef FLUTTER_PLUGIN_LIBGIT2DART_PLUGIN_H_
|
||||
#define FLUTTER_PLUGIN_LIBGIT2DART_PLUGIN_H_
|
||||
|
||||
#include <flutter_plugin_registrar.h>
|
||||
|
||||
#ifdef FLUTTER_PLUGIN_IMPL
|
||||
#define FLUTTER_PLUGIN_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define FLUTTER_PLUGIN_EXPORT __declspec(dllimport)
|
||||
#endif
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
FLUTTER_PLUGIN_EXPORT void Libgit2dartPluginRegisterWithRegistrar(
|
||||
FlutterDesktopPluginRegistrarRef registrar);
|
||||
|
||||
#if defined(__cplusplus)
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // FLUTTER_PLUGIN_LIBGIT2DART_PLUGIN_H_
|
Loading…
Add table
Add a link
Reference in a new issue