java.lang.Object
com.android.build.gradle.external.cmake.server.ServerUtils

public class ServerUtils extends Object
Utility class for Cmake server.
  • Constructor Details

    • ServerUtils

      public ServerUtils()
  • Method Details

    • isHelloResultValid

      public static boolean isHelloResultValid(HelloResult helloResult)
      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

      public static boolean isHandshakeResultValid(@NonNull HandshakeResult handshakeResult)
      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

      public static boolean isConfigureResultValid(ConfigureResult configureResult)
      Validates the given response to configure command from Cmake server
      Returns:
      true if the given ConfigureResult is valid
    • isComputedResultValid

      public static boolean isComputedResultValid(@NonNull ComputeResult computeResult)
      Validates if the result of compute from Cmake server is valid
      Returns:
      true if the given ComputeResult is valid
    • isCodeModelValid

      public static boolean isCodeModelValid(@NonNull CodeModel codeModel)
      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

      public static boolean isCmakeInputsResultValid(@NonNull CmakeInputsResult cmakeInputsResult)
      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.