All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.kotlin.org.jetbrains.bsp.protocol.MobileInstall.kt Maven / Gradle / Ivy

Go to download

An implementation of the Build Server Protocol for Bazel. Allows clients such as IntelliJ to obtain build specific information in order to improve the experience of users in the IDE.

There is a newer version: 3.2.0-20241118-a099775e0-NIGHTLY
Show newest version
package org.jetbrains.bsp.protocol

import ch.epfl.scala.bsp4j.BuildTargetIdentifier
import ch.epfl.scala.bsp4j.StatusCode
import com.google.gson.annotations.JsonAdapter
import org.eclipse.lsp4j.jsonrpc.json.adapters.EnumTypeAdapter

/**
 * See [mobile-install docs](https://bazel.build/docs/user-manual#start)
 */
@JsonAdapter(EnumTypeAdapter.Factory::class)
public enum class MobileInstallStartType(public val value: Int) {
  NO(1),
  COLD(2),
  WARM(3),
  DEBUG(4),
}

public data class MobileInstallParams(
  val target: BuildTargetIdentifier,
  val originId: String,
  val targetDeviceSerialNumber: String,
  val startType: MobileInstallStartType,
  val adbPath: String?,
)

public data class MobileInstallResult(val statusCode: StatusCode, var originId: String? = null)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy