// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #import "PropertyConfigurator.h" #import "AppCenterAnalytics/MSACPropertyConfigurator.h" #import "../Core/Utility/NSStringHelper.h" #import "../Core/Utility/NSStringDictionaryHelper.h" void appcenter_unity_property_configurator_set_app_name(MSACPropertyConfigurator *configurator, char* appName) { [configurator setAppName: appcenter_unity_cstr_to_ns_string(appName)]; } void appcenter_unity_property_configurator_set_user_id(MSACPropertyConfigurator *configurator, char* userId) { [configurator setUserId: appcenter_unity_cstr_to_ns_string(userId)]; } void appcenter_unity_property_configurator_set_app_version(MSACPropertyConfigurator *configurator, char* appVersion) { [configurator setAppVersion: appcenter_unity_cstr_to_ns_string(appVersion)]; } void appcenter_unity_property_configurator_set_app_locale(MSACPropertyConfigurator *configurator, char* appLocale) { [configurator setAppLocale: appcenter_unity_cstr_to_ns_string(appLocale)]; } void appcenter_unity_property_configurator_collect_device_id(MSACPropertyConfigurator *configurator) { [configurator collectDeviceId]; } void appcenter_unity_property_configurator_set_event_property(MSACPropertyConfigurator *configurator, char* key, char* value) { [configurator setEventPropertyString: [NSString stringWithUTF8String:value] forKey: [NSString stringWithUTF8String:key]]; } void appcenter_unity_property_configurator_set_event_long_property(MSACPropertyConfigurator *configurator, char* key, long value) { [configurator setEventPropertyInt64:value forKey: [NSString stringWithUTF8String:key]]; } void appcenter_unity_property_configurator_set_event_double_property(MSACPropertyConfigurator *configurator, char* key, double value) { [configurator setEventPropertyDouble:value forKey: [NSString stringWithUTF8String:key]]; } void appcenter_unity_property_configurator_set_event_bool_property(MSACPropertyConfigurator *configurator, char* key, bool value) { [configurator setEventPropertyBool:value forKey: [NSString stringWithUTF8String:key]]; } void appcenter_unity_property_configurator_set_event_datetime_property(MSACPropertyConfigurator *configurator, char* key, NSDate* value) { [configurator setEventPropertyDate:value forKey: [NSString stringWithUTF8String:key]]; } void appcenter_unity_property_configurator_remove_event_property(MSACPropertyConfigurator *configurator, char* key) { [configurator removeEventPropertyForKey: [NSString stringWithUTF8String:key]]; }