Signal-iOS/SignalMessaging
Evan Hahn 4675434c6c Add FiatMoney type
This change should have no user impact.

We commonly pair a currency, like USD, and an amount, like 1.23. This
adds the `FiatMoney` struct. It's a simple struct with two fields.

After adding it, I tried to use it everywhere. (It's possible I missed a
spot.)

I think this is a useful change on its own, but it'll be nice for an
upcoming change, too.

See also: [Android's equivalent class][0].

[0]: cb65347bb3/core-util/src/main/java/org/signal/core/util/money/FiatMoney.java (L1)
2022-10-26 17:04:51 -05:00
..
attachments Change license to AGPL 2022-10-13 08:25:37 -05:00
calls Change license to AGPL 2022-10-13 08:25:37 -05:00
categories Change license to AGPL 2022-10-13 08:25:37 -05:00
contacts Move system contact names to ContactRecord 2022-10-26 15:00:36 -07:00
Donations Add FiatMoney type 2022-10-26 17:04:51 -05:00
environment Fetch and persist remote megaphones 2022-10-26 15:03:08 -07:00
groups Limit scope of undiscoverable gv2 phone numbers 2022-10-24 10:21:05 -07:00
Notifications Change license to AGPL 2022-10-13 08:25:37 -05:00
Payments [Payments] Show alert if client is outdated 2022-10-25 15:43:43 -07:00
profiles Use ProfileFetcherJob directly when in Swift 2022-10-24 23:26:49 -07:00
Storage Service Move system contact names to ContactRecord 2022-10-26 15:00:36 -07:00
Subscriptions Add FiatMoney type 2022-10-26 17:04:51 -05:00
test Add FiatMoney type 2022-10-26 17:04:51 -05:00
utils Various fixes related to enabling/disabling stories 2022-10-13 08:33:13 -07:00
Info.plist Shared framework between app and extension 2017-11-29 13:58:27 -08:00
SignalMessaging-Prefix.pch Change license to AGPL 2022-10-13 08:25:37 -05:00
SignalMessaging.h Change license to AGPL 2022-10-13 08:25:37 -05:00