Commit Graph

45 Commits

Author SHA1 Message Date
Evan Hahn
67ea0d0516 Fix some trivial compiler warnings
This fixes 10 of our Xcode warnings:

- `MessageReactionPicker.swift` was declaring a variable and not using
  it, leading to "Immutable value 'emoji' was never used". I simply
  removed it.
- `Stripe.swift` had a bunch of unnecessary `public`s, which caused
  "'public' modifier is redundant for static property declared in a
  public extension".
- `SubscriptionManager.swift` had an unnecessary `try`, causing "No
  calls to throwing functions occur within 'try' expression".
- `CallService.swift:696` was calling a function and not using its
  result, so I annotated that function with `@discardableResult`.
- `MobileCoinAPI+Configuration.swift` declared a variable with `var`
  that should've used `let`.

Nothing major here, but wanted to find ones that were easy to fix.
2022-04-19 09:28:15 -05:00
Evan Hahn
8b072620a6 Add "Donation Receipts" view 2022-04-11 16:21:12 -05:00
Nora Trapp
05313c3725 Update to LibSignalClient v0.15.0 2022-03-24 11:55:45 -07:00
Dimitris Apostolou
62724cf0be Fix typos 2022-03-18 11:31:06 -07:00
Martin Böttcher
8f9be31ba3 replaced NSLocalizedStringFromAppBundle with OWSLocalizedString 2022-03-08 10:17:25 +01:00
Martin Böttcher
c0adfbfb32 NSLocalizedString is replaced by NSLocalizedStringFromAppBundle (reading strings from the bundle of the main app) for all source files called by an app extension and the localizable files are removed for the app extension targets. 2022-03-07 13:29:06 +01:00
Martin Böttcher
c4f967ef46
removed checks testing for iOS12.0 or newer (#4030) 2022-02-25 17:39:12 +01:00
Evan Hahn
0ffba32ba3 Cancel subscription when deleting account 2022-02-24 16:51:09 -06:00
Nora Trapp
aeaf5d86d6 Don't show subscription megaphone again until your subscription has been expired for at least 2 weeks 2022-02-11 13:09:20 -08:00
Nora Trapp
a2f51dc4a3 Cleanup old feature flags 2022-01-24 10:53:55 -08:00
Nora Trapp
db115606e3 Remove ZKGroup 2022-01-03 12:00:19 -08:00
Nora Trapp
c81dfcdb0d Stripe uses american spelling of 'canceled' 2022-01-03 10:55:49 -08:00
Nora Trapp
877b9ced6e Fix forced unwraps in SubscriptionManager 2022-01-03 10:28:44 -08:00
Nora Trapp
f2c09045ca Sync additional badge info with storage service 2021-12-17 14:07:40 -08:00
Nora Trapp
8da582715f Fix badge expiry 2021-12-17 14:04:42 -08:00
Eugene Bistolas
4f1b8b6002 [Badging] Expiry state incorrectly forward carried 2021-12-17 14:01:02 -08:00
Eugene Bistolas
349479d328 [Badging] Last expiring badge is not invalidated when expected 2021-12-17 14:00:56 -08:00
Eugene Bistolas
7682ad23f6 [Badging] Subscription badge expiry UI 2021-12-17 13:59:38 -08:00
Eugene Bistolas
5dd35ae9f8 [Badging] Signal devices when subscription status changes 2021-12-17 13:58:47 -08:00
Eugene Bistolas
93a59cb0f2 [Badging] Determine if user has current subscription via cached data 2021-12-17 13:58:39 -08:00
Eugene Bistolas
07610dbe96 [Badging] Ensure client does not reredeem badge receipts unnecessairly 2021-11-29 11:35:29 -10:00
Nora Trapp
0c8e6a087b Add support for donations with Maestro cards 2021-11-29 11:35:17 -10:00
Eugene Bistolas
b41cbca9e8 [Badging] Cancel and re-initiate subscription if level is upgraded under payment failure 2021-11-29 11:34:57 -10:00
Eugene Bistolas
aadf5c137d [Badging] Remove receipt emails from subscription/boosts 2021-11-23 14:47:25 -10:00
Eugene Bistolas
a9a30e4959 [Badging] redemption failure feedback 2021-11-23 11:32:48 -10:00
Eugene Bistolas
7d4310cd36 [Badging] Better handling of durable job HTTP failures 2021-11-23 11:23:41 -10:00
Eugene Bistolas
a3e625e0a8 [Badging] Handle incomplete state from Stripe per server spec 2021-11-23 09:51:47 -10:00
Eugene Bistolas
8a2dfcb09e [Badging] Handle receipt redemption 402 errors, set key if user cancels subscription 2021-11-22 13:53:45 -10:00
Nora Trapp
14fedf2450 Make boost redemption retryable 2021-11-18 13:29:30 -08:00
Nora Trapp
18a7ad8b2c Fix badge visibility on acquisition 2021-11-17 16:05:58 -08:00
Eugene Bistolas
64801e3167 [Badging] Allow subscription and boost flows if Apple Pay is supported in region 2021-11-17 13:23:00 -10:00
Nora Trapp
edc89c3db1 Store badge receipt credential presentation on the durable job 2021-11-17 15:14:03 -08:00
Eugene Bistolas
a3662309c8 [Badging] Boost durable receipt redemption + apple pay cancellation, plus polish 2021-11-17 09:29:02 -10:00
Nora Trapp
faba7621b3 Include the donor's email address for receipt purposes in the billing information 2021-11-16 15:39:39 -08:00
Nora Trapp
db692be18d Hook up badge visibility on thanks sheet 2021-11-16 11:40:40 -08:00
Nora Trapp
c89b0016f6 Add boost thank you flow 2021-11-16 11:40:40 -08:00
Eugene Bistolas
8765108a1e [Badging] Durable redemption job pending/failure UI 2021-11-16 09:50:35 -08:00
Eugene Bistolas
31e064709f [Badging] Prevent subscription heartbeat on non-primary device, support receipt_email when confirming setupIntents 2021-11-15 13:20:23 -10:00
Eugene Bistolas
73dec1860e [Badging] Cancel subscription setup / upgrade process if user cancels ApplePay 2021-11-15 12:49:39 -10:00
Eugene Bistolas
78cb9352c3 [Badging] Durable receiptCredential fetch and redemption 2021-11-15 12:47:35 -10:00
Nora Trapp
fd50a0bfc5 Cleanup 2021-11-15 13:47:06 -08:00
Nora Trapp
095b54d13d Add boost view controller 2021-11-15 13:24:58 -08:00
Nora Trapp
e14b19e3db Hookup rudimentary plumbing for boost 2021-11-15 13:24:58 -08:00
Eugene Bistolas
b3d1bdefd1 [Donor Badges] Current subscriber UI 2021-11-09 18:29:55 -10:00
Eugene Bistolas
64f126ae3f [Badging] Badge receipt credential fetch and redemption 2021-11-09 14:26:05 -08:00