-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wip ]CORESDK-3099: Integrate common with dependency on Turf
- Loading branch information
1 parent
c8a8d17
commit a1d7abf
Showing
194 changed files
with
7,978 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
binary "https://api.mapbox.com/downloads/v2/carthage/search-core-sdk/MapboxCoreSearch.xcframework.json" == 2.6.0-beta.2 | ||
binary "https://api.mapbox.com/downloads/v2/carthage/mapbox-common/MapboxCommon.json" == 24.8.0-beta.1 | ||
binary "https://api.mapbox.com/downloads/v2/carthage/mapbox-common/MapboxCommon.json" == 24.8.0-beta.1 | ||
binary "Cartfile.Turf.json" == 3.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{ "3.1.0": "https://github.com/mapbox/turf-swift/releases/download/v3.1.0/Turf.xcframework.zip" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
binary "Cartfile.Turf.json" "3.1.0" | ||
binary "https://api.mapbox.com/downloads/v2/carthage/mapbox-common/MapboxCommon.json" "24.8.0-beta.1" | ||
binary "https://api.mapbox.com/downloads/v2/carthage/search-core-sdk/MapboxCoreSearch.xcframework.json" "2.6.0-beta.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>AvailableLibraries</key> | ||
<array> | ||
<dict> | ||
<key>BinaryPath</key> | ||
<string>MapboxCoreSearch.framework/Versions/A/MapboxCoreSearch</string> | ||
<key>LibraryIdentifier</key> | ||
<string>ios-arm64_x86_64-maccatalyst</string> | ||
<key>LibraryPath</key> | ||
<string>MapboxCoreSearch.framework</string> | ||
<key>SupportedArchitectures</key> | ||
<array> | ||
<string>arm64</string> | ||
<string>x86_64</string> | ||
</array> | ||
<key>SupportedPlatform</key> | ||
<string>ios</string> | ||
<key>SupportedPlatformVariant</key> | ||
<string>maccatalyst</string> | ||
</dict> | ||
<dict> | ||
<key>BinaryPath</key> | ||
<string>MapboxCoreSearch.framework/MapboxCoreSearch</string> | ||
<key>LibraryIdentifier</key> | ||
<string>ios-arm64</string> | ||
<key>LibraryPath</key> | ||
<string>MapboxCoreSearch.framework</string> | ||
<key>SupportedArchitectures</key> | ||
<array> | ||
<string>arm64</string> | ||
</array> | ||
<key>SupportedPlatform</key> | ||
<string>ios</string> | ||
</dict> | ||
<dict> | ||
<key>BinaryPath</key> | ||
<string>MapboxCoreSearch.framework/MapboxCoreSearch</string> | ||
<key>LibraryIdentifier</key> | ||
<string>ios-arm64_x86_64-simulator</string> | ||
<key>LibraryPath</key> | ||
<string>MapboxCoreSearch.framework</string> | ||
<key>SupportedArchitectures</key> | ||
<array> | ||
<string>arm64</string> | ||
<string>x86_64</string> | ||
</array> | ||
<key>SupportedPlatform</key> | ||
<string>ios</string> | ||
<key>SupportedPlatformVariant</key> | ||
<string>simulator</string> | ||
</dict> | ||
</array> | ||
<key>CFBundlePackageType</key> | ||
<string>XFWK</string> | ||
<key>MBXBranch</key> | ||
<string>sapial/CORESDK-3099/0</string> | ||
<key>MBXCommitHash</key> | ||
<string>c64d56bbd1</string> | ||
<key>MBXCommonSDKVersion</key> | ||
<string>24.9.0-beta.1</string> | ||
<key>XCFrameworkFormatVersion</key> | ||
<string>1.0</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>NSPrivacyAccessedAPITypes</key> | ||
<array> | ||
<dict> | ||
<key>NSPrivacyAccessedAPIType</key> | ||
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string> | ||
<key>NSPrivacyAccessedAPITypeReasons</key> | ||
<array> | ||
<string>C617.1</string> | ||
</array> | ||
</dict> | ||
</array> | ||
<key>NSPrivacyTrackingDomains</key> | ||
<array> | ||
<string>https://events.mapbox.com</string> | ||
</array> | ||
<key>NSPrivacyCollectedDataTypes</key> | ||
<array> | ||
<dict> | ||
<key>NSPrivacyCollectedDataType</key> | ||
<string>NSPrivacyCollectedDataTypeOtherDiagnosticData</string> | ||
<key>NSPrivacyCollectedDataTypeLinked</key> | ||
<false/> | ||
<key>NSPrivacyCollectedDataTypeTracking</key> | ||
<false/> | ||
<key>NSPrivacyCollectedDataTypePurposes</key> | ||
<array> | ||
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string> | ||
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string> | ||
</array> | ||
</dict> | ||
<dict> | ||
<key>NSPrivacyCollectedDataType</key> | ||
<string>NSPrivacyCollectedDataTypeCoarseLocation</string> | ||
<key>NSPrivacyCollectedDataTypeLinked</key> | ||
<false/> | ||
<key>NSPrivacyCollectedDataTypeTracking</key> | ||
<false/> | ||
<key>NSPrivacyCollectedDataTypePurposes</key> | ||
<array> | ||
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string> | ||
</array> | ||
</dict> | ||
<dict> | ||
<key>NSPrivacyCollectedDataType</key> | ||
<string>NSPrivacyCollectedDataTypePreciseLocation</string> | ||
<key>NSPrivacyCollectedDataTypeLinked</key> | ||
<false/> | ||
<key>NSPrivacyCollectedDataTypeTracking</key> | ||
<false/> | ||
<key>NSPrivacyCollectedDataTypePurposes</key> | ||
<array> | ||
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string> | ||
</array> | ||
</dict> | ||
</array> | ||
<key>NSPrivacyTracking</key> | ||
<true/> | ||
</dict> | ||
</plist> |
17 changes: 17 additions & 0 deletions
17
MapboxCoreSearch.xcframework/ios-arm64/MapboxCoreSearch.framework/Headers/MBXSApiType.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// This file is generated and will be overwritten automatically. | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
/** Supported backend APIs - https://docs.mapbox.com/api/search/. */ | ||
// NOLINTNEXTLINE(modernize-use-using) | ||
typedef NS_ENUM(NSInteger, MBXSApiType) | ||
{ | ||
/** The Mapbox Geocoding (a.k.a V5) API - https://docs.mapbox.com/api/search/geocoding/. */ | ||
MBXSApiTypeGeocoding, | ||
/** The Mapbox Single Box Search (a.k.a Federation API) - https://docs.mapbox.com/api/search/search/. */ | ||
MBXSApiTypeSBS, | ||
/** The Mapbox Autofill API is a special-purpose version of the Geocoding v5 API for ecommerce forms. */ | ||
MBXSApiTypeAutofill, | ||
/** The Mapbox SearchBox API - https://docs.mapbox.com/api/search/search-box/ */ | ||
MBXSApiTypeSearchBox | ||
} NS_SWIFT_NAME(ApiType); |
17 changes: 17 additions & 0 deletions
17
MapboxCoreSearch.xcframework/ios-arm64/MapboxCoreSearch.framework/Headers/MBXSAttributeSet.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// This file is generated and will be overwritten automatically. | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
/** List of attribute sets which describe the level of metadata that will be returned. */ | ||
// NOLINTNEXTLINE(modernize-use-using) | ||
typedef NS_ENUM(NSInteger, MBXSAttributeSet) | ||
{ | ||
/** Essential information about a location such as name, address and coordinates. This is the default value for attribute_sets parameter, and will be provided when attribute_sets is not provided in the request. */ | ||
MBXSAttributeSetBasic, | ||
/** A collection of photos related to the location. */ | ||
MBXSAttributeSetPhotos, | ||
/** Specific information about the location including a detailed description text, user reviews, price level and popularity. */ | ||
MBXSAttributeSetVenue, | ||
/** Visiting information for the location like website, phone number and social media handles. */ | ||
MBXSAttributeSetVisit | ||
} NS_SWIFT_NAME(AttributeSet); |
33 changes: 33 additions & 0 deletions
33
MapboxCoreSearch.xcframework/ios-arm64/MapboxCoreSearch.framework/Headers/MBXSCategory.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// This file is generated and will be overwritten automatically. | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
/** SearchEngine::listCategories() result entry. */ | ||
NS_SWIFT_NAME(Category) | ||
__attribute__((visibility ("default"))) | ||
@interface MBXSCategory : NSObject | ||
|
||
// This class provides custom init which should be called | ||
- (nonnull instancetype)init NS_UNAVAILABLE; | ||
|
||
// This class provides custom init which should be called | ||
+ (nonnull instancetype)new NS_UNAVAILABLE; | ||
|
||
- (nonnull instancetype)initWithId:(nonnull NSString *)id_ | ||
icon:(nonnull NSString *)icon | ||
name:(nonnull NSString *)name; | ||
|
||
/** Category id. */ | ||
@property (nonatomic, readonly, nonnull, copy) NSString *id; | ||
|
||
/** | ||
* The name of a suggested Maki icon to visualize a POI feature based on its category. | ||
* \sa https://labs.mapbox.com/maki-icons/. | ||
*/ | ||
@property (nonatomic, readonly, nonnull, copy) NSString *icon; | ||
|
||
/** Canonical category name. */ | ||
@property (nonatomic, readonly, nonnull, copy) NSString *name; | ||
|
||
|
||
@end |
29 changes: 29 additions & 0 deletions
29
...CoreSearch.xcframework/ios-arm64/MapboxCoreSearch.framework/Headers/MBXSCategoryOptions.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// This file is generated and will be overwritten automatically. | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
/** Options for SearchEngine::listCategories() request. */ | ||
NS_SWIFT_NAME(CategoryOptions) | ||
__attribute__((visibility ("default"))) | ||
@interface MBXSCategoryOptions : NSObject | ||
|
||
// This class provides custom init which should be called | ||
- (nonnull instancetype)init NS_UNAVAILABLE; | ||
|
||
// This class provides custom init which should be called | ||
+ (nonnull instancetype)new NS_UNAVAILABLE; | ||
|
||
- (nonnull instancetype)initWithLanguage:(nonnull NSString *)language | ||
limit:(nullable NSNumber *)limit; | ||
|
||
/** ISO language code. */ | ||
@property (nonatomic, readonly, nonnull, copy) NSString *language; | ||
|
||
/** | ||
* Limit the number of results to return if set. | ||
* May cause HTTP 400 Bad Request error if specified limit is not supported by the backend. | ||
*/ | ||
@property (nonatomic, readonly, nullable) NSNumber *limit; | ||
|
||
|
||
@end |
25 changes: 25 additions & 0 deletions
25
...CoreSearch.xcframework/ios-arm64/MapboxCoreSearch.framework/Headers/MBXSConnectionError.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// This file is generated and will be overwritten automatically. | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
/** | ||
* Connection Error indicates that connection establishment was failed for some reason. | ||
* For example, requested endpoint is unavailable, request timeout is occurred or bad/illegal symbol is used in URL. | ||
*/ | ||
NS_SWIFT_NAME(ConnectionError) | ||
__attribute__((visibility ("default"))) | ||
@interface MBXSConnectionError : NSObject | ||
|
||
// This class provides custom init which should be called | ||
- (nonnull instancetype)init NS_UNAVAILABLE; | ||
|
||
// This class provides custom init which should be called | ||
+ (nonnull instancetype)new NS_UNAVAILABLE; | ||
|
||
- (nonnull instancetype)initWithMessage:(nonnull NSString *)message; | ||
|
||
/** Connection error message. */ | ||
@property (nonatomic, readonly, nonnull, copy) NSString *message; | ||
|
||
|
||
@end |
39 changes: 39 additions & 0 deletions
39
...xCoreSearch.xcframework/ios-arm64/MapboxCoreSearch.framework/Headers/MBXSDetailsOptions.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// This file is generated and will be overwritten automatically. | ||
|
||
#import <Foundation/Foundation.h> | ||
#import <MapboxCoreSearch/MBXSAttributeSet.h> | ||
|
||
/** Options for SearchEngine::retrieveDetails() request. */ | ||
NS_SWIFT_NAME(DetailsOptions) | ||
__attribute__((visibility ("default"))) | ||
@interface MBXSDetailsOptions : NSObject | ||
|
||
// This class provides custom init which should be called | ||
- (nonnull instancetype)init NS_UNAVAILABLE; | ||
|
||
// This class provides custom init which should be called | ||
+ (nonnull instancetype)new NS_UNAVAILABLE; | ||
|
||
- (nonnull instancetype)initWithAttributeSets:(nullable NSArray<NSNumber *> *)attributeSets | ||
language:(nullable NSString *)language | ||
worldview:(nullable NSString *)worldview; | ||
|
||
/** | ||
* Besides the basic metadata attributes, developers can request additional | ||
* attributes by setting attribute_sets parameter with attribute set values, | ||
* for example &attribute_sets=basic,photos,visit. | ||
* The requested metadata will be provided in metadata object in the response. | ||
*/ | ||
@property (nonatomic, readonly, nullable, copy) NSArray<NSNumber *> *attributeSets; | ||
|
||
/** The ISO language code to be returned. If not provided, the default is English. */ | ||
@property (nonatomic, readonly, nullable, copy) NSString *language; | ||
|
||
/** | ||
* The two digit ISO country code (such as 'JP') to requests a worldview for the location data, if applicable data is available. | ||
* This parameters will only be applicable for Boundaries and Places feature types. | ||
*/ | ||
@property (nonatomic, readonly, nullable, copy) NSString *worldview; | ||
|
||
|
||
@end |
33 changes: 33 additions & 0 deletions
33
...eSearch.xcframework/ios-arm64/MapboxCoreSearch.framework/Headers/MBXSDistanceCalculator.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// This file is generated and will be overwritten automatically. | ||
|
||
#import <Foundation/Foundation.h> | ||
#import <CoreLocation/CoreLocation.h> | ||
|
||
/** | ||
* Fast distance calculator that uses WGS84 approximation for distances less than 200km and spherical for greater | ||
* distances. Expected error is 0.04%. | ||
* | ||
* \sa https://github.com/mapbox/cheap-ruler | ||
*/ | ||
NS_SWIFT_NAME(DistanceCalculator) | ||
__attribute__((visibility ("default"))) | ||
@interface MBXSDistanceCalculator : NSObject | ||
|
||
// This class provides custom init which should be called | ||
- (nonnull instancetype)init NS_UNAVAILABLE; | ||
|
||
// This class provides custom init which should be called | ||
+ (nonnull instancetype)new NS_UNAVAILABLE; | ||
|
||
- (nonnull instancetype)initWithLat:(double)lat; | ||
/** | ||
* Calculates distance in meters between \a p1 and \a p2 that store coordinates in [longitude, latitude] format. | ||
* Uses WGS84-based approximation for short distances (< 200km), or \ref distanceOnSphere for the long ones. | ||
*/ | ||
- (double)distanceForP1:(CLLocationCoordinate2D)p1 | ||
p2:(CLLocationCoordinate2D)p2; | ||
/** Lightweight distance in meters between \a p1 and \a p2 on spherical Earth. Expected error is 0.4%. */ | ||
+ (double)distanceOnSphereForP1:(CLLocationCoordinate2D)p1 | ||
p2:(CLLocationCoordinate2D)p2; | ||
|
||
@end |
40 changes: 40 additions & 0 deletions
40
...oxCoreSearch.xcframework/ios-arm64/MapboxCoreSearch.framework/Headers/MBXSEngineOptions.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// This file is generated and will be overwritten automatically. | ||
|
||
#import <Foundation/Foundation.h> | ||
#import <MapboxCoreSearch/MBXSApiType.h> | ||
|
||
@class MBXSdkInformation; | ||
|
||
/** SearchEngine options. */ | ||
NS_SWIFT_NAME(EngineOptions) | ||
__attribute__((visibility ("default"))) | ||
@interface MBXSEngineOptions : NSObject | ||
|
||
// This class provides custom init which should be called | ||
- (nonnull instancetype)init NS_UNAVAILABLE; | ||
|
||
// This class provides custom init which should be called | ||
+ (nonnull instancetype)new NS_UNAVAILABLE; | ||
|
||
- (nonnull instancetype)initWithBaseUrl:(nullable NSString *)baseUrl | ||
apiType:(nullable NSNumber *)apiType | ||
sdkInformation:(nullable MBXSdkInformation *)sdkInformation | ||
eventsUrl:(nullable NSString *)eventsUrl; | ||
|
||
/** Base URL for server API. Default is "https://api.mapbox.com". */ | ||
@property (nonatomic, readonly, nullable, copy) NSString *baseUrl; | ||
|
||
/** Server API type. Default is ApiType::Geocoding. */ | ||
@property (nonatomic, readonly, nullable) NSNumber *apiType; | ||
|
||
/** | ||
* An optional SDK information that forms the SDK fragment from the "User-Agent" HTTP header. Enables telemetry events if set. | ||
* Available in the 'sdkInformation' property in the event template created by SearchEngine::createEventTemplate(). | ||
*/ | ||
@property (nonatomic, readonly, nullable) MBXSdkInformation *sdkInformation; | ||
|
||
/** Base URL for events service. Default is "https://events.mapbox.com". */ | ||
@property (nonatomic, readonly, nullable, copy) NSString *eventsUrl; | ||
|
||
|
||
@end |
Oops, something went wrong.