Skip to content

Commit

Permalink
initial commit version 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelTychinin committed Nov 14, 2021
1 parent 178a54d commit 0d4b162
Show file tree
Hide file tree
Showing 230 changed files with 7,929 additions and 321 deletions.
9 changes: 1 addition & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,4 @@ fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# Code Injection
#
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/

/NavigineDemo/NavigineDemo/Frameworks/
.DS_Store
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Change Log
All notable changes to this project will be documented in this file.
`navigine.framework` adheres to [Semantic Versioning](http://semver.org/).

## [2.0.0](https://github.com/Navigine/navigine_ios_framework/releases/tag/v.2.0.0) / 2021-11-14
* Initial version
Binary file removed Frameworks/navigine.framework/.DS_Store
Binary file not shown.
10 changes: 10 additions & 0 deletions Frameworks/navigine.framework/Headers/NCAnimationType.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger, NCAnimationType)
{
NCAnimationTypeNone,
NCAnimationTypeLinear,
NCAnimationTypeCubic,
NCAnimationTypeQuint,
NCAnimationTypeSine,
};
16 changes: 16 additions & 0 deletions Frameworks/navigine.framework/Headers/NCAsyncRouteListener.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#import "NCExport.h"
#import "NCLocationPoint.h"
#import <Foundation/Foundation.h>
@class NCRoutePath;


NAVIGINE_EXPORT
@protocol NCAsyncRouteListener

- (void)onRouteChanged:(nullable NCRoutePath *)currentPath
pendingPaths:(nonnull NSArray<NCRoutePath *> *)pendingPaths;

- (void)onRouteAdvanced:(float)distance
point:(nonnull NCLocationPoint *)point;

@end
14 changes: 14 additions & 0 deletions Frameworks/navigine.framework/Headers/NCAsyncRouteManager.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#import "NCExport.h"
#import "NCLocationPoint.h"
#import <Foundation/Foundation.h>
@class NCRouteSession;


NAVIGINE_EXPORT
@interface NCAsyncRouteManager : NSObject

- (nullable NCRouteSession *)createRouteSession:(nonnull NSArray<NCLocationPoint *> *)wayPoints;

- (void)cancelRouteSession:(nullable NCRouteSession *)session;

@end
2 changes: 2 additions & 0 deletions Frameworks/navigine.framework/Headers/NCBeacon.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#import "NCExport.h"
#import "NCPoint.h"
#import <Foundation/Foundation.h>


NAVIGINE_EXPORT
@interface NCBeacon : NSObject

@property (nonatomic, nonnull, readonly) NCPoint * point;
Expand Down
2 changes: 2 additions & 0 deletions Frameworks/navigine.framework/Headers/NCBitmapRegionDecoder.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#import "NCExport.h"
#import "NCRectangle.h"
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@class NCBitmapRegionDecoder;


NAVIGINE_EXPORT
@interface NCBitmapRegionDecoder : NSObject

+ (nullable NCBitmapRegionDecoder *)newInstance:(nonnull NSData *)data
Expand Down
2 changes: 2 additions & 0 deletions Frameworks/navigine.framework/Headers/NCCategory.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#import "NCExport.h"
#import <Foundation/Foundation.h>

NAVIGINE_EXPORT
@interface NCCategory : NSObject
- (nonnull instancetype)initWithId:(int32_t)id
name:(nonnull NSString *)name
Expand Down
24 changes: 11 additions & 13 deletions Frameworks/navigine.framework/Headers/NCCircleMapObject.h
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
#import "NCMapObjectData.h"
#import "NCPoint.h"
#import "NCAnimationType.h"
#import "NCExport.h"
#import "NCLocationPoint.h"
#import <Foundation/Foundation.h>


NAVIGINE_EXPORT
@interface NCCircleMapObject : NSObject

- (void)setPosition:(nonnull NCPoint *)point;
- (BOOL)setPosition:(nonnull NCLocationPoint *)point;

- (nonnull NCPoint *)getPosition;
- (BOOL)setPositionAnimated:(nonnull NCLocationPoint *)point
duration:(float)duration
type:(NCAnimationType)type;

- (void)setRadius:(float)radius;
- (BOOL)setRadius:(float)radius;

- (float)getRadius;
- (BOOL)setVisible:(BOOL)visible;

- (void)setData:(nonnull NCMapObjectData *)data;

- (nonnull NCMapObjectData *)getData;

- (void)setEnabled:(BOOL)visibility;

- (void)setColor:(float)red
- (BOOL)setColor:(float)red
green:(float)green
blue:(float)blue
alpha:(float)alpha;
Expand Down
2 changes: 2 additions & 0 deletions Frameworks/navigine.framework/Headers/NCEddystone.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#import "NCExport.h"
#import "NCPoint.h"
#import <Foundation/Foundation.h>


NAVIGINE_EXPORT
@interface NCEddystone : NSObject

@property (nonatomic, nonnull, readonly) NCPoint * point;
Expand Down
2 changes: 2 additions & 0 deletions Frameworks/navigine.framework/Headers/NCElevationGraph.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#import "NCExport.h"
#import <Foundation/Foundation.h>
@class NCGraphEdge;


