Class ServerUtils
java.lang.Object
com.android.build.gradle.external.cmake.server.ServerUtils
Utility class for Cmake server.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisCmakeInputsResultValid(CmakeInputsResult cmakeInputsResult) Validates if the response to cmake inputs from Cmake server is validstatic booleanisCodeModelValid(CodeModel codeModel) Validates if the response to code model from Cmake server is validstatic booleanisComputedResultValid(ComputeResult computeResult) Validates if the result of compute from Cmake server is validstatic booleanisConfigureResultValid(ConfigureResult configureResult) Validates the given response to configure command from Cmake serverstatic booleanisHandshakeResultValid(HandshakeResult handshakeResult) Validates the given handshake result object.static booleanisHelloResultValid(HelloResult helloResult) Validates the given hello result object.
-
Constructor Details
-
ServerUtils
public ServerUtils()
-
-
Method Details
-
isHelloResultValid
Validates the given hello result object.- Parameters:
helloResult- - given hello result received from Cmake server- Returns:
- true if the given HelloResult object is valid
-
isHandshakeResultValid
Validates the given handshake result object.- Parameters:
handshakeResult- - given handshake result received from Cmake server- Returns:
- true if the given HandshakeResult object is valid
-
isConfigureResultValid
Validates the given response to configure command from Cmake server- Returns:
- true if the given ConfigureResult is valid
-
isComputedResultValid
Validates if the result of compute from Cmake server is valid- Returns:
- true if the given ComputeResult is valid
-
isCodeModelValid
Validates if the response to code model from Cmake server is valid- Returns:
- true if the given CodeModel has all the fields that are required by gradle to work as expected.
-
isCmakeInputsResultValid
Validates if the response to cmake inputs from Cmake server is valid- Returns:
- true if the given cmake Inputs has all the fields that are required by gradle to work as expected.
-