• Home
Name Date Size #Lines LOC

..--

data/06-Sep-2024-12,01912,008

static/06-Sep-2024-291203

templates/06-Sep-2024-5852

tests/06-Sep-2024-521445

BUILDD06-Sep-20241.3 KiB7263

README.mdD06-Sep-20241 KiB4938

WORKSPACED06-Sep-2024816 3023

app.pyD06-Sep-20244.2 KiB12694

json.luaD06-Sep-20248.4 KiB366280

lua.BUILDD06-Sep-2024764 3937

lua_engine.ccD06-Sep-202418.3 KiB501249

lua_engine.hD06-Sep-20247.7 KiB18740

package-lock.jsonD06-Sep-202417.6 KiB412411

package.jsonD06-Sep-2024314 1313

requirements.txtD06-Sep-2024155 99

rollup.config.jsD06-Sep-2024195 66

README.md

1Lua Interpreter
2=====
3
4The Lua Interpreter is a web-based IDE tool that can run Lua scripts with the specific Android Auto telemetry callbacks.
5
6## Prerequisites
7***
8Install the required node dependencies using npm with
9```
10sudo apt install nodejs
11npm install
12```
13
14Install Bazel with
15```
16sudo apt install bazel
17```
18
19Change the LUA_SRC inside the WORKSPACE file to point to the directory containing the headers
20of the Lua C API which should be in $ANDROID_BUILD_TOP/external/lua/src.
21
22## Running
23***
24Run the following commands on the command line to start the server:
25```
26npm run build; bazel run server
27```
28
29Open the link provided from starting the server to access the tool (the link is accessible from the terminal window).
30
31## Testing
32***
33The following commands assume you are at the root directory.
34
35To test everything, run:
36```
37bazel test --test_output=all //tests:lua_interpreter_tests
38```
39
40To test the server, run:
41```
42bazel test --test_output=all //tests:app_test
43```
44
45To test the Lua Engine, run:
46```
47bazel test --test_output=all //tests:lua_engine_test
48```
49