xamarin-macios/mk
Rolf Bjarne Kvinge 34d1fca7f6
[StoreKit] Bind AppStore.requestReview. Fixes #21410. (#21441)
The existing Objective-C class to request an App Store review (SKStoreReviewController) is deprecated in Xcode 16+, and it doesn't even work on the corresponding OS versions.

The replacement API is Swift-only, but luckily it's a very simple API (just a static method), so it's possible to bind it manually.

This required a few other changes/improvements:

* Add support for Swift code in our runtime.

* Just to keep the changes to a minimum, bump the min OS version for legacy code to match the .NET min OS versions. This is because our build logic uses the legacy min versions when compiling native code (a more involved fix would be to update all the build logic to build native code to use the .NET min OS versions, but that's not the point of this PR, so I took the easy route). Fixes #10659.

I've tested the method locally, and it seems to work fine, but I've still marked
it as experimental for now. There are no unit tests because calling the method will
put up a dialog, which won't work correctly in unit tests.

Fixes https://github.com/xamarin/xamarin-macios/issues/21410.
Fixes https://github.com/xamarin/xamarin-macios/issues/10659.
2024-10-16 11:06:47 +02:00
..
.gitignore Automatically rerun 'make reset[-versions]' if the maccore dependency was reset. (#3442) 2018-02-09 15:20:06 +01:00
colors.mk Show better error when the mono archive isn't available. Fixes xamarin-macios/maccore#1655. (#6155) 2019-05-29 05:57:49 -07:00
mono.mk [mono] Bump mono to match android (#16851) 2022-11-22 07:28:50 +01:00
quiet.mk [dotnet] Increase verbosity when doing 'dotnet workload install' in CI. (#21122) 2024-08-29 11:30:38 +02:00
rules.mk [StoreKit] Bind AppStore.requestReview. Fixes #21410. (#21441) 2024-10-16 11:06:47 +02:00
subdirs.mk
versions.mk Remove the opentk submodule. (#21370) 2024-10-10 10:27:00 +02:00
xamarin-reset.sh [mk] Support https urls for maccore. (#5830) 2019-04-02 15:32:54 +02:00
xamarin.mk Bump maccore. (#21319) 2024-09-30 23:55:33 +02:00