Skip to content

Commit fc51663

Browse files
committed
1.0.10
1 parent 2881711 commit fc51663

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ios/RNRadar.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ - (void)didFailWithStatus:(RadarStatus)status {
101101
double latitude = [RCTConvert double:locationDict[@"latitude"]];
102102
double longitude = [RCTConvert double:locationDict[@"longitude"]];
103103
double accuracy = [RCTConvert double:locationDict[@"accuracy"]];
104-
CLLocation *location = [[CLLocation alloc] initWithCoordinate:CLLocationCoordinate2DMake(latitude, longitude) altitude:-1 horizontalAccuracy:accuracy verticalAccuracy:-1 timestamp:nil];
104+
NSDate *timestamp = [NSDate date];
105+
CLLocation *location = [[CLLocation alloc] initWithCoordinate:CLLocationCoordinate2DMake(latitude, longitude) altitude:-1 horizontalAccuracy:accuracy verticalAccuracy:-1 timestamp:timestamp];
105106
[Radar updateLocation:location withCompletionHandler:^(RadarStatus status, CLLocation *location, NSArray<RadarEvent *> *events, RadarUser *user) {
106107
if (status == RadarStatusSuccess && resolve) {
107108
NSMutableDictionary *dict = [NSMutableDictionary new];
@@ -122,7 +123,7 @@ - (void)didFailWithStatus:(RadarStatus)status {
122123
}];
123124
}
124125

125-
RCT_EXPORT_METHOD(acceptEvent:(NSString *)eventId, withVerifiedPlaceId:(NSString *)verifiedPlaceId) {
126+
RCT_EXPORT_METHOD(acceptEvent:(NSString *)eventId withVerifiedPlaceId:(NSString *)verifiedPlaceId) {
126127
[Radar acceptEventId:eventId withVerifiedPlaceId:verifiedPlaceId];
127128
}
128129

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "React Native module for Radar, the location platform for mobile apps",
44
"homepage": "https://www.onradar.com",
55
"license": "Apache-2.0",
6-
"version": "1.0.9",
6+
"version": "1.0.10",
77
"main": "js/index.js",
88
"dependencies": {},
99
"peerDependencies": {

0 commit comments

Comments
 (0)