NAVIGINE_EXPORT
@interface NCElevationGraph : NSObject

@property (nonatomic, nonnull, readonly) NSArray<NCGraphEdge *> * edges;
Expand Down
2 changes: 2 additions & 0 deletions Frameworks/navigine.framework/Headers/NCExport.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#pragma once
#define NAVIGINE_EXPORT __attribute__((visibility("default")))
10 changes: 6 additions & 4 deletions Frameworks/navigine.framework/Headers/NCGeometryUtils.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#import "NCExport.h"
#import "NCGlobalPoint.h"
#import "NCPoint.h"
#import "NCPolygon.h"
#import "NCSegment.h"
#import <Foundation/Foundation.h>


NAVIGINE_EXPORT
@interface NCGeometryUtils : NSObject

/** Get distance between GPS points */
Expand Down Expand Up @@ -45,11 +47,11 @@
segment2:(nonnull NCSegment *)segment2;

/** Calculate projection point on a segment */
+ (nonnull NCPoint *)projectionPoint:(nonnull NCSegment *)segment
point:(nonnull NCPoint *)point;
+ (nonnull NCPoint *)getRatioPoint:(nonnull NCSegment *)segment
r:(double)r;

/** Calculate the division ratio of a segment by a given point */
+ (float)divisionRatioByPoint:(nonnull NCSegment *)segment
point:(nonnull NCPoint *)point;
+ (double)getProjectionRatio:(nonnull NCSegment *)segment
point:(nonnull NCPoint *)point;

@end
182 changes: 182 additions & 0 deletions Frameworks/navigine.framework/Headers/NCGestureRecognizerDelegate.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@class NCLocationView;

/**
The `NCGestureRecognizerDelegate` protocol can be implemented to receive gesture events from the map view. The map view will
first check whether a gestureDelegate is set, then check whether it responds to any `shouldRecognize*` method:
- If the delegate responds to `shouldRecognize*`, the map view only performs its default handling of the gesture if
`shouldRecognize*` returns `YES`.
- If the delegate doesn't respond to `shouldRecognize*`, the map view performs its default handling of the gesture.
Finally, if the delegate implements `didRecognize*` then the map view calls this method after the gesture is handled.
@note These methods are all **optional**. All the screen positions in this interface are in _logical pixels_ or
_drawing coordinate system_ (based on a `UIKit` coordinate system) which is independent of the phone pixel density.
Refer to the
<a href="https://developer.apple.com/library/content/documentation/2DDrawing/Conceptual/DrawingPrintingiOS/GraphicsDrawingOverview/GraphicsDrawingOverview.html">
Apple documentation</a> regarding _Coordinate Systems and Drawing in iOS_ for more informations.
*/
@protocol NCGestureRecognizerDelegate <NSObject>
@optional

/**
Whether the map view should handle a single tap gesture.
@param view The map view instance.
@param recognizer The `UIGestureRecognizer` that recognized the gesture.
@param location The location of the recognized gesture in the view.
@return `YES` if the map view should handle this gesture, otherwise `NO`.
*/
- (BOOL)locationView:(NCLocationView *)view
recognizer:(UIGestureRecognizer *)recognizer
shouldRecognizeSingleTapGesture:(CGPoint)location;

/**
Whether the map view should handle a double tap gesture.
@param view The map view instance.
@param recognizer The `UIGestureRecognizer` that recognized the gesture.
@param location The location of the recognized gesture in the view.
@return `YES` if the map view should handle this gesture, otherwise `NO`.
*/
- (BOOL)locationView:(NCLocationView *)view
recognizer:(UIGestureRecognizer *)recognizer
shouldRecognizeDoubleTapGesture:(CGPoint)location;

/**
Whether the map view should handle a long press gesture.
@param view The map view instance.
@param recognizer The `UIGestureRecognizer` that recognized the gesture.
@param location The location of the recognized gesture in the view.
@return `YES` if the map view should handle this gesture, otherwise `NO`.
*/
- (BOOL)locationView:(NCLocationView *)view
recognizer:(UIGestureRecognizer *)recognizer
shouldRecognizeLongPressGesture:(CGPoint)location;

/**
Whether the map view should handle a pan gesture.
@param view The map view instance.
@param recognizer The `UIGestureRecognizer` that recognized the gesture.
@param displacement The displacement of the recognized gesture in the view.
@return `YES` if the map view should handle this gesture, otherwise `NO`.
*/
- (BOOL)locationView:(NCLocationView *)view
recognizer:(UIGestureRecognizer *)recognizer
shouldRecognizePanGesture:(CGPoint)displacement;

/**
Whether the map view should handle a pinch gesture.
@param view The map view instance.
@param recognizer The `UIGestureRecognizer` that recognized the gesture.
@param location The position of the recognized gesture in the view.
@return `YES` if the map view should handle this gesture, otherwise `NO`.
*/
- (BOOL)locationView:(NCLocationView *)view
recognizer:(UIGestureRecognizer *)recognizer
shouldRecognizePinchGesture:(CGPoint)location;

