Skip to content

Commit

Permalink
Merge pull request #41 from Purchasely/fix/ios-show-controller
Browse files Browse the repository at this point in the history
Fix invalid method usage
  • Loading branch information
EPIKorial authored Aug 30, 2024
2 parents 7a2d2a1 + 4393c99 commit 4f36cc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Native/IOS/PurchaselyBridge.mm
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void showNavigationControllerForView(UIViewController* controller) {
[presentedPresentationViewController.navigationBar setTintColor: [UIColor whiteColor]];
presentedPresentationViewController.modalPresentationStyle = UIModalPresentationFullScreen;
}
[Purchasely showController:presentedPresentationViewController type: PLYUIControllerTypeProductPage];
[Purchasely showController:presentedPresentationViewController type:PLYUIControllerTypeProductPage from:nil];
}
}

Expand Down Expand Up @@ -250,7 +250,7 @@ void _purchaselyPresentSubscriptions() {
UINavigationController *navCtrl = [[UINavigationController alloc] initWithRootViewController:ctrl];
ctrl.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem: UIBarButtonSystemItemDone target:navCtrl action:@selector(close)];

[Purchasely showController:navCtrl type: PLYUIControllerTypeSubscriptionList];
[Purchasely showController:navCtrl type: PLYUIControllerTypeSubscriptionList from:nil];
}

void _purchaselyPurchase(const char* planId, const char* offerId,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.purchasely.unity",
"version": "4.5.0",
"version": "4.5.1",
"displayName": "Purchasely",
"description": "Subscription optimization made easy",
"unity": "2019.4",
Expand Down

0 comments on commit 4f36cc6

Please sign in to comment.