-
Notifications
You must be signed in to change notification settings - Fork 316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrates RCPurchases #758
Migrates RCPurchases #758
Conversation
Resolves #546 (last file to be migrated)
Adding @jeiting to review the ObjC updates. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great work so far! I'm still reviewing, left a few comments
PurchasesCoreSwift/FoundationExtensions/Thread+Extensions.swift
Outdated
Show resolved
Hide resolved
assertionHappened.fulfill() | ||
} | ||
let purchases = Purchases.shared | ||
print(purchases) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, I really like the approach 👌🏼 IMO, modifying the production code and adding testing staff is not good but I think in this case it's necessary. I was thinking of another approach, something like @_dynamicReplacement
but I couldn't get anything better ¯_(ツ)_/¯
BTW, I think this print
method could be removed, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! I totally agree, adding in code in prod to make testing better is almost always a sign we should refactor something
Also, that print method, whooooops.
Resolves #546