Skip to content

Commit 4f494cb

Browse files
authored
Merge pull request #31 from apptentive/develop
Release 5.1.3
2 parents a5cd40d + 46ea040 commit 4f494cb

File tree

5 files changed

+10
-13
lines changed

5 files changed

+10
-13
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ This document lets you know what has changed in the React Native module. For cha
55
- [Android Changelog](https://github.com/apptentive/apptentive-android/blob/master/CHANGELOG.md)
66
- [iOS Changelog](https://github.com/apptentive/apptentive-ios/blob/master/CHANGELOG.md)
77

8+
# 2018-07-26 - v5.1.3
9+
10+
- Fix check for registered status on iOS
11+
812
# 2018-07-26 - v5.1.2
913

1014
- Fix missing dependency in podspec
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
33
<string name="apptentive_distribution">React Native</string>
4-
<string name="apptentive_distribution_version">5.1.2</string>
4+
<string name="apptentive_distribution_version">5.1.3</string>
55
</resources>

apptentive-react-native.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "apptentive-react-native"
3-
s.version = "5.1.2"
3+
s.version = "5.1.3"
44
s.summary = "Apptentive SDK module for React Native"
55

66
s.description = <<-DESC

ios/RNApptentiveModule.m

+3-10
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ - (dispatch_queue_t)methodQueue
5252
if (configuration) {
5353
configuration.appID = configurationDictionary[@"appleID"];
5454
configuration.distributionName = @"React Native";
55-
configuration.distributionVersion = @"5.1.2";
55+
configuration.distributionVersion = @"5.1.3";
5656
[Apptentive registerWithConfiguration:configuration];
5757

5858
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(messageCenterUnreadCountChangedNotification:) name:ApptentiveMessageCenterUnreadCountChangedNotification object:nil];
@@ -62,11 +62,8 @@ - (dispatch_queue_t)methodQueue
6262
[self sendEventWithName:@"onAuthenticationFailed" body:@{ @"reason": reasonString }];
6363
};
6464

65-
if (Apptentive.shared != nil) {
66-
resolve(configuration.distributionName);
67-
} else {
68-
rejecter(kRejectCode, @"Unable to register", nil);
69-
}
65+
_registered = YES;
66+
resolve(configuration.distributionName);
7067
} else {
7168
rejecter(kRejectCode, @"Configuration returned nil", nil);
7269
}
@@ -412,10 +409,6 @@ - (dispatch_queue_t)methodQueue
412409

413410
RCT_EXPORT_MODULE()
414411

415-
- (BOOL)isRegistered {
416-
return Apptentive.shared != nil;
417-
}
418-
419412
- (NSArray<NSString *> *)supportedEvents
420413
{
421414
return @[@"onUnreadMessageCountChanged", @"onAuthenticationFailed"];

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "apptentive-react-native",
3-
"version": "5.1.2",
3+
"version": "5.1.3",
44
"description": "React Native Module for Apptentive SDK",
55
"main": "js/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)