Skip to content

Commit

Permalink
rename UIPluginApplicationDelegateInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
irov committed Aug 27, 2023
1 parent 1bf462b commit 145c002
Show file tree
Hide file tree
Showing 30 changed files with 45 additions and 45 deletions.
2 changes: 1 addition & 1 deletion src/Environment/iOS/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ src
iOSDetail.mm

UIMainApplicationDelegateInterface.h
UIProxyApplicationDelegateInterface.h
UIPluginApplicationDelegateInterface.h
)

ADD_MENGINE_LIBRARY(Environment)
4 changes: 2 additions & 2 deletions src/Environment/iOS/UIMainApplicationDelegateInterface.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#include "Config/Config.h"

#import "Environment/iOS/UIProxyApplicationDelegateInterface.h"
#import "Environment/iOS/UIPluginApplicationDelegateInterface.h"

#import <Foundation/Foundation.h>

@protocol UIMainApplicationDelegateInterface <NSObject>

- (NSArray<UIProxyApplicationDelegateInterface> *)getPluginDelegates;
- (NSArray<UIPluginApplicationDelegateInterface> *)getPluginDelegates;

- (void)notify:(NSString *)name args:(id)firstArg, ... NS_REQUIRES_NIL_TERMINATION;
- (void)notify:(NSString *)name arrayArgs:(NSArray<id> *)args;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#import <UIKit/UIKit.h>

@protocol UIProxyApplicationDelegateInterface <NSObject>
@protocol UIPluginApplicationDelegateInterface <NSObject>

#pragma mark - UIApplicationDelegate Protocol

Expand Down
2 changes: 1 addition & 1 deletion src/Environment/iOS/iOSDetail.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "Config/Config.h"

