Skip to main content
Glama
IOSLaunchArguments.kt685 B
package util object IOSLaunchArguments { fun Map<String, Any>.toIOSLaunchArguments(): List<String> { if (isEmpty()) return emptyList() val iOSLaunchArgumentsMap = mutableMapOf<String, Any>() forEach { (key, value) -> if (value is Boolean) { iOSLaunchArgumentsMap[key] = value } else { if (!key.startsWith("-")) { iOSLaunchArgumentsMap["-$key"] = value } else { iOSLaunchArgumentsMap[key] = value } } } return iOSLaunchArgumentsMap.toList().flatMap { listOf(it.first, it.second.toString()) } } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mobile-dev-inc/Maestro'

If you have feedback or need assistance with the MCP directory API, please join our Discord server