diff --git a/ios/AppMetrica.m b/ios/AppMetrica.m index d902c3b..fbd774a 100644 --- a/ios/AppMetrica.m +++ b/ios/AppMetrica.m @@ -25,7 +25,6 @@ RCT_EXPORT_METHOD(activate:(NSDictionary *)configDict) RCT_EXPORT_METHOD(reportUserProfile:(NSDictionary *)configDict) { -// [YMPYandexMetrica reportUserProfile:[AppMetricaUtils configurationForUserProfile:configDict]]; [YMMYandexMetrica reportUserProfile:[AppMetricaUtils configurationForUserProfile:configDict] onFailure:^(NSError *error) { NSLog(@"Error: %@", error); }]; diff --git a/ios/AppMetricaUtils.h b/ios/AppMetricaUtils.h index 42c0b01..dea2c38 100644 --- a/ios/AppMetricaUtils.h +++ b/ios/AppMetricaUtils.h @@ -13,6 +13,7 @@ @interface AppMetricaUtils : NSObject + (YMMYandexMetricaConfiguration *)configurationForDictionary:(NSDictionary *)configDict; ++ (YMMYandexMetricaConfiguration *)configurationForUserProfile:(NSDictionary *)configDict; + (CLLocation *)locationForDictionary:(NSDictionary *)locationDict; + (NSString *)stringFromRequestDeviceIDError:(NSError *)error; diff --git a/package.json b/package.json index f9e2928..2f8db4d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "react-native-appmetrica-next", "title": "Yandex AppMetrica React Native Plugin && AppMetricaPushSDK (fireBase CloudMessage)", - "version": "1.0.5", + "version": "1.0.6", "description": "React Native plugin for AppMetrica analytics tool", "main": "index.js", "scripts": {