https://github.com/nativescript/mobile-devices-manager
https://github.com/nativescript/mobile-devices-manager
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nativescript/mobile-devices-manager
- Owner: NativeScript
- License: mit
- Created: 2017-10-31T12:28:46.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-12T10:57:43.000Z (over 7 years ago)
- Last Synced: 2025-04-02T11:22:08.459Z (about 1 year ago)
- Language: TypeScript
- Size: 151 KB
- Stars: 1
- Watchers: 14
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Serves to control simulatos, emulators and real devices.
Purpose of this tool is to manage all devices on а machine.
This is very convinience when a multiple builds are triggered.
Provides basic mathods as:
-subscribeForDevice for device. Accepts:
{ platform :platformName, name: name, info: info, apiLevel:apiLevel }
{ platform :platformName, token: token, info: info, apiLevel:apiLevel }
{ type :deviceType, name: name, info: info, apiLevel:apiLevel }
-unsubscribeFromDevice for {token: device.token}.
-boot device.
-kill device.
Basically works with query of type IDevice exposed in mobile-devices-controller
export interface IDevice {
name: string,
token: string,
type: DeviceType,
platform: Platform,
status?: Status,
startedAt?: number,
busySince?: number,
pid?: number,
apiLevel?: string,
info?: string,
config?: any,
}
## Install
Install the node packages via:
`$ npm install`
## Using local storage
By default mobile-device-manager uses local storage to store device info using files.
Default folder location is in home folder of the user.
To override it, set env variable `DEVICE_INFO_STORAGE`=path to storage.
## Using remote storage
Set evn variable `USE_MONOGDB_STORAGE`=true
### Install mogodb
`$ brew update`
`$ brew install mongodb`
#### Create database default folder
`mkdir -p data/db`
#### Run mongodb
`mogod`
## Use as command line tool.
Call mobileD to see all available options.
--subscribe
--unsubscribe
--useMongoDB
--verbose