Partnerize Mobile SDK Migration Guide
Benefits of Migration
- Overhauled public API, it's not much clearer what the SDK does, including the errors that can be returned.
- Additional public methods such as
isClickRequest
and an async version ofhandleInboundURL
have been added. - Better logging with the ability to attach a custom Logger.
- Timeout configuration options.
- More features going forward.
Breaking Changes
- Most methods now return a Swift
Result
type. beginConversion
has been renamed tohandleInboundURL
. This method now takes additional parameters such aspersistClickRef: Bool
and an optional completion handler.beginConversion
now returns a fullClick
object (wrapped in a swiftResult
), rather than a just a destination URL,desinationUrl
is accessible viaclick.destinationUrl
.completeConversion
now takes aConversion
object as it's first parameter, rather than updating a static conversion property onPartnerize
.- The
completeConversion
completion handler now only has one parameterResult<ConversionResult, PartnerizeError>
, instead of the previousBool
andError
. - There is no longer a static
Partnerze.conversion
instance, construct aConversion
object and pass intocompleteConversion
.