Open littlema0404 opened 3 days ago
Looks like the intent in #1018 was that you'd access booleans differently?
Looks like the intent in https://github.com/mobile-dev-inc/maestro/pull/1018 was that you'd access booleans differently?
Yeh, for here a little bit confused.
like example from #1018
ProcessInfo.processInfo.arguments.contains("isMaestro")
The contains method only indicates whether the ‘isMaestro’ launch argument is present, but it doesn’t allow me to retrieve its boolean value.
So I have to use UserDefault
to retrieve its boolean value. But I can't find it
Is there an existing issue for this?
Steps to reproduce
Actual results
Expected results
About app
Closed source iOS native app
About environment
Java version
OS and its version
Processor architecture
Logs
Logs
``` ```Maestro version
1.38.1
How did you install Maestro?
install script (https://get.maestro.mobile.dev)
Anything else?
-
This is the specification for iOS launch arguments. Currently, only when the YAML value type is Bool, the - sign is not added. However, if the value type is Int or String, the - sign is automatically added.When I use UserDefaults to retrieve argumentA, I won’t be able to find it.
I think the issue might be here.
https://github.com/mobile-dev-inc/maestro/blob/main/maestro-ios-driver/src/main/kotlin/util/IOSLaunchArguments.kt#L10-L18
It seems intentional, but I don’t understand why only boolean values are not prefixed with
-
.