Migrar el SDK de Adapty para iOS a v3.15

Si usas Paywall Builder en modo Observer, a partir del SDK de iOS 3.15 necesitas implementar un nuevo método observerModeDidInitiateRestorePurchases(onStartRestore:onFinishRestore:). Este método te da más control sobre la lógica de restauración, permitiéndote gestionar la restauración de compras en tu propio flow. Para más detalles sobre la implementación, consulta Mostrar paywalls de Paywall Builder en modo Observer.

func observerMode(didInitiatePurchase product: AdaptyPaywallProduct,
                 onStartPurchase: @escaping () -> Void,
                 onFinishPurchase: @escaping () -> Void) {
      // use the product object to handle the purchase
      // use the onStartPurchase and onFinishPurchase callbacks to notify AdaptyUI about the process of the purchase
}

+ func observerModeDidInitiateRestorePurchases(onStartRestore: @escaping () -> Void,
+                                            onFinishRestore: @escaping () -> Void) {
+      // use the onStartRestore and onFinishRestore callbacks to notify AdaptyUI about the process of the restore
+ }