Releases: apphud/ApphudSDK
Releases · apphud/ApphudSDK
1.2.0
1.2
What's new in 1.2:
- Added new delegate method
func apphudScreenDismissAction(screenName: String, controller: UIViewController) -> ApphudScreenDismissAction
. Using this delegate method you can push your own controller into Apphud Screens hierarchy. - Added new delegate method
func apphudDidSelectSurveyAnswer(question: String, answer: String, screenName: String)
. - Added new method
func appStoreReceipt() -> String?
which returns base64 encoded App Store receipt string, if available. - Fixed bug with
func fetchRawReceiptInfo
method wasn't working for receipts made using local StoreKit Testing. - Added Rule screens caching to improve loading speed.
- Errors are now correctly printed to Xcode console.
- Added
isSandbox: Bool
andisLocal: Bool
properties toApphudSubscription
andApphudNonRenewingPurchase
. - Internal improvements
1.1
What's new in 1.1:
- Added new method
public static func presentOfferCodeRedemptionSheet()
to present offer code sheet on iOS 14. - Added new method
public static func validateReceipt()
which is basically the same as restoring purchases. - Internal improvements regarding product prices and transactions handling
- Fixes in documentation
1.0.4
What's new in 1.0.4:
- Added a new method
func fetchRawReceiptInfo(_ completion: @escaping (ApphudReceipt?) -> Void)
. Fetches raw receipt info in a wrappedApphudReceipt
model class with rawJSON property. This might be useful to getoriginal_application_version
value. - internal improvements
1.0
What's new in 1.0:
Apphud.purchaseWithoutValidation(...)
now returnsApphudPurchaseResult
object, the same asApphud.purchase(...)
method. Note that when purchasing without validation,ApphudSubscription
andApphudNonRenewingPurchase
objects will always be nil.- Added an optional delegate method to hardcode product identifiers instead of fetching them from Apphud servers. You can use it to avoid extra http request to slightly speed up fetching SKProducts from the App Store.
- Improved products fetching
- Some minor internal improvements
0.18.5
0.18.4
0.16
0.15
0.14
What's new in 0.14:
- Fixed bug when consumable or nonrenewing subscription was treated as purchased, when user cancels pending payment if previously had purchases with the same product ids
- Added two new delegate methods to
ApphudUIDelegate
- Minor improvements to
Apphud.updateUserID(_ userID: String)
method - Minor improvements to [automatic / reserve ] submission of attribution params