/**
Whether the map view should handle a rotation gesture.
@param view The map view instance.
@param recognizer The `UIGestureRecognizer` that recognized the gesture.
@param location The position of the recognized gesture in the view.
@return `YES` if the map view should handle this gesture, otherwise `NO`.
*/
// - (BOOL)locationView:(NCLocationView *)view
// recognizer:(UIGestureRecognizer *)recognizer
// shouldRecognizeRotationGesture:(CGPoint)location;

/**
Whether the map view should handle a shove gesture.
@param view The map view instance.
@param recognizer The `UIGestureRecognizer` that recognized the gesture.
@param displacement The displacement of the recognized gesture in the view.
@return `YES` if the map view should handle this gesture, otherwise `NO`.
*/
// - (BOOL)locationView:(NCLocationView *)view
// recognizer:(UIGestureRecognizer *)recognizer
// shouldRecognizeShoveGesture:(CGPoint)displacement;

/**
Called when the map view just handled a single tap gesture.
@param view The map view instance.
@param recognizer The `UIGestureRecognizer` the recognized the gesture.
@param location The position of the recognized gesture in the view.
*/
- (void)locationView:(NCLocationView *)view
recognizer:(UIGestureRecognizer *)recognizer
didRecognizeSingleTapGesture:(CGPoint)location;

/**
Called when the map view just handled a single double tap gesture.
@param view The map view instance.
@param recognizer The `UIGestureRecognizer` the recognized the gesture.
@param location The position of the recognized gesture in the view.
*/
- (void)locationView:(NCLocationView *)view
recognizer:(UIGestureRecognizer *)recognizer
didRecognizeDoubleTapGesture:(CGPoint)location;

/**
Called when the map view just handled a long press gesture.
@param view The map view instance.
@param recognizer The `UIGestureRecognizer` the recognized the gesture.
@param location The position of the recognized gesture in the view.
*/
- (void)locationView:(NCLocationView *)view
recognizer:(UIGestureRecognizer *)recognizer
didRecognizeLongPressGesture:(CGPoint)location;

/**
Called when the map view just handled a pan gesture.
@param view The map view instance.
@param recognizer The `UIGestureRecognizer` the recognized the gesture.
@param displacement The displacement of the recognized gesture in the view.
*/
- (void)locationView:(NCLocationView *)view
recognizer:(UIGestureRecognizer *)recognizer
didRecognizePanGesture:(CGPoint)displacement;

/**
Called when the map view just handled a pinch gesture.
@param view The map view instance.
@param recognizer The `UIGestureRecognizer` the recognized the gesture.
@param location The position of the recognized gesture in the view.
*/
- (void)locationView:(NCLocationView *)view
recognizer:(UIGestureRecognizer *)recognizer
didRecognizePinchGesture:(CGPoint)location;

/**
Called when the map view just handled a rotation gesture.
@param view The map view instance.
@param recognizer The `UIGestureRecognizer` the recognized the gesture.
@param location The position of the recognized gesture in the view.
*/
// - (void)locationView:(NCLocationView *)view
// recognizer:(UIGestureRecognizer *)recognizer
// didRecognizeRotationGesture:(CGPoint)location;

/**
Called when the map view just handled a shove gesture.
@param view The map view instance.
@param recognizer The `UIGestureRecognizer` the recognized the gesture.
@param displacement The displacement of the recognized gesture in the view.
*/
// - (void)locationView:(NCLocationView *)view
// recognizer:(UIGestureRecognizer *)recognizer
// didRecognizeShoveGesture:(CGPoint)displacement;

/**
If implemented, the returned value will be the focus for the pinch gesture.
@param view The map view instance.
@param recognizer The `UIGestureRecognizer` that recognized the gesture.
@return The screen position the pinch gesture should focus to.
*/
- (CGPoint)pinchFocus:(NCLocationView *)view recognizer:(UIGestureRecognizer *)recognizer;

@end
2 changes: 2 additions & 0 deletions Frameworks/navigine.framework/Headers/NCGlobalPoint.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#import "NCExport.h"
#import <Foundation/Foundation.h>

NAVIGINE_EXPORT
@interface NCGlobalPoint : NSObject
- (nonnull instancetype)initWithLatitude:(float)latitude
longitude:(float)longitude;
Expand Down
2 changes: 2 additions & 0 deletions Frameworks/navigine.framework/Headers/NCGraph.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#import "NCExport.h"
#import <Foundation/Foundation.h>
@class NCGraphEdge;
@class NCGraphVertex;


NAVIGINE_EXPORT
@interface NCGraph : NSObject

@property (nonatomic, nonnull, readonly) NSArray<NCGraphVertex *> * vertexes;
Expand Down
2 changes: 2 additions & 0 deletions Frameworks/navigine.framework/Headers/NCGraphEdge.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#import "NCExport.h"
#import <Foundation/Foundation.h>


NAVIGINE_EXPORT
@interface NCGraphEdge : NSObject

@property (nonatomic, readonly) float weight;
Expand Down
Loading

0 comments on commit 0d4b162

Please sign in to comment.