diff --git a/image_picker/import.go.tmpl b/image_picker/import.go.tmpl new file mode 100644 index 0000000..f15bd74 --- /dev/null +++ b/image_picker/import.go.tmpl @@ -0,0 +1,13 @@ +package main + +// DO NOT EDIT, this file is generated by hover at compile-time for the image_picker plugin. + +import ( + flutter "github.com/go-flutter-desktop/go-flutter" + image_picker "github.com/go-flutter-desktop/plugins/image_picker" +) + +func init() { + // Only the init function can be tweaked by plugin maker. + options = append(options, flutter.AddPlugin(&image_picker.ImagePickerPlugin{})) +} diff --git a/list.json b/list.json new file mode 100644 index 0000000..5bcd8bd --- /dev/null +++ b/list.json @@ -0,0 +1,10 @@ +{ + "standaloneImplementation": [ + {"name":"image_picker","importFile": "https://raw.githubusercontent.com/go-flutter-desktop/plugins/master/image_picker/import.go.tmpl"}, + {"name":"path_provider","importFile": "https://raw.githubusercontent.com/go-flutter-desktop/plugins/master/path_provider/import.go.tmpl"}, + {"name":"shared_preferences","importFile": "https://raw.githubusercontent.com/go-flutter-desktop/plugins/master/shared_preferences/import.go.tmpl"}, + {"name":"url_launcher","importFile": "https://raw.githubusercontent.com/go-flutter-desktop/plugins/master/url_launcher/import.go.tmpl"}, + {"name":"video_player","importFile": "https://raw.githubusercontent.com/go-flutter-desktop/plugins/master/video_player/import.go.tmpl"}, + {"name":"package_info","importFile": "https://raw.githubusercontent.com/go-flutter-desktop/plugins/master/package_info/import.go.tmpl"} + ] +} diff --git a/path_provider/import.go.tmpl b/path_provider/import.go.tmpl new file mode 100644 index 0000000..fac0d40 --- /dev/null +++ b/path_provider/import.go.tmpl @@ -0,0 +1,16 @@ +package main + +// DO NOT EDIT, this file is generated by hover at compile-time for the path_provider plugin. + +import ( + flutter "github.com/go-flutter-desktop/go-flutter" + path_provider "github.com/go-flutter-desktop/plugins/path_provider" +) + +func init() { + // Only the init function can be tweaked by plugin maker. + options = append(options, flutter.AddPlugin(&path_provider.PathProviderPlugin{ + VendorName: flutter.ProjectOrganizationName, + ApplicationName: flutter.ProjectName, + })) +} diff --git a/shared_preferences/import.go.tmpl b/shared_preferences/import.go.tmpl new file mode 100644 index 0000000..43eaddd --- /dev/null +++ b/shared_preferences/import.go.tmpl @@ -0,0 +1,16 @@ +package main + +// DO NOT EDIT, this file is generated by hover at compile-time for the shared_preferences plugin. + +import ( + flutter "github.com/go-flutter-desktop/go-flutter" + shared_preferences "github.com/go-flutter-desktop/plugins/shared_preferences" +) + +func init() { + // Only the init function can be tweaked by plugin maker. + options = append(options, flutter.AddPlugin(&shared_preferences.SharedPreferencesPlugin{ + VendorName: flutter.ProjectOrganizationName, + ApplicationName: flutter.ProjectName, + })) +} diff --git a/url_launcher/import.go.tmpl b/url_launcher/import.go.tmpl new file mode 100644 index 0000000..8727cdb --- /dev/null +++ b/url_launcher/import.go.tmpl @@ -0,0 +1,13 @@ +package main + +// DO NOT EDIT, this file is generated by hover at compile-time for the url_launcher plugin. + +import ( + flutter "github.com/go-flutter-desktop/go-flutter" + url_launcher "github.com/go-flutter-desktop/plugins/url_launcher" +) + +func init() { + // Only the init function can be tweaked by plugin maker. + options = append(options, flutter.AddPlugin(&url_launcher.UrlLauncherPlugin{})) +} diff --git a/video_player/import.go.tmpl b/video_player/import.go.tmpl new file mode 100644 index 0000000..bce4f36 --- /dev/null +++ b/video_player/import.go.tmpl @@ -0,0 +1,15 @@ +package main + +// DO NOT EDIT, this file is generated by hover at compile-time for the video_player plugin. + +import ( + "fmt" + // flutter "github.com/go-flutter-desktop/go-flutter" + // video_player "github.com/go-flutter-desktop/plugins/video_player" +) + +func init() { + fmt.Println("Adding the VideoPlayerPlugin plugin to your project is risky!\nPlease read the plugin README!") + fmt.Println("If you really want to give the video_player a try, uncomment the AddPlugin line in the import-video_player-plugin.go file located in go/cmd.") + // options = append(options, flutter.AddPlugin(&video_player.VideoPlayerPlugin{})) +}