Skip to content

Commit

Permalink
Merge pull request #124 from apptentive/develop
Browse files Browse the repository at this point in the history
Release 5.5.2
  • Loading branch information
frankus authored Aug 7, 2020
2 parents 71856e4 + e11a39a commit 0b105f2
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
2 changes: 1 addition & 1 deletion android/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="apptentive_distribution">React Native</string>
<string name="apptentive_distribution_version">5.5.1</string>
<string name="apptentive_distribution_version">5.5.2</string>
</resources>
2 changes: 1 addition & 1 deletion apptentive-react-native.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "apptentive-react-native"
s.version = "5.5.1"
s.version = "5.5.2"
s.summary = "Apptentive SDK module for React Native"

s.description = <<-DESC
Expand Down
22 changes: 21 additions & 1 deletion ios/RNApptentiveModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ - (dispatch_queue_t)methodQueue
if (configuration) {
configuration.appID = configurationDictionary[@"appleID"];
configuration.distributionName = @"React Native";
configuration.distributionVersion = @"5.5.1";
configuration.distributionVersion = @"5.5.2";
[Apptentive registerWithConfiguration:configuration];

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(messageCenterUnreadCountChangedNotification:) name:ApptentiveMessageCenterUnreadCountChangedNotification object:nil];
Expand Down Expand Up @@ -156,6 +156,8 @@ - (dispatch_queue_t)methodQueue
}

Apptentive.shared.personName = personName;

resolver(nil);
}

RCT_EXPORT_METHOD(
Expand Down Expand Up @@ -186,6 +188,8 @@ - (dispatch_queue_t)methodQueue
}

Apptentive.shared.personEmailAddress = personEmail;

resolver(nil);
}

RCT_EXPORT_METHOD(
Expand All @@ -210,6 +214,8 @@ - (dispatch_queue_t)methodQueue
}

[Apptentive.shared addCustomPersonDataString:value withKey:key];

resolver(nil);
}

RCT_EXPORT_METHOD(
Expand All @@ -234,6 +240,8 @@ - (dispatch_queue_t)methodQueue
}

[Apptentive.shared addCustomPersonDataNumber:value withKey:key];

resolver(nil);
}

RCT_EXPORT_METHOD(
Expand All @@ -258,6 +266,8 @@ - (dispatch_queue_t)methodQueue
}

[Apptentive.shared addCustomPersonDataBool:value.boolValue withKey:key];

resolver(nil);
}

RCT_EXPORT_METHOD(
Expand All @@ -276,6 +286,8 @@ - (dispatch_queue_t)methodQueue
}

[Apptentive.shared removeCustomPersonDataWithKey:key];

resolver(nil);
}

RCT_EXPORT_METHOD(
Expand All @@ -300,6 +312,8 @@ - (dispatch_queue_t)methodQueue
}

[Apptentive.shared addCustomDeviceDataString:value withKey:key];

resolver(nil);
}

RCT_EXPORT_METHOD(
Expand All @@ -324,6 +338,8 @@ - (dispatch_queue_t)methodQueue
}

[Apptentive.shared addCustomDeviceDataNumber:value withKey:key];

resolver(nil);
}

RCT_EXPORT_METHOD(
Expand All @@ -348,6 +364,8 @@ - (dispatch_queue_t)methodQueue
}

[Apptentive.shared addCustomDeviceDataBool:value.boolValue withKey:key];

resolver(nil);
}

RCT_EXPORT_METHOD(
Expand All @@ -366,6 +384,8 @@ - (dispatch_queue_t)methodQueue
}

[Apptentive.shared removeCustomDeviceDataWithKey:key];

resolver(nil);
}

RCT_EXPORT_METHOD(
Expand Down

0 comments on commit 0b105f2

Please sign in to comment.