From 8ad6b022196ec689eed08c0f3315a53723d4af0c Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Sat, 26 Feb 2022 12:16:16 +0100 Subject: Migrate to new application framework First, move to use the appService API added as injection in AGL chromium. Then, added stubs for the network and weather APIs as there is no API available right now for them. Bug-AGL: SPEC-4250 Signed-off-by: Jose Dapena Paz Change-Id: I974097edcef6318585e4e79360dbec6fea7cf480 --- src/js/agl_stubs_network.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/js/agl_stubs_network.js (limited to 'src/js/agl_stubs_network.js') diff --git a/src/js/agl_stubs_network.js b/src/js/agl_stubs_network.js new file mode 100644 index 0000000..2b84daf --- /dev/null +++ b/src/js/agl_stubs_network.js @@ -0,0 +1,13 @@ +export function technologies() { + return new Promise((resolve, reject) => { + resolve({ + values: [] + }); + }); +} + +export function on_global_state() { + return new Promise((resolve, reject) => { + resolve("stub"); + }); +} -- cgit