diff options
author | Jason Wray <friedbunny@users.noreply.github.com> | 2019-05-16 06:43:42 -0700 |
---|---|---|
committer | Julian Rex <julian.rex@mapbox.com> | 2019-05-16 09:43:42 -0400 |
commit | 6e92ca5de34dbb384f27caf378e16683e5a1fb84 (patch) | |
tree | 970e19ee4753cdc719ef86e793d49b0a006256e8 /platform/ios/vendor | |
parent | 60a6ae2d0fcf5e06dc9aa4e44348e3cad6a49241 (diff) | |
download | qtlocation-mapboxgl-6e92ca5de34dbb384f27caf378e16683e5a1fb84.tar.gz |
[ios] Update to libmbxaccounts 0.0.5 (#14683)
Diffstat (limited to 'platform/ios/vendor')
-rw-r--r-- | platform/ios/vendor/mapbox-accounts-ios/MBXSKUToken.h | 21 | ||||
-rw-r--r-- | platform/ios/vendor/mapbox-accounts-ios/libmbxaccounts.a | bin | 68592 -> 74248 bytes |
2 files changed, 17 insertions, 4 deletions
diff --git a/platform/ios/vendor/mapbox-accounts-ios/MBXSKUToken.h b/platform/ios/vendor/mapbox-accounts-ios/MBXSKUToken.h index e83ffd2288..8a02d9641c 100644 --- a/platform/ios/vendor/mapbox-accounts-ios/MBXSKUToken.h +++ b/platform/ios/vendor/mapbox-accounts-ios/MBXSKUToken.h @@ -2,13 +2,26 @@ NS_ASSUME_NONNULL_BEGIN -extern NSString *const MBXAccountsMapsSKUIDMaps; -extern NSString *const MBXAccountsNavigationSKUIDMaps; +typedef NSString *MBXAccountsSKUID NS_TYPED_ENUM; +FOUNDATION_EXTERN const MBXAccountsSKUID MBXAccountsSKUIDMaps; +FOUNDATION_EXTERN const MBXAccountsSKUID MBXAccountsSKUIDNavigation; + +typedef NS_ENUM(NSInteger, MBXAccountsSKUType) { + MBXAccountsSKUTypeUser, + MBXAccountsSKUTypeSession +}; @interface MBXSKUToken : NSObject -@property (class, nonatomic, readonly) NSString *mapsToken; -@property (class, nonatomic, readonly) NSString *navigationToken; +/** + Generates a token for the given identifier and type. + + @param skuId The sku identifier, e.g. maps or navigation. + @param type The type of token, e.g. user or session. + + @return A SKU token for use with API requests. + */ ++ (NSString *)tokenForSKUID:(MBXAccountsSKUID)skuId type:(MBXAccountsSKUType)type NS_SWIFT_NAME(token(for:type:)); @end diff --git a/platform/ios/vendor/mapbox-accounts-ios/libmbxaccounts.a b/platform/ios/vendor/mapbox-accounts-ios/libmbxaccounts.a Binary files differindex efe06835ec..b57e17d47f 100644 --- a/platform/ios/vendor/mapbox-accounts-ios/libmbxaccounts.a +++ b/platform/ios/vendor/mapbox-accounts-ios/libmbxaccounts.a |