diff --git a/src/Plugins/AppleGeneralDataProtectionRegulationPlugin/AppleGeneralDataProtectionRegulationApplicationDelegate.h b/src/Plugins/AppleGeneralDataProtectionRegulationPlugin/AppleGeneralDataProtectionRegulationApplicationDelegate.h new file mode 100644 index 0000000000..5d15160fe6 --- /dev/null +++ b/src/Plugins/AppleGeneralDataProtectionRegulationPlugin/AppleGeneralDataProtectionRegulationApplicationDelegate.h @@ -0,0 +1,5 @@ +#import "Environment/iOS/UIProxyApplicationDelegateInterface.h" + +@interface AppleGeneralDataProtectionRegulationApplicationDelegate : NSObject + +@end diff --git a/src/Plugins/AppleGeneralDataProtectionRegulationPlugin/AppleGeneralDataProtectionRegulationApplicationDelegate.mm b/src/Plugins/AppleGeneralDataProtectionRegulationPlugin/AppleGeneralDataProtectionRegulationApplicationDelegate.mm new file mode 100644 index 0000000000..653258aa85 --- /dev/null +++ b/src/Plugins/AppleGeneralDataProtectionRegulationPlugin/AppleGeneralDataProtectionRegulationApplicationDelegate.mm @@ -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 diff --git a/src/Plugins/AppleGeneralDataProtectionRegulationPlugin/CMakeLists.txt b/src/Plugins/AppleGeneralDataProtectionRegulationPlugin/CMakeLists.txt index 6dc4687816..4356a59485 100644 --- a/src/Plugins/AppleGeneralDataProtectionRegulationPlugin/CMakeLists.txt +++ b/src/Plugins/AppleGeneralDataProtectionRegulationPlugin/CMakeLists.txt @@ -10,6 +10,12 @@ src AppleGeneralDataProtectionRegulationPlugin.mm ) +ADD_FILTER( +delegate + AppleGeneralDataProtectionRegulationApplicationDelegate.h + AppleGeneralDataProtectionRegulationApplicationDelegate.mm +) + if(MENGINE_USE_SCRIPT_SERVICE) ADD_FILTER( embedding @@ -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() \ No newline at end of file