#import "Environment/iOS/UIProxyApplicationDelegateInterface.h"
#import "Environment/iOS/UIPluginApplicationDelegateInterface.h"

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
Expand Down
4 changes: 2 additions & 2 deletions src/Environment/iOS/iOSDetail.mm
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ id iOSGetUIProxyApplicationDelegate( Class delegateClass )
{
NSObject<UIMainApplicationDelegateInterface> * delegate = (NSObject<UIMainApplicationDelegateInterface> *)[[UIApplication sharedApplication] delegate];

NSArray<UIProxyApplicationDelegateInterface> * pluginDelegates = [delegate getPluginDelegates];
NSArray<UIPluginApplicationDelegateInterface> * pluginDelegates = [delegate getPluginDelegates];

for( NSObject<UIProxyApplicationDelegateInterface> * delegate : pluginDelegates ) {
for( NSObject<UIPluginApplicationDelegateInterface> * delegate : pluginDelegates ) {
if( [delegate isMemberOfClass:delegateClass] == YES ) {
return delegate;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#import "Environment/iOS/UIProxyApplicationDelegateInterface.h"
#import "Environment/iOS/UIPluginApplicationDelegateInterface.h"

#import <Adjust/Adjust.h>

@interface AppleAdjustApplicationDelegate : NSObject<UIProxyApplicationDelegateInterface, AdjustDelegate>
@interface AppleAdjustApplicationDelegate : NSObject<UIPluginApplicationDelegateInterface, AdjustDelegate>

@end
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@implementation AppleAdjustApplicationDelegate

#pragma mark - UIProxyApplicationDelegateInterface
#pragma mark - UIPluginApplicationDelegateInterface

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
if (Mengine::Helper::iOSHasBundlePluginConfig(@"MengineAppleAdjustPlugin") == NO) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "Environment/iOS/UIProxyApplicationDelegateInterface.h"
#import "Environment/iOS/UIPluginApplicationDelegateInterface.h"

@interface AppleDevToDevApplicationDelegate : NSObject<UIProxyApplicationDelegateInterface>
@interface AppleDevToDevApplicationDelegate : NSObject<UIPluginApplicationDelegateInterface>

@end
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@implementation AppleDevToDevApplicationDelegate

#pragma mark - UIProxyApplicationDelegateInterface
#pragma mark - UIPluginApplicationDelegateInterface

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
if (Mengine::Helper::iOSHasBundlePluginConfig(@"MengineAppleDevToDevPlugin") == NO) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "Environment/iOS/UIProxyApplicationDelegateInterface.h"
#import "Environment/iOS/UIPluginApplicationDelegateInterface.h"

@interface AppleFacebookApplicationDelegate : NSObject<UIProxyApplicationDelegateInterface>
@interface AppleFacebookApplicationDelegate : NSObject<UIPluginApplicationDelegateInterface>

@end
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@implementation AppleFacebookApplicationDelegate

#pragma mark - UIProxyApplicationDelegateInterface
#pragma mark - UIPluginApplicationDelegateInterface

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[FBSDKApplicationDelegate.sharedInstance application:application didFinishLaunchingWithOptions:launchOptions];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#import "Environment/iOS/UIProxyApplicationDelegateInterface.h"
#import "Environment/iOS/UIPluginApplicationDelegateInterface.h"

#import <FirebaseMessaging/FirebaseMessaging.h>

@interface AppleFirebaseMessagingApplicationDelegate : NSObject<UIProxyApplicationDelegateInterface, FIRMessagingDelegate>
@interface AppleFirebaseMessagingApplicationDelegate : NSObject<UIPluginApplicationDelegateInterface, FIRMessagingDelegate>

@end
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "Environment/iOS/UIProxyApplicationDelegateInterface.h"
#import "Environment/iOS/UIPluginApplicationDelegateInterface.h"

@interface AppleFirebaseApplicationDelegate : NSObject<UIProxyApplicationDelegateInterface>
@interface AppleFirebaseApplicationDelegate : NSObject<UIPluginApplicationDelegateInterface>

@end
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@implementation AppleFirebaseApplicationDelegate

#pragma mark - UIProxyApplicationDelegateInterface
#pragma mark - UIPluginApplicationDelegateInterface

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
@try {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "Environment/iOS/UIProxyApplicationDelegateInterface.h"
#import "Environment/iOS/UIPluginApplicationDelegateInterface.h"

@interface AppleFirebaseRemoteConfigApplicationDelegate : NSObject<UIProxyApplicationDelegateInterface>
@interface AppleFirebaseRemoteConfigApplicationDelegate : NSObject<UIPluginApplicationDelegateInterface>

@end
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

@implementation AppleFirebaseRemoteConfigApplicationDelegate

#pragma mark - UIProxyApplicationDelegateInterface
#pragma mark - UIPluginApplicationDelegateInterface

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
FIRRemoteConfigSettings *remoteConfigSettings = [[FIRRemoteConfigSettings alloc] init];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#import "Environment/iOS/UIProxyApplicationDelegateInterface.h"
#import "Environment/iOS/UIPluginApplicationDelegateInterface.h"

@interface AppleGeneralDataProtectionRegulationApplicationDelegate : NSObject<UIProxyApplicationDelegateInterface>
@interface AppleGeneralDataProtectionRegulationApplicationDelegate : NSObject<UIPluginApplicationDelegateInterface>

- (void) setGDPRPass:(BOOL) passGDPR;
- (BOOL) isGDPRPass;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ - (BOOL)isGDPRPass {
return passGDPR;
}

#pragma mark - UIProxyApplicationDelegateInterface
#pragma mark - UIPluginApplicationDelegateInterface

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
bool passGDPR = Mengine::Helper::AppleGetUserDefaultsBoolean( "mengine.gdpr.pass", false );
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "Environment/iOS/UIProxyApplicationDelegateInterface.h"
#import "Environment/iOS/UIPluginApplicationDelegateInterface.h"

@interface AppleMARSDKApplicationDelegate : NSObject<UIProxyApplicationDelegateInterface>
@interface AppleMARSDKApplicationDelegate : NSObject<UIPluginApplicationDelegateInterface>

@end
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@implementation AppleMARSDKApplicationDelegate

#pragma mark - UIProxyApplicationDelegateInterface
#pragma mark - UIPluginApplicationDelegateInterface

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[[MARSDK sharedInstance] application:application didFinishLaunchingWithOptions:launchOptions];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "Environment/iOS/UIProxyApplicationDelegateInterface.h"
#import "Environment/iOS/UIPluginApplicationDelegateInterface.h"

@interface AppleOneSignalApplicationDelegate : NSObject<UIProxyApplicationDelegateInterface>
@interface AppleOneSignalApplicationDelegate : NSObject<UIPluginApplicationDelegateInterface>

@end
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@implementation AppleOneSignalApplicationDelegate

#pragma mark - UIProxyApplicationDelegateInterface
#pragma mark - UIPluginApplicationDelegateInterface

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
if (Mengine::Helper::iOSHasBundlePluginConfig(@"MengineAppleOneSignalPlugin") == NO) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "Environment/iOS/UIProxyApplicationDelegateInterface.h"
#import "Environment/iOS/UIPluginApplicationDelegateInterface.h"

@interface AppleSKAdNetworkApplicationDelegate : NSObject<UIProxyApplicationDelegateInterface>
@interface AppleSKAdNetworkApplicationDelegate : NSObject<UIPluginApplicationDelegateInterface>

@end
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#import "Environment/iOS/UIProxyApplicationDelegateInterface.h"
#import "Environment/iOS/UIPluginApplicationDelegateInterface.h"

@interface AppleSentryApplicationDelegate : NSObject<UIProxyApplicationDelegateInterface>
@interface AppleSentryApplicationDelegate : NSObject<UIPluginApplicationDelegateInterface>

@property (assign) BOOL m_sendAllow;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

@implementation AppleSentryApplicationDelegate

#pragma mark - UIProxyApplicationDelegateInterface
#pragma mark - UIPluginApplicationDelegateInterface

- (instancetype _Nonnull)init {
self = [super init];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "Environment/iOS/UIProxyApplicationDelegateInterface.h"
#import "Environment/iOS/UIPluginApplicationDelegateInterface.h"

@interface AppleStoreInAppPurchaseApplicationDelegate : NSObject<UIProxyApplicationDelegateInterface>
@interface AppleStoreInAppPurchaseApplicationDelegate : NSObject<UIPluginApplicationDelegateInterface>

@end
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@implementation AppleStoreInAppPurchaseApplicationDelegate

#pragma mark - UIProxyApplicationDelegateInterface
#pragma mark - UIPluginApplicationDelegateInterface

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
AppleStoreInAppPurchasePaymentTransactionObserver * paymentTransactionObserver = [AppleStoreInAppPurchasePaymentTransactionObserver sharedInstance];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#import "Environment/iOS/UIProxyApplicationDelegateInterface.h"
#import "Environment/iOS/UIPluginApplicationDelegateInterface.h"

#import <UserNotifications/UserNotifications.h>

@interface AppleUserNotificationCenterApplicationDelegate : NSObject<UIProxyApplicationDelegateInterface, UNUserNotificationCenterDelegate>
@interface AppleUserNotificationCenterApplicationDelegate : NSObject<UIPluginApplicationDelegateInterface, UNUserNotificationCenterDelegate>

@end
2 changes: 1 addition & 1 deletion src/SDLApplication/SDLUIApplicationDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

@interface SDLUIApplicationDelegate : NSObject<UIApplicationDelegate, UIMainApplicationDelegateInterface>

@property (nonatomic, strong) NSMutableArray<UIProxyApplicationDelegateInterface> * m_pluginDelegates;
@property (nonatomic, strong) NSMutableArray<UIPluginApplicationDelegateInterface> * m_pluginDelegates;

@end
2 changes: 1 addition & 1 deletion src/SDLApplication/SDLUIApplicationDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ - (void)dealloc {

#pragma mark - UIMainApplicationDelegateInterface Protocol

- (NSArray<UIProxyApplicationDelegateInterface> *)getPluginDelegates {
- (NSArray<UIPluginApplicationDelegateInterface> *)getPluginDelegates {
return self.m_pluginDelegates;
}

Expand Down

0 comments on commit 145c002

Please sign in to comment.