summaryrefslogtreecommitdiffstats
path: root/meta-agl-flutter/tools/flutter_workspace_config.json
blob: bb7f23cc807ef32e98d3b15dad9aa71bc62fc2d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
{
	"flutter-version": "3.3.1",
	"platforms": [
		{
			"id": "desktop-auto",
			"type": "host",
			"arch": "x86_64",
			"flutter_runtime": "debug",
			"runtime": {
				"backend": "egl",
				"config": {
					"width": 1920,
					"height": 1080,
					"cursor_theme": "DMZ-White"
				},
				"install_dependent_packages": true,
				"artifact_source": "github",
				"github_owner": "toyota-connected",
				"github_repo": "ivi-homescreen",
				"github_workflow": "flutter-auto-linux.yml",
				"github_artifact": "flutter-auto-${BACKEND}-dbg.amd64.deb.zip"
			},
			"overwrite-existing": true,
			"custom-device": {
				"id": "desktop-auto",
				"label": "Toyota flutter-auto",
				"sdkNameAndVersion": "flutter-auto x86_64",
				"platform": "linux-x64",
				"enabled": true,
				"ping": ["bash", "-c", "loginctl show-session $(awk '/tty/ {print $1}' <(loginctl)) -p Type"],
				"pingSuccessRegex": "Type=wayland",
				"postBuild": null,
				"install": ["bash", "-c", "mkdir -p /tmp/${appName}/data/flutter_assets && cp -r ${BUNDLE_FOLDER}/* /tmp/${appName} && cp -r ${localPath}/* /tmp/${appName}/data/flutter_assets"],
				"uninstall": ["rm", "-rf", "tmp/${appName}"],
				"runDebug": ["flutter-auto", "--j=${FLUTTER_WORKSPACE}/.flutter-auto/default_config.json", "--b=/tmp/${appName}"],
				"forwardPort": null,
				"forwardPortSuccessRegex": null,
				"screenshot": null
			}
		},
		{
			"id": "AGL-qemu",
			"type": "qemu",
			"arch": "x86_64",
			"flutter_runtime": "debug",
			"runtime": {
				"config": {
					"window_type": "BG",
					"width": 1920,
					"height": 1080,
					"fullscreen": true
				},
				"install_dependent_packages": true,
				"relative_path": ".agl/agl-image-flutter-runtime${FLUTTER_RUNTIME}-qemux86-64.wic.vmdk",
				"artifact_source": "github",
				"github_owner": "meta-flutter",
				"github_repo": "meta-flutter",
				"github_workflow": "kirkstone-agl-x86_64.yml",
				"github_artifact": "agl-image-flutter-runtime${FLUTTER_RUNTIME}-qemux86-64-linux",
				"ovmf_path": "/usr/share/ovmf/OVMF.fd",
				"cmd": "qemu-system-x86_64",
				"args": "-enable-kvm -m 2048 -bios ${OVMF_PATH} -hda ${QEMU_IMAGE} -cpu kvm64 -cpu qemu64,+ssse3,+sse4.1,+sse4.2,+popcnt -vga virtio -show-cursor -device virtio-rng-pci -serial mon:stdio -serial null -soundhw hda -device virtio-net-pci,netdev=net0,mac=52:54:00:12:35:02 -netdev user,id=net0,hostfwd=tcp::2222-:22,hostfwd=tcp::1234-:1234"
			},
			"overwrite-existing": true,
			"custom-device": {
				"id": "AGL-qemu",
				"label": "AGL x86_64 QEMU Image",
				"sdkNameAndVersion": "agl-image-flutter-runtime${FLUTTER_RUNTIME}-qemux86-64.wic.vmdk",
				"platform": "linux-x64",
				"enabled": true,
				"ping": [
					"bash", "-c", "(echo >/dev/tcp/localhost/2222) &>/dev/null && echo \"open 2222\" || echo \"close 2222\""
				],
				"pingSuccessRegex": "open 2222",
				"postBuild": [
					"bash", "-c", "mkdir -p ${localPath}/../../.flutter-auto/data/flutter_assets && cp -r ${localPath}/* ${localPath}/../../.flutter-auto/data/flutter_assets && cp -r ${FLUTTER_WORKSPACE}/.agl/default_config.json ${localPath}/../../.flutter-auto/ && ssh -p 2222 -t -oBatchMode=yes root@localhost passwd -d agl-driver"
				],
				"uninstall": [
					"bash", "-c", "ssh -p 2222 -t -t -oBatchMode=yes agl-driver@localhost rm -rf \"/tmp/${appName}\""
				],
				"install": [
					"bash", "-c", "ssh -p 2222 -t -t -oBatchMode=yes agl-driver@localhost mkdir -p \"/tmp/${appName}/data/flutter_assets\" && scp -r -P 2222 ${localPath}/../../.flutter-auto/* agl-driver@localhost:/tmp/${appName}"
				],
				"runDebug": [
					"ssh", "-t", "-t", "-p", "2222", "-oBatchMode=yes", "agl-driver@localhost",
					"flutter-auto",
					"--j=/tmp/${appName}/default_config.json",
					"--b=/tmp/${appName}",
					"--observatory-host=0.0.0.0",
					"--observatory-port=1234"
				],
				"forwardPort": null,
				"forwardPortSuccessRegex": null,
				"screenshot": null
			}
		}
	],
	"repos": [
		{
			"uri": "https://github.com/flutter/gallery.git",
			"branch": "master",
			"rev": "9eb785cb997ff56c46e933c1c591f0a6f31454f6",
			"pubspec_path": "gallery"
		},
		{
			"uri": "git@github.com:meta-flutter/tests.git",
			"branch": "main"
		},
		{
			"uri": "https://github.com/meta-flutter/flutter_animated_background.git",
			"branch": "meta-flutter",
			"pubspec_path": "flutter_animated_background/example"
		},
		{
			"uri": "https://github.com/mogol/flutter_secure_storage.git",
			"branch": "develop",
			"rev": "e716593352b80330e05729486eade7c2167d3c71",
			"pubspec_path": "flutter_secure_storage/flutter_secure_storage/example"
		},
		{
			"uri": "https://github.com/felipeerias/flutter_homescreen.git",
			"branch": "main",
			"pubspec_path": "flutter_homescreen"
		},
		{
			"uri": "https://github.com/bernardpumped/ped.git",
			"branch": "agl",
			"pubspec_path": "ped"
		},
		{
			"uri": "https://gerrit.automotivelinux.org/gerrit/apps/flutter-dashboard.git",
			"branch": "master",
			"pubspec_path": "flutter-dashboard"
		},
		{
			"uri": "https://gerrit.automotivelinux.org/gerrit/apps/flutter-hvac.git",
			"branch": "master",
			"pubspec_path": "flutter-hvac"
		},
		{
			"uri": "https://gerrit.automotivelinux.org/gerrit/apps/flutter-instrument-cluster.git",
			"branch": "master",
			"pubspec_path": "flutter-instrument-cluster"
		},
		{
			"uri": "https://gerrit.automotivelinux.org/gerrit/apps/flutter-mediaplayer.git",
			"branch": "master",
			"pubspec_path": "flutter-mediaplayer"
		},
		{
			"uri": "https://gerrit.automotivelinux.org/gerrit/apps/flutter-navigation.git",
			"branch": "master",
			"pubspec_path": "flutter-navigation"
		}
	]
}