change version & change .h .m for iOS

This commit is contained in:
Andrey Bondarenko 2021-01-21 20:56:30 +10:00
parent 80030ec056
commit c50be6bb75
3 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,6 @@ RCT_EXPORT_METHOD(activate:(NSDictionary *)configDict)
RCT_EXPORT_METHOD(reportUserProfile:(NSDictionary *)configDict) RCT_EXPORT_METHOD(reportUserProfile:(NSDictionary *)configDict)
{ {
// [YMPYandexMetrica reportUserProfile:[AppMetricaUtils configurationForUserProfile:configDict]];
[YMMYandexMetrica reportUserProfile:[AppMetricaUtils configurationForUserProfile:configDict] onFailure:^(NSError *error) { [YMMYandexMetrica reportUserProfile:[AppMetricaUtils configurationForUserProfile:configDict] onFailure:^(NSError *error) {
NSLog(@"Error: %@", error); NSLog(@"Error: %@", error);
}]; }];

View File

@ -13,6 +13,7 @@
@interface AppMetricaUtils : NSObject @interface AppMetricaUtils : NSObject
+ (YMMYandexMetricaConfiguration *)configurationForDictionary:(NSDictionary *)configDict; + (YMMYandexMetricaConfiguration *)configurationForDictionary:(NSDictionary *)configDict;
+ (YMMYandexMetricaConfiguration *)configurationForUserProfile:(NSDictionary *)configDict;
+ (CLLocation *)locationForDictionary:(NSDictionary *)locationDict; + (CLLocation *)locationForDictionary:(NSDictionary *)locationDict;
+ (NSString *)stringFromRequestDeviceIDError:(NSError *)error; + (NSString *)stringFromRequestDeviceIDError:(NSError *)error;

View File

@ -1,7 +1,7 @@
{ {
"name": "react-native-appmetrica-next", "name": "react-native-appmetrica-next",
"title": "Yandex AppMetrica React Native Plugin && AppMetricaPushSDK (fireBase CloudMessage)", "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", "description": "React Native plugin for AppMetrica analytics tool",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {