change adroid

This commit is contained in:
Andrey Bondarenko 2021-01-21 20:52:45 +10:00
parent 79c045577c
commit 80030ec056
2 changed files with 5 additions and 4 deletions

View File

@ -28,10 +28,11 @@ abstract class Utils {
if (configMap.hasKey("name")) {
userProfile.apply(Attribute.name().withValue(configMap.getString("name")));
}
if (configMap.hasKey("floor") && configMap.getString("floor") == "male") {
String floor = configMap.getString("floor");
Log.w("TAG", floor);
if (configMap.hasKey("floor") && "male".equals(configMap.getString("floor"))) {
userProfile.apply(Attribute.gender().withValue(GenderAttribute.Gender.MALE));
} else if(configMap.hasKey("floor") && configMap.getString("floor") == "female") {
} else if(configMap.hasKey("floor") && "female".equals(configMap.getString("floor"))) {
userProfile.apply(Attribute.gender().withValue(GenderAttribute.Gender.FEMALE));
}
if (configMap.hasKey("age")) {

View File

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