feat: update csproj、update achievement
parent
5852127186
commit
fb04e1ff09
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -13,7 +13,8 @@ typedef NS_ENUM (NSInteger, TDSAccountType) {
|
|||
TAP,
|
||||
XD,
|
||||
XDG,
|
||||
TYPE_TDS
|
||||
TYPE_TDS,
|
||||
LC
|
||||
};
|
||||
|
||||
@interface TDSAccount : NSObject
|
||||
|
@ -28,9 +29,15 @@ typedef NS_ENUM (NSInteger, TDSAccountType) {
|
|||
@property (nonatomic, copy, readonly) NSString *macAlgorithm;
|
||||
/// tds
|
||||
@property (nonatomic, assign, readonly) long expireIn;
|
||||
/// lc
|
||||
@property (nonatomic, copy, readonly) NSString *clientId;
|
||||
@property (nonatomic, copy, readonly) NSString *clientToken;
|
||||
@property (nonatomic, copy, readonly) NSString *sessionToken;
|
||||
|
||||
- (instancetype)initWithToken:(NSString *)token type:(TDSAccountType)type;
|
||||
|
||||
- (instancetype)initWithLC:(NSString *)token type:(TDSAccountType)type;
|
||||
|
||||
- (TDSAccountType)getAccountType;
|
||||
|
||||
@end
|
||||
|
|
|
@ -29,6 +29,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
+ (NSString *)base64HMacSha1WithSecret:(NSString *)secret
|
||||
signString:(NSString *)signString;
|
||||
|
||||
+ (NSString *)getLcSignWithClientKey:(NSString *)clientKey;
|
||||
|
||||
+ (NSString *)getMacToken:(NSString *)url
|
||||
method:(NSString *)method
|
||||
oauthID:(NSString *)oauthID
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
//
|
||||
// TDSLocalizeUtil.h
|
||||
// TDSCommon
|
||||
//
|
||||
// Created by Bottle K on 2021/3/4.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "TDSLocalizeManager.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface TDSLocalizeUtil : NSObject
|
||||
|
||||
+ (instancetype)shareInstance;
|
||||
|
||||
+ (void)setCurrentLanguage:(TapLanguageType)langType;
|
||||
|
||||
+ (TapLanguageType)getCurrentLangType;
|
||||
|
||||
+ (NSString *)getCurrentLangString;
|
||||
|
||||
+ (NSDictionary *)readJsonFile:(NSString *)filePath;
|
||||
|
||||
+ (NSString *)getTextWithLangDic:(NSDictionary *)dic byKey:(NSString *)key;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: fc572b4efd2dc4e1793e116e45e82737
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -96,6 +96,7 @@ FOUNDATION_EXPORT const unsigned char TapCommonSDKVersionString[];
|
|||
#import <TapCommonSDK/TDSThrottle.h>
|
||||
#import <TapCommonSDK/TDSDebounce.h>
|
||||
#import <TapCommonSDK/TDSLocalizeManager.h>
|
||||
#import <TapCommonSDK/TDSLocalizeUtil.h>
|
||||
|
||||
#import <TapCommonSDK/TDSWSSecurity.h>
|
||||
#import <TapCommonSDK/TDSWSWebSocket.h>
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue