README.md in snapshot-0.6.1 vs README.md in snapshot-0.7.0
- old
+ new
@@ -189,11 +189,12 @@
```ruby
languages([
"en-US",
"de-DE",
- "es-ES"
+ "es-ES",
+ ["cmn-Hans", "cmn-Hans_CN"] # you can specify a locale if needed
])
```
### JavaScript file
Usually ```snapshot``` automatically finds your JavaScript file. If that's not the case, you can pass the path
@@ -238,9 +239,16 @@
Here is an example for adding a preprocessor macro `SNAPSHOT` and a custom build setting `SNAPSHOT_ENABLE`.
```ruby
custom_build_args "GCC_PREPROCESSOR_DEFINITIONS='$(inherited) SNAPSHOT=1' SNAPSHOT_ENABLE = YES"
+```
+
+### Custom Args for the run command
+Add a ```custom_run_args``` line to your ```Snapfile``` to add custom arguments to the run command (i.e. the invocation of `instruments`. You can use this to set the value of a specific `NSUserDefaults` key, for example
+
+```ruby
+custom_run_args "-DidViewOnboarding YES"
```
### Custom Build Command
If for some reason, the default build command does not work for your project, you can pass your own build script. The script will be executed **once** before the tests are being run.