Skip to content

Commit

Permalink
Merge pull request #40 from theappbusiness/chore/fix-mistake-in-readm…
Browse files Browse the repository at this point in the history
…e-arrays

README: Update the new array section
  • Loading branch information
theblixguy authored Jun 14, 2019
2 parents e7a5fc6 + 9c5d130 commit 79cec19
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ You have to make the type in your plist a string, and input either a number -- e

# Arrays

Configen also supports reading arrays from the plist. For example, you can create an array of certificate hashes for pinning purposes and then in the mapping file, declare the configuration variable as something like `arrayOfHashes: [String]` and configen will automatically generate an array for you.
Configen also supports reading arrays from the plist. For example, you can create an array of certificate hashes for pinning purposes and configen will automatically map them to an array in the generated configuration file.

The downside of using arrays in plist is that the order of the array and whether there are any array elements at all are not guaranteed, so keep that in mind when using this functionality.
The downside of using an array in the plist is that the order of the array and whether there are any array elements at all is not guaranteed, so keep that in mind when using this functionality.

Example:

Expand Down Expand Up @@ -165,8 +165,8 @@ Example:

```
static let arrayOfHashes: [String] = [
9BV3692736V893B47V893BY4V94B8V6123984BV6983V6B093,
BVQ09PY89V86BY98VY9876BV9786B98687B6976BOP967BP96,
PB869869P6B76P9B7869P8B69P697P69769769P7B697PB89B
"9BV3692736V893B47V893BY4V94B8V6123984BV6983V6B093",
"BVQ09PY89V86BY98VY9876BV9786B98687B6976BOP967BP96",
"PB869869P6B76P9B7869P8B69P697P69769769P7B697PB89B"
]
```

0 comments on commit 79cec19

Please sign in to comment.