Skip to content

Commit 01a8a75

Browse files
author
Richard Chin
committedAug 30, 2017
update project
1 parent bc102c5 commit 01a8a75

File tree

13 files changed

+177
-7
lines changed

13 files changed

+177
-7
lines changed
 

‎SailsSDKDemo.xcodeproj/project.pbxproj

+6-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
795D32531D38ADBB00002BB5 /* Launch Screen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 795D32521D38ADBB00002BB5 /* Launch Screen.storyboard */; };
1111
795D32C11D38CBCC00002BB5 /* libxml2.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 795D32C01D38CBCC00002BB5 /* libxml2.tbd */; };
1212
795D32C31D38CBD500002BB5 /* libz.1.2.5.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 795D32C21D38CBD500002BB5 /* libz.1.2.5.tbd */; };
13-
799923C51DDD51A800E91D3C /* locating.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 799923C41DDD51A800E91D3C /* locating.framework */; };
13+
79D4F16D1F56E96B003C0063 /* locating.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 79D4F1651F56E6B3003C0063 /* locating.framework */; };
1414
E1FCF430196A7D5100A5C4B9 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = E1FCF42E196A7D5100A5C4B9 /* InfoPlist.strings */; };
1515
E1FCF432196A7D5100A5C4B9 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = E1FCF431196A7D5100A5C4B9 /* main.m */; };
1616
E1FCF436196A7D5100A5C4B9 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = E1FCF435196A7D5100A5C4B9 /* AppDelegate.m */; };
@@ -34,7 +34,7 @@
3434
795D32521D38ADBB00002BB5 /* Launch Screen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = "Launch Screen.storyboard"; sourceTree = "<group>"; };
3535
795D32C01D38CBCC00002BB5 /* libxml2.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libxml2.tbd; path = usr/lib/libxml2.tbd; sourceTree = SDKROOT; };
3636
795D32C21D38CBD500002BB5 /* libz.1.2.5.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libz.1.2.5.tbd; path = usr/lib/libz.1.2.5.tbd; sourceTree = SDKROOT; };
37-
799923C41DDD51A800E91D3C /* locating.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = locating.framework; path = SailsSDKDemo/locating.framework; sourceTree = "<group>"; };
37+
79D4F1651F56E6B3003C0063 /* locating.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = locating.framework; sourceTree = "<group>"; };
3838
E1FCF422196A7D5100A5C4B9 /* SailsSDKDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SailsSDKDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
3939
E1FCF42D196A7D5100A5C4B9 /* SailsSDKDemo-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "SailsSDKDemo-Info.plist"; sourceTree = "<group>"; };
4040
E1FCF42F196A7D5100A5C4B9 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
@@ -56,9 +56,9 @@
5656
isa = PBXFrameworksBuildPhase;
5757
buildActionMask = 2147483647;
5858
files = (
59-
799923C51DDD51A800E91D3C /* locating.framework in Frameworks */,
6059
795D32C31D38CBD500002BB5 /* libz.1.2.5.tbd in Frameworks */,
6160
795D32C11D38CBCC00002BB5 /* libxml2.tbd in Frameworks */,
61+
79D4F16D1F56E96B003C0063 /* locating.framework in Frameworks */,
6262
);
6363
runOnlyForDeploymentPostprocessing = 0;
6464
};
@@ -75,14 +75,14 @@
7575
79EFDFC41DDD4FE400A2AB6D /* Frameworks */ = {
7676
isa = PBXGroup;
7777
children = (
78+
79D4F1651F56E6B3003C0063 /* locating.framework */,
7879
);
7980
name = Frameworks;
8081
sourceTree = "<group>";
8182
};
8283
E1FCF419196A7D5100A5C4B9 = {
8384
isa = PBXGroup;
8485
children = (
85-
799923C41DDD51A800E91D3C /* locating.framework */,
8686
E1FCF42B196A7D5100A5C4B9 /* SailsSDKDemo */,
8787
E1FCF444196A7D5100A5C4B9 /* SailsSDKDemoTests */,
8888
E1FCF423196A7D5100A5C4B9 /* Products */,
@@ -374,6 +374,7 @@
374374
FRAMEWORK_SEARCH_PATHS = (
375375
"$(inherited)",
376376
"$(PROJECT_DIR)/SailsSDKDemo",
377+
"$(PROJECT_DIR)",
377378
);
378379
GCC_PRECOMPILE_PREFIX_HEADER = YES;
379380
GCC_PREFIX_HEADER = "SailsSDKDemo/SailsSDKDemo-Prefix.pch";
@@ -405,6 +406,7 @@
405406
FRAMEWORK_SEARCH_PATHS = (
406407
"$(inherited)",
407408
"$(PROJECT_DIR)/SailsSDKDemo",
409+
"$(PROJECT_DIR)",
408410
);
409411
GCC_PRECOMPILE_PREFIX_HEADER = YES;
410412
GCC_PREFIX_HEADER = "SailsSDKDemo/SailsSDKDemo-Prefix.pch";

‎SailsSDKDemo/Images.xcassets/AppIcon.appiconset/Contents.json

+10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
{
22
"images" : [
3+
{
4+
"idiom" : "iphone",
5+
"size" : "20x20",
6+
"scale" : "2x"
7+
},
8+
{
9+
"idiom" : "iphone",
10+
"size" : "20x20",
11+
"scale" : "3x"
12+
},
313
{
414
"size" : "29x29",
515
"idiom" : "iphone",
File renamed without changes.

‎SailsSDKDemo/locating.framework/Versions/A/Headers/LocationRegion.h ‎locating.framework/Versions/A/Headers/LocationRegion.h

+19
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88

99
#import <Foundation/Foundation.h>
1010

11+
@class MapDatabase;
12+
@class Dijkstra3DNode;
13+
@class Sails;
14+
1115
#pragma mark Location Region Language
1216
/**
1317
* LocationRegionLanguage.
@@ -43,6 +47,14 @@ typedef NS_ENUM(NSInteger, LocationRegionLanguage) {
4347
@property (nonatomic, strong) NSString *url;
4448
@property (nonatomic) int locationSelf;
4549

50+
@property(nonatomic) double updatedLength;
51+
@property(nonatomic) int changeFloorCount;
52+
@property(nonatomic) BOOL useDynamicPathLink;
53+
@property(nonatomic, strong) Dijkstra3DNode *dynamicAnchor;
54+
55+
- (id)initWithLabel:(NSString *)labelName Longitude:(double)longitude Latitude:(double)latitude Floor:(NSString *)floorName Sails:(Sails *)sails;
56+
57+
4658
#pragma mark Setter Method
4759

4860
/**
@@ -71,6 +83,8 @@ typedef NS_ENUM(NSInteger, LocationRegionLanguage) {
7183
- (NSString *)getFloorName;
7284

7385

86+
- (MapDatabase *)getFloor;
87+
7488
/**
7589
* Get location region's floor description.
7690
*
@@ -132,4 +146,9 @@ typedef NS_ENUM(NSInteger, LocationRegionLanguage) {
132146
*/
133147
- (BOOL)hasPathNode;
134148

149+
- (void)setGpsArea:(bool)gpsArea;
150+
151+
- (BOOL)gpsArea;
152+
153+
- (void)setUpdatedLength:(double)updatedLength;
135154
@end

‎SailsSDKDemo/locating.framework/Versions/A/Headers/PathRoutingManager.h ‎locating.framework/Versions/A/Headers/PathRoutingManager.h

+31-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,17 @@ typedef NS_ENUM(NSInteger, PathRoutingMode) {
3939
* Routing Mode: only take elevator and escalator into 3D routing account.
4040
*
4141
*/
42-
ElevatorAndEscalatorMode = 4
42+
ElevatorAndEscalatorMode = 4,
43+
/**
44+
* Routing Mode: wheel-can-go path routing.
45+
*
46+
*/
47+
WheelMode = 5,
48+
ElevatorFirstMode = 6,
49+
EscalatorFirstMode = 7,
50+
EscalatorAndStairFirstMode = 8
51+
52+
4353
};
4454

4555
#pragma mark Path Routing Node Type
@@ -93,6 +103,10 @@ typedef NS_ENUM(NSInteger, PathRoutingDirection) {
93103

94104
#pragma mark Switch Method
95105

106+
@property(nonatomic) BOOL routingOnce;
107+
108+
@property(nonatomic) BOOL routed;
109+
96110
/**
97111
* Begin to route. (Note: start & end point must be set before going to route)
98112
*/
@@ -162,6 +176,10 @@ typedef NS_ENUM(NSInteger, PathRoutingDirection) {
162176
*/
163177
- (void)setTargetRegion:(LocationRegion *)target;
164178

179+
/**
180+
* Get all path routing nodes (return GeoNode object)
181+
*/
182+
- (NSArray *)getCurrentAllPathNodes;
165183

166184
#pragma mark Set Routing Update Callback Block Method
167185

@@ -296,7 +314,17 @@ typedef NS_ENUM(NSInteger, PathRoutingDirection) {
296314
*/
297315
- (BOOL)isArriveTarget;
298316

299-
- (NSArray *)getCurrentAllPathNodes;
317+
318+
319+
- (PathRoutingManager *)locationRegionCrossable:(BOOL)crossable;
320+
321+
- (PathRoutingManager *)avoidUpDownFloor:(BOOL)avoid;
322+
323+
- (PathRoutingManager *)routingOnlyOnce:(BOOL)once;
324+
325+
- (void)routingOnceRefresh;
326+
327+
- (int)getCurrentFloorRemainingDistance;
300328
@end
301329

302330

@@ -349,6 +377,7 @@ typedef NS_ENUM(NSInteger, PathRoutingDirection) {
349377
*/
350378
@property (nonatomic, strong) LocationRegion *fromBelongsRegion;
351379

380+
352381
- (id)initWithGeoNode:(GeoNode *)geonode nodeType:(PathRoutingNodeType)nodetype direction:(PathRoutingDirection)nodedirection toFloorName:(NSString *)tofloorname;
353382

354383
@end

‎SailsSDKDemo/locating.framework/Versions/A/Headers/Sails.h ‎locating.framework/Versions/A/Headers/Sails.h

+72
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,57 @@
88

99
#import <Foundation/Foundation.h>
1010
#import "SailsMapCommon.h"
11+
#import "PathRoutingManager.h"
1112

1213
static int WITHOUT_FOLLOW_HEADING = 512;
1314
static int WITH_GPS = 2048;
15+
static int SIMULATION = 8192;
1416

1517
@class LocationRegion;
18+
@class RoutingInfo;
19+
@class GPSLocation;
1620

1721
@interface Sails : NSObject
1822

1923
#pragma mark Switch Method
2024

25+
@property(nonatomic, copy) NSString *gpsFloorLayer;
26+
27+
@property(nonatomic) double userHeading;
28+
29+
30+
@property(nonatomic) double speedfactor;
31+
32+
@property(nonatomic) BOOL lockAngle;
33+
34+
@property(nonatomic, strong) LocationRegion *savelr;
35+
36+
@property(nonatomic) PathRoutingMode routingMode;
37+
38+
@property(nonatomic) bool isProcessLonLat;
39+
40+
- (RoutingInfo *)route3DwithSavedRoutedPath:(NSArray *)routedPath target:(LocationRegion *)lr;
41+
42+
- (NSMutableArray *)sortLocationRegionsByPathLength:(NSArray *)locationRegions;
43+
44+
- (void)setSimulationUserHeading:(double)userHeading;
45+
46+
- (void)setSimulationLongitude:(double)longitude;
47+
48+
- (void)setSimulationLatitude:(double)latitude;
49+
50+
- (void)setSimulationFloor:(NSString *)layer;
51+
2152
- (void)setGPSFloorLayer:(NSString *)layer;
2253

54+
- (void)setGPSFloorLayerInternal:(NSString *)layer;
55+
2356
- (BOOL)isUseGPS;
2457

2558
- (void)setMode:(int)m;
2659

60+
- (void)setSpeedFactor:(double)factor;
61+
2762
- (BOOL)checkMode:(int)m;
2863

2964
- (void)setMagneticDefaultInclinationAngle:(float)angle;
@@ -36,6 +71,12 @@ static int WITH_GPS = 2048;
3671
- (void)startLocatingEngine;
3772

3873

74+
- (NSArray *)getBuildingsName;
75+
76+
- (LocationRegion *)getInBuildingNameLon:(double)lon Lat:(double)lat;
77+
78+
- (LocationRegion *)getCurrentInBuildingName;
79+
3980
/**
4081
* Call for stop locate. engine will be turn off.
4182
*/
@@ -71,6 +112,13 @@ static int WITH_GPS = 2048;
71112

72113
- (void)loadLocalZipBuildingFile:(NSURL *)filePath success:(void (^)(void))success failure:(void (^)(NSError *error))failure;
73114

115+
- (void)loadCloudBuilding:(NSString *)token buildingID:(NSString *)buildingId onCachedLoaded:(void (^)(void))onCacheLoaded onNetworkLoadingProgress:(void (^)(BOOL done, int progress))networkProgress onNetworkLoadingFailed:(void (^)(NSError *error))failure;
116+
117+
118+
- (void)cancelDownload;
119+
120+
- (void)refreshCloudBuilding:(NSString *)buildingId success:(void (^)(void))success failure:(void (^)(NSError *error))failure;
121+
74122
/**
75123
* Load building project from cloud.
76124
*
@@ -83,6 +131,9 @@ static int WITH_GPS = 2048;
83131

84132

85133
#pragma mark Setter Method
134+
135+
- (NSDictionary *)getBackgroundLocation:(NSArray *)scanResults;
136+
86137
/**
87138
* Initialize map view, must include when do initialization.
88139
*
@@ -117,6 +168,8 @@ static int WITH_GPS = 2048;
117168
- (void)setLocationRegionFloor:(LocationRegion *)region andFloorName:(NSString *)floorName;
118169

119170

171+
- (void)setPathRoutingNodeList:(NSMutableArray *)pathList;
172+
120173
#pragma mark Set Sails Callback Block Method
121174

122175
/**
@@ -445,6 +498,17 @@ static int WITH_GPS = 2048;
445498
* @return true if fix location is in location region.
446499
*/
447500
- (BOOL)amIHere:(LocationRegion *)region;
501+
502+
- (void)setGPSThresholdParameterInToOut:(int)inToOut outToIn:(int)outToIn powerThreshold:(int)rssi;
503+
/**
504+
* Get user orientation degree.
505+
*
506+
* @return heading angle by degree.
507+
*/
508+
- (double)getUserHeading;
509+
510+
- (double)getMapViewRotation;
511+
448512
/**
449513
* Get current longitude of user location.
450514
*
@@ -459,13 +523,20 @@ static int WITH_GPS = 2048;
459523
* @return double value of latitude.
460524
*/
461525
- (double)getLatitude;
526+
///**
527+
// * Get user orientation degree.
528+
// *
529+
// * @return heading angle by degree.
530+
// */
531+
462532

463533
-(void) loadZipPackageWithURL: (NSString*) url version:(NSString*) version success:(void (^)(void))success failure:(void (^)(NSError *error))failure;
464534

465535
-(BOOL) isLatterVersion:(NSString*) version;
466536

467537
- (void) loadLastBuildingAuto: (NSURL *)filePath withVersion:(NSString*) version success:(void (^)(void))success failure:(void (^)(NSError *error))failure;
468538

539+
469540
@end
470541

471542

@@ -477,6 +548,7 @@ static int WITH_GPS = 2048;
477548
@property (nonatomic) double latitude;
478549
@property (nonatomic) int floorNumber;
479550
@property (nonatomic, strong) NSString *floorName;
551+
@property (nonatomic, strong) NSString *floorDesc;
480552
@property (nonatomic, strong) LocationRegion *belongsRegion;
481553

482554
- (id)initWithLogitude:(double)lon latitude:(double)lat;

0 commit comments

Comments
 (0)