cloudant / CDTDatastore

Cloudant Sync iOS datastore library.
Apache License 2.0
175 stars 53 forks source link

Fix listIndexes declaration #418

Closed tomblench closed 6 years ago

tomblench commented 6 years ago

What

Fix crash in listIndexes on swift.

How

Fix listIndexes declaration.

This method returns a dictionary keyed by name, and each entry is itself a dictionary. The previous declaration was incorrect but only became apparent when invoking this on swift, which crashed whilst trying to bridge the dictionary from objective-c to swift.

Testing

Reproduced original issue and tested fix with a custom test harness. Note that any automated testing is out of scope for this as there are currently no swift tests which run in jenkins/travis. This partly comes under #406.

Issues

417