Skip to content
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

stop using maestro cloud api #2268

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class CloudCommand : Callable<Int> {
if (projectId != null) {
"https://api.copilot.mobile.dev/v2/project/$projectId"
} else {
"https://api.mobile.dev"
throw CliError("You need to specify a Robin project with --projectId")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class UploadCommand : Callable<Int> {
private var apiKey: String? = null

@Option(order = 1, names = ["--apiUrl"], description = ["API base URL"])
private var apiUrl: String = "https://api.mobile.dev"
private var apiUrl: String = "https://api.copilot.mobile.dev"

@Option(order = 2, names = ["--mapping"], description = ["dSYM file (iOS) or Proguard mapping file (Android)"])
private var mapping: File? = null
Expand Down
2 changes: 1 addition & 1 deletion maestro-cli/src/main/java/maestro/cli/util/EnvUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import java.util.concurrent.TimeUnit
import java.util.concurrent.TimeoutException

object EnvUtils {
private const val PROD_API_URL = "https://api.mobile.dev"
private const val PROD_API_URL = "https://api.copilot.mobile.dev"

val OS_NAME: String = System.getProperty("os.name")
val OS_ARCH: String = System.getProperty("os.arch")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class MockInteractor {
companion object {
private val API_URL by lazy {
if (System.getProperty("MAESTRO_CLOUD_API_URL").isNullOrEmpty()) {
"https://api.mobile.dev"
"https://api.copilot.mobile.dev"
} else {
System.getProperty("MAESTRO_CLOUD_API_URL")
}
Expand Down
2 changes: 1 addition & 1 deletion maestro-studio/web/src/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const API = {
signal?: AbortSignal;
}): Promise<AiResponseType> => {
const response = await fetch(
"https://api.mobile.dev/mai/generate-command",
"https://api.copilot.mobile.dev/v2/maestro-studio/generate-command",
{
method: "POST",
headers: {
Expand Down
2 changes: 1 addition & 1 deletion maestro-studio/web/src/api/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const handlers = [
})
);
}),
http.get("https://api.mobile.dev/mai/generate-command", () => {
http.get("https://api.copilot.mobile.dev/v2/maestro-studio/generate-command", () => {
return new Response(
JSON.stringify({
command: '- tapOn: "Search"',
Expand Down
Loading