-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature] Add the mobileInstall request
Merge-request: BAZEL-MR-869 Merged-by: Lev Leontev <lev.leontev@jetbrains.com>
- Loading branch information
1 parent
10bab42
commit a4dc63c
Showing
6 changed files
with
78 additions
and
0 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
29 changes: 29 additions & 0 deletions
29
protocol/src/main/kotlin/org/jetbrains/bsp/MobileInstall.kt
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package org.jetbrains.bsp | ||
|
||
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, | ||
) | ||
|
||
public data class MobileInstallResult( | ||
val statusCode: StatusCode, | ||
var originId: String? = null, | ||
) |
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