Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
theromis committed Oct 14, 2024
1 parent 5865539 commit 095510c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion modules/share/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ def configure(env):
if env["platform"] in ["ios", "macos"]:
env.Append(LINKFLAGS=["-ObjC"])
env.Append(CPPPATH=["#core"])
#env.Append(LINKFLAGS=["-lStoreKit.macos." + env["arch"]])
# env.Append(LINKFLAGS=["-lStoreKit.macos." + env["arch"]])
10 changes: 6 additions & 4 deletions modules/share/godot_share.mm
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,21 @@

void GodotShare::rate() {
#if TARGET_OS_IPHONE
/* SKStoreReviewController replaced byAppStore.requestReview(in: scene)
if (@available(iOS 14.0, *)) {
UIViewController *root_controller = [[UIApplication sharedApplication] delegate].window.rootViewController;
[SKStoreReviewController requestReviewInScene:root_controller.view.window.windowScene];
} else if (@available(iOS 10.3, *)) {
[SKStoreReviewController requestReview];
}
*/
#elif TARGET_OS_OSX
/* linker error
https://developer.apple.com/documentation/storekit/skstorereviewcontroller
/* linker error
https://developer.apple.com/documentation/storekit/skstorereviewcontroller
if (@available(macos 10.14, *)) {
[SKStoreReviewController requestReview];
}
*/
}
*/
NSString *appId = @"id6446126962"; // Your app Id from the Itunes Connect portal

NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"https://apps.apple.com/app/%@?action=write-review", appId]];
Expand Down

0 comments on commit 095510c

Please sign in to comment.