Skip to content

Commit

Permalink
Merge pull request #1375 from OneSignal/rename_app_store_flagged_method
Browse files Browse the repository at this point in the history
Rename internal method to workaround false App Store flagging
  • Loading branch information
nan-li authored Mar 4, 2024
2 parents d874eca + bf0fe74 commit d15d403
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ typedef void (^OSDialogActionCompletion)(int tappedActionIndex);
@end

@interface OSDialogInstanceManager : NSObject
+ (void)setSharedInstance:(NSObject<OSDialogPresenter> *_Nonnull)instance;
+ (void)setSharedOSDialogInstance:(NSObject<OSDialogPresenter> *_Nonnull)instance;
+ (NSObject<OSDialogPresenter> *_Nullable)sharedInstance;
@end
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ of this software and associated documentation files (the "Software"), to deal
@implementation OSDialogInstanceManager

static NSObject<OSDialogPresenter> *_sharedInstance;
+ (void)setSharedInstance:(NSObject<OSDialogPresenter> *_Nonnull)instance {
+ (void)setSharedOSDialogInstance:(NSObject<OSDialogPresenter> *_Nonnull)instance {
_sharedInstance = instance;
}

Expand Down
2 changes: 1 addition & 1 deletion iOS_SDK/OneSignalSDK/Source/OneSignal.m
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ + (void)load {
// sessionLaunchTime = [NSDate date];
// TODO: sessionLaunchTime used to always be set in load

[OSDialogInstanceManager setSharedInstance:[OneSignalDialogController sharedInstance]];
[OSDialogInstanceManager setSharedOSDialogInstance:[OneSignalDialogController sharedInstance]];
}

/*
Expand Down

0 comments on commit d15d403

Please sign in to comment.