Skip to content

Commit 8316827

Browse files
committed
adds import.go.tmpl files
waiting for PR: go-flutter-desktop/hover#28
1 parent 126db66 commit 8316827

File tree

6 files changed

+83
-0
lines changed

6 files changed

+83
-0
lines changed

image_picker/import.go.tmpl

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package main
2+
3+
// DO NOT EDIT, this file is generated by hover at compile-time for the image_picker plugin.
4+
5+
import (
6+
flutter "github.com/go-flutter-desktop/go-flutter"
7+
image_picker "github.com/go-flutter-desktop/plugins/image_picker"
8+
)
9+
10+
func init() {
11+
// Only the init function can be tweaked by plugin maker.
12+
options = append(options, flutter.AddPlugin(&image_picker.ImagePickerPlugin{}))
13+
}

list.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"standaloneImplementation": [
3+
{"name":"image_picker","importFile": "https://raw.githubusercontent.com/go-flutter-desktop/plugins/master/image_picker/import.go.tmpl"},
4+
{"name":"path_provider","importFile": "https://raw.githubusercontent.com/go-flutter-desktop/plugins/master/path_provider/import.go.tmpl"},
5+
{"name":"shared_preferences","importFile": "https://raw.githubusercontent.com/go-flutter-desktop/plugins/master/shared_preferences/import.go.tmpl"},
6+
{"name":"url_launcher","importFile": "https://raw.githubusercontent.com/go-flutter-desktop/plugins/master/url_launcher/import.go.tmpl"},
7+
{"name":"video_player","importFile": "https://raw.githubusercontent.com/go-flutter-desktop/plugins/master/video_player/import.go.tmpl"},
8+
{"name":"package_info","importFile": "https://raw.githubusercontent.com/go-flutter-desktop/plugins/master/package_info/import.go.tmpl"}
9+
]
10+
}

path_provider/import.go.tmpl

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package main
2+
3+
// DO NOT EDIT, this file is generated by hover at compile-time for the path_provider plugin.
4+
5+
import (
6+
flutter "github.com/go-flutter-desktop/go-flutter"
7+
path_provider "github.com/go-flutter-desktop/plugins/path_provider"
8+
)
9+
10+
func init() {
11+
// Only the init function can be tweaked by plugin maker.
12+
options = append(options, flutter.AddPlugin(&path_provider.PathProviderPlugin{
13+
VendorName: flutter.ProjectOrganizationName,
14+
ApplicationName: flutter.ProjectName,
15+
}))
16+
}

shared_preferences/import.go.tmpl

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package main
2+
3+
// DO NOT EDIT, this file is generated by hover at compile-time for the shared_preferences plugin.
4+
5+
import (
6+
flutter "github.com/go-flutter-desktop/go-flutter"
7+
shared_preferences "github.com/go-flutter-desktop/plugins/shared_preferences"
8+
)
9+
10+
func init() {
11+
// Only the init function can be tweaked by plugin maker.
12+
options = append(options, flutter.AddPlugin(&shared_preferences.SharedPreferencesPlugin{
13+
VendorName: flutter.ProjectOrganizationName,
14+
ApplicationName: flutter.ProjectName,
15+
}))
16+
}

url_launcher/import.go.tmpl

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package main
2+
3+
// DO NOT EDIT, this file is generated by hover at compile-time for the url_launcher plugin.
4+
5+
import (
6+
flutter "github.com/go-flutter-desktop/go-flutter"
7+
url_launcher "github.com/go-flutter-desktop/plugins/url_launcher"
8+
)
9+
10+
func init() {
11+
// Only the init function can be tweaked by plugin maker.
12+
options = append(options, flutter.AddPlugin(&url_launcher.UrlLauncherPlugin{}))
13+
}

video_player/import.go.tmpl

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package main
2+
3+
// DO NOT EDIT, this file is generated by hover at compile-time for the video_player plugin.
4+
5+
import (
6+
"fmt"
7+
// flutter "github.com/go-flutter-desktop/go-flutter"
8+
// video_player "github.com/go-flutter-desktop/plugins/video_player"
9+
)
10+
11+
func init() {
12+
fmt.Println("Adding the VideoPlayerPlugin plugin to your project is risky!\nPlease read the plugin README!")
13+
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.")
14+
// options = append(options, flutter.AddPlugin(&video_player.VideoPlayerPlugin{}))
15+
}

0 commit comments

Comments
 (0)