* feat: Display STF version in Web UI
Adds the STF application version to the main menu in the Web UI.
Changes:
- Modified `lib/units/app/index.js` to read the version from `package.json` and make it available to the frontend via the `GLOBAL_APPSTATE.config.stfVersion` variable.
- Updated `res/app/menu/menu.pug` to display this version in the top navigation bar, near the help icon. The format is "vX.Y.Z".
- Added an E2E test (`res/test/e2e/menu/menu-spec.js`) to verify the presence and correct format of the version string in the UI.
Signed-off-by: matanbaruch <matan.baruch@unity3d.com>
* Update menu-spec.js
Signed-off-by: matanbaruch <matan.baruch@unity3d.com>
* fix: lint
Signed-off-by: matanbaruch <matan.baruch@unity3d.com>
* feat: Add application state to root scope and style version text in menu
- Introduced a new run block in `app.js` to attach the application state to the `$rootScope`.
- Added CSS styles for the version text in the menu to enhance its visibility and layout.
Signed-off-by: matanbaruch <matan.baruch@unity3d.com>
* fix: Correct path to package.json in index.js
Updated the import statement for package.json in lib/units/app/index.js to use the correct relative path, ensuring proper access to the application version information.
Signed-off-by: matanbaruch <matan.baruch@unity3d.com>
---------
Signed-off-by: matanbaruch <matan.baruch@unity3d.com>
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
* tackle case where old SDK not support BLUETOOTH_CONNECT permission
Signed-off-by: Jussi Vatjus-Anttila <jussiva@gmail.com>
* make permissions logic more future proof
Signed-off-by: Jussi Vatjus-Anttila <jussiva@gmail.com>
---------
Signed-off-by: Jussi Vatjus-Anttila <jussiva@gmail.com>
* option to cleanup tmp folder during cleanup phase
Signed-off-by: Jussi Vatjus-Anttila <jussiva@gmail.com>
* do only one adb command at time to ensure them all are executed
Signed-off-by: Jussi Vatjus-Anttila <jussiva@gmail.com>
* cleanup and fix lint errors
Signed-off-by: Jussi Vatjus-Anttila <jussiva@gmail.com>
---------
Signed-off-by: Jussi Vatjus-Anttila <jussiva@gmail.com>
Some devices (Pixel 4XL) need more time to retrieve PID, in such cases when the retrieval failed - the whole stream is shutting down, therefore, connection with Minicap is lost which leads to constant empty screen on the Web UI.
Signed-off-by: Mark Omarov <mark.omarov.work@gmail.com>
Co-authored-by: Mark Omarov <mark.omarov.work@gmail.com>
This commit introduce a new option to use a new minicap
implementation by specifying --screen-grabber or the env
variable SCREEN_GRABBER. The current native minicap is the default
and is refered as 'minicap-bin'. The new minicap which is packaged
in an apk is usable with 'minicap-apk' and will be used as a
fallback.
At the moment, this apk is expected to be included in
minicap-prebuilt node package at this location
minicap-prebuilt/prebuilt/noarch/minicap.apk.
STFService.apk has also been updated to take into account Android 12
Signed-off-by: Crepieux Pierre <pierre.crepieux@orange.com>