amplitude / Amplitude-Swift

Native iOS/tvOS/macOS/watchOS SDK
MIT License
32 stars 22 forks source link

feat: Improve codable support #192

Closed crleona closed 3 months ago

crleona commented 3 months ago

Summary

Use a more robust encoding mechanism for encoding various properties dictionaries to JSON, that better preserves original types, especially around NSNumber conversion back to its original type.

Note that some non-encodable properties that were previously dropped will now be encoded as "[Non-Encodable]" to make this more clear for consumers.

Checklist

github-actions[bot] commented 3 months ago

:tada: This PR is included in version 1.7.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: