This commit is contained in:
Andrey Bondarenko 2021-01-25 19:02:37 +10:00
parent cfd4dd9109
commit 4eb88f3e20
2 changed files with 3 additions and 2 deletions

View File

@ -73,8 +73,9 @@
[profile apply:[genderAttribute withValue:YMMGenderTypeFemale]]; [profile apply:[genderAttribute withValue:YMMGenderTypeFemale]];
} }
if (configDict[@"age"] != nil) { if (configDict[@"age"] != nil) {
NSNumber *age = configDict[@"age"];
id<YMMBirthDateAttribute> birthDateAttribute = [YMMProfileAttribute birthDate]; id<YMMBirthDateAttribute> birthDateAttribute = [YMMProfileAttribute birthDate];
[profile apply:[birthDateAttribute withAge:[configDict[@"age"] unsignedIntegerValue]]]; [profile apply:[birthDateAttribute withAge:[age unsignedIntegerValue]]];
} }
if (configDict[@"isNotification"] != nil) { if (configDict[@"isNotification"] != nil) {
id<YMMNotificationsEnabledAttribute> isNotificationAttribute = [YMMProfileAttribute notificationsEnabled]; id<YMMNotificationsEnabledAttribute> isNotificationAttribute = [YMMProfileAttribute notificationsEnabled];

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.6", "version": "1.0.8",
"description": "React Native plugin for AppMetrica analytics tool", "description": "React Native plugin for AppMetrica analytics tool",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {