Skip to content

Commit

Permalink
wip MENGINE_PLUGIN_APPLE_GENERALDATAPROTECTIONREGULATION
Browse files Browse the repository at this point in the history
  • Loading branch information
irov committed Aug 27, 2023
1 parent a6c4dca commit f0cea39
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#import "Environment/iOS/UIProxyApplicationDelegateInterface.h"

@interface AppleGeneralDataProtectionRegulationApplicationDelegate : NSObject<UIProxyApplicationDelegateInterface>

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#import "AppleGeneralDataProtectionRegulationApplicationDelegate.h"

#include "Environment/Apple/AppleUserDefaults.h"

@implementation AppleGeneralDataProtectionRegulationApplicationDelegate

#pragma mark - UIProxyApplicationDelegateInterface

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
bool passGDPR = Mengine::Helper::AppleGetUserDefaultsBoolean( "mengine.gdpr.pass", false );


return YES;
}

@end
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ src
AppleGeneralDataProtectionRegulationPlugin.mm
)

ADD_FILTER(
delegate
AppleGeneralDataProtectionRegulationApplicationDelegate.h
AppleGeneralDataProtectionRegulationApplicationDelegate.mm
)

if(MENGINE_USE_SCRIPT_SERVICE)
ADD_FILTER(
embedding
Expand All @@ -22,6 +28,8 @@ endif()

ADD_MENGINE_PLUGIN(MENGINE_PLUGIN_APPLE_GENERALDATAPROTECTIONREGULATION)

ADD_MENGINE_APPLE_APPLICATION_DELEGATE("AppleGeneralDataProtectionRegulationApplicationDelegate")

if(MENGINE_USE_SCRIPT_SERVICE)
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${THIRDPARTY_LIB_DIR}/${MENGINE_LIB_PREFIX}pybind${MENGINE_LIB_SUFFIX})
endif()

0 comments on commit f0cea39

Please sign in to comment.