Skip to content

adds import.go.tmpl files #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions image_picker/import.go.tmpl
Original file line number Diff line number Diff line change
@@ -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{}))
}
10 changes: 10 additions & 0 deletions list.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"standaloneImplementation": [
{"name":"image_picker","importFile": "https://github.com/raw/go-flutter-desktop/plugins/master/image_picker/import.go.tmpl"},
{"name":"path_provider","importFile": "https://github.com/raw/go-flutter-desktop/plugins/master/path_provider/import.go.tmpl"},
{"name":"shared_preferences","importFile": "https://github.com/raw/go-flutter-desktop/plugins/master/shared_preferences/import.go.tmpl"},
{"name":"url_launcher","importFile": "https://github.com/raw/go-flutter-desktop/plugins/master/url_launcher/import.go.tmpl"},
{"name":"video_player","importFile": "https://github.com/raw/go-flutter-desktop/plugins/master/video_player/import.go.tmpl"},
{"name":"package_info","importFile": "https://github.com/raw/go-flutter-desktop/plugins/master/package_info/import.go.tmpl"}
]
}
16 changes: 16 additions & 0 deletions path_provider/import.go.tmpl
Original file line number Diff line number Diff line change
@@ -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,
}))
}
16 changes: 16 additions & 0 deletions shared_preferences/import.go.tmpl
Original file line number Diff line number Diff line change
@@ -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,
}))
}
13 changes: 13 additions & 0 deletions url_launcher/import.go.tmpl
Original file line number Diff line number Diff line change
@@ -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{}))
}
15 changes: 15 additions & 0 deletions video_player/import.go.tmpl
Original file line number Diff line number Diff line change
@@ -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{}))
}