forked from DeviceFarmer/stf
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-use DI syrup for devutil and refactoring depends on it -delete redundant part -add default value and warning -add different ways to get vendor's market name -get marketname from settings
- Loading branch information
a.chistov
committed
Jan 14, 2025
1 parent
8c2c730
commit 6675f4e
Showing
9 changed files
with
248 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
import syrup from '@devicefarmer/stf-syrup' | ||
import devutil from '../../../../util/devutil.js' | ||
import logger from '../../../../util/logger.js' | ||
import properties from '../../support/properties.js' | ||
import display from './display.js' | ||
import phone from './phone.js' | ||
export default syrup.serial() | ||
.dependency(properties) | ||
.dependency(display) | ||
.dependency(phone) | ||
.define(function(options, properties, display, phone) { | ||
.dependency(devutil) | ||
.define(function(options, display, phone, devutil) { | ||
var log = logger.createLogger('device:plugins:identity') | ||
function solve() { | ||
|
||
async function solve() { | ||
log.info('Solving identity') | ||
let identity = devutil.makeIdentity(options.serial, properties) | ||
let identity = await devutil.makeIdentity() | ||
identity.display = display.properties | ||
identity.phone = phone | ||
if (options.deviceName) { | ||
identity.module = options.deviceName | ||
} | ||
return identity | ||
} | ||
|
||
return solve() | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.