-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Kaspresso plugin #417
base: master
Are you sure you want to change the base?
Add Kaspresso plugin #417
Conversation
logger.d("The created adbCommand=$adbCommand") | ||
cmdCommandPerformer.perform(adbCommand) | ||
val adbCommand = "${ adbServerPort?.let { "-P $adbServerPort " } ?: "" }-s $deviceName ${command.body}" | ||
logger.d("The created adbCommand=adb $adbCommand") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be cool to print out actual adb path since it's configurable. Otherwise it may mislead someone during adb related issues debugging
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this good idea. I'm add print adb path to log at server startup.
|
||
fun startDevicesObserving() { | ||
fun startDevicesObservingSync() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I would just mention that this method is blocking in documentation as you did in AdbCommandPerformer::perform. I think blocking behavior is an expected one. Another hint is that there's startDevicesObservingAsync
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I'm add documentation to this methods
@@ -11,6 +11,6 @@ android { | |||
dependencies { | |||
implementation(libs.kotlinStdlib) | |||
implementation(libs.appcompat) | |||
implementation(projects.adbServer.adbserverDevice) | |||
implementation("com.kaspersky.android-components:adbserver-device") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: would be cool to use toml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
toml require to set version, yes in this case we can set any version, but i thing current way is more clear in this situation
dependencies { | ||
classpath(libs.kotlinPlugin) | ||
classpath(libs.androidPlugin) | ||
classpath("com.kaspersky.kaspresso:kaspresso-plugin") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: would be cool to use toml
@@ -21,8 +22,8 @@ dependencies { | |||
implementation(libs.constraint) | |||
implementation(libs.multidex) | |||
|
|||
androidTestImplementation(projects.kaspresso) | |||
androidTestImplementation(projects.allureSupport) | |||
androidTestImplementation("com.kaspersky.android-components:kaspresso") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: would be cool to use toml
@@ -52,14 +53,14 @@ dependencies { | |||
implementation(libs.lifecycleViewModelComposeKtx) | |||
implementation(libs.composeRuntimeLiveData) | |||
|
|||
androidTestImplementation(projects.kaspresso) | |||
androidTestImplementation(projects.composeSupport) | |||
androidTestImplementation("com.kaspersky.android-components:kaspresso") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: would be cool to use toml
…tachedDevicesByAdb function call
/** | ||
* @param adbPath - path to adb binary | ||
*/ | ||
class AdbCommandPerformer( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class AdbCommandPerformer( | |
class AdbCommandExecutor( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I found CmdCommandPerformer
exists already
group = "com.kaspersky.kaspresso" | ||
gradlePlugin { | ||
plugins { | ||
create("SignerPlugin") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a SignerPlugin
} | ||
|
||
private val devices: MutableCollection<DeviceMirror> = mutableListOf() | ||
private var isRunning = AtomicBoolean(false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it accessed from multiple threads?
Add Kaspresso plugin to implement issue #247
What changed:
enableFeaturePreview
for features that enabled by defaultcompose-support
&&allure-support
to satisfy gradle conventionsOut of scope for current pr: