Skip to content

Commit 9b5e9ba

Browse files
committed
remove location code
1 parent de705ac commit 9b5e9ba

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

ios/RCTARKit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ typedef void (^RCTARKitReject)(NSString *code, NSString *message, NSError *error
9797
- (void)focusScene;
9898
- (void)clearScene;
9999
- (NSDictionary *)readCameraPosition;
100-
- (void)getArAnchorPosition:(CLLocation *)location landmark:(CLLocation *)landmark anchorName:(NSString *)anchorName;
100+
// - (void)getArAnchorPosition:(CLLocation *)location landmark:(CLLocation *)landmark anchorName:(NSString *)anchorName;
101101

102102
- (NSDictionary *)readCamera;
103103
- (NSDictionary* )getCurrentLightEstimation;

ios/RCTARKitManager.m

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -450,20 +450,20 @@ - (void)storeImage:(UIImage *)image options:(NSDictionary *)options reject:(RCTP
450450
resolve([[ARKit sharedInstance] readCameraPosition]);
451451
}
452452

453-
RCT_EXPORT_METHOD(addAnchorByLocation:(NSString *)anchorName locationLat:(float)locationLat locationLong:(float)locationLong landmarkLat:(float)landmarkLat landmarkLong:(float)landmarkLong locationHorizontalAccuracy:(float)locationHorizontalAccuracy landmarkHorizontalAccuracy:(float)landmarkHorizontalAccuracy locationVerticalAccuracy:(float)locationVerticalAccuracy landmarkVerticalAccuracy:(float)landmarkVerticalAccuracy locationAltitude:(float)locationAltitude landmarkAltitude:(float)landmarkAltitude resolve:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) {
454-
CLLocation *location = [[CLLocation alloc] initWithCoordinate:CLLocationCoordinate2DMake(locationLat, locationLong)
455-
altitude:locationAltitude
456-
horizontalAccuracy:locationHorizontalAccuracy
457-
verticalAccuracy:locationVerticalAccuracy
458-
timestamp:[NSDate date]];
459-
CLLocation *landmark = [[CLLocation alloc] initWithCoordinate:CLLocationCoordinate2DMake(landmarkLat, landmarkLong)
460-
altitude:landmarkAltitude
461-
horizontalAccuracy:landmarkHorizontalAccuracy
462-
verticalAccuracy:landmarkVerticalAccuracy
463-
timestamp:[NSDate date]];
453+
// RCT_EXPORT_METHOD(addAnchorByLocation:(NSString *)anchorName locationLat:(float)locationLat locationLong:(float)locationLong landmarkLat:(float)landmarkLat landmarkLong:(float)landmarkLong locationHorizontalAccuracy:(float)locationHorizontalAccuracy landmarkHorizontalAccuracy:(float)landmarkHorizontalAccuracy locationVerticalAccuracy:(float)locationVerticalAccuracy landmarkVerticalAccuracy:(float)landmarkVerticalAccuracy locationAltitude:(float)locationAltitude landmarkAltitude:(float)landmarkAltitude resolve:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) {
454+
// CLLocation *location = [[CLLocation alloc] initWithCoordinate:CLLocationCoordinate2DMake(locationLat, locationLong)
455+
// altitude:locationAltitude
456+
// horizontalAccuracy:locationHorizontalAccuracy
457+
// verticalAccuracy:locationVerticalAccuracy
458+
// timestamp:[NSDate date]];
459+
// CLLocation *landmark = [[CLLocation alloc] initWithCoordinate:CLLocationCoordinate2DMake(landmarkLat, landmarkLong)
460+
// altitude:landmarkAltitude
461+
// horizontalAccuracy:landmarkHorizontalAccuracy
462+
// verticalAccuracy:landmarkVerticalAccuracy
463+
// timestamp:[NSDate date]];
464464

465-
[[ARKit sharedInstance] getArAnchorPosition:location landmark:landmark anchorName:anchorName];
466-
}
465+
// [[ARKit sharedInstance] getArAnchorPosition:location landmark:landmark anchorName:anchorName];
466+
// }
467467

468468
RCT_EXPORT_METHOD(getCurrentLightEstimation:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) {
469469
resolve([[ARKit sharedInstance] getCurrentLightEstimation]);

0 commit comments

Comments
 (0)