Skip to content

Commit

Permalink
stop using maestro cloud api
Browse files Browse the repository at this point in the history
  • Loading branch information
herval committed Jan 23, 2025
1 parent dcd2f20 commit 93e000a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
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

0 comments on commit 93e000a

Please sign in to comment.