diff --git a/Plugins/iOS/TapBootstrapSDK.framework/Headers/TapBootstrap.h b/Plugins/iOS/TapBootstrapSDK.framework/Headers/TapBootstrap.h index 8a6ba87..18f6256 100644 --- a/Plugins/iOS/TapBootstrapSDK.framework/Headers/TapBootstrap.h +++ b/Plugins/iOS/TapBootstrapSDK.framework/Headers/TapBootstrap.h @@ -14,14 +14,12 @@ #import -#define TapSDK @"TapSDK" -#define TapSDK_VERSION_NUMBER @"20103001" -#define TapSDK_VERSION @"2.1.3" - NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM (NSInteger, TapBootstrapLoginType) { TapBootstrapLoginTypeTapTap = 0, + TapBootstrapLoginTypeApple, + TapBootstrapLoginTypeGuest }; typedef NS_ENUM (NSInteger, TapBootstrapBindType) { @@ -51,15 +49,15 @@ typedef void (^TapUserDetailsHandler)(TapUserDetails *_Nullable userDetail, NSEr /// @param delegate 回调 + (void)registerUserStatusChangedDelegate:(id )delegate; -/// TapTap 登录 -/// @param permissions 权限列表 -+ (void)loginWithPermissions:(NSArray *_Nullable)permissions; - /// 登录 /// @param type 登录类型 /// @param permissions 权限列表 (仅在taptap登录时需要) + (void)login:(TapBootstrapLoginType)type permissions:(NSArray *_Nullable)permissions; +/// 绑定 TapTap 账号 +/// @param permissions TapTap 授权权限 ++ (void)bind:(TapBootstrapBindType)type permissions:(NSArray *)permissions; + /// 获取用户基本信息 + (void)getUser:(TapUserHandler)handler; @@ -72,9 +70,8 @@ typedef void (^TapUserDetailsHandler)(TapUserDetails *_Nullable userDetail, NSEr /// 退出登录 + (void)logout; -/// 获取用户是否有测试资格 -/// @param handler 回调 -+ (void)getTestQualification:(void (^)(BOOL isQualified, NSError *_Nullable error))handler; +/// 打开用户中心 ++ (void)openUserCenter; /// 设定游戏倾向语言 /// @param lang TapLanguageType 0-自动 1-简中 2-英文 diff --git a/Plugins/iOS/TapBootstrapSDK.framework/Headers/TapSDKConstants.h b/Plugins/iOS/TapBootstrapSDK.framework/Headers/TapSDKConstants.h index 1034f68..494d32b 100644 --- a/Plugins/iOS/TapBootstrapSDK.framework/Headers/TapSDKConstants.h +++ b/Plugins/iOS/TapBootstrapSDK.framework/Headers/TapSDKConstants.h @@ -9,6 +9,10 @@ NS_ASSUME_NONNULL_BEGIN +#define TapSDK @"TapSDK" +#define TapSDK_VERSION_NUMBER @"1" +#define TapSDK_VERSION @"2.0.0" + FOUNDATION_EXTERN int const ERROR_CODE_UNDEFINED; FOUNDATION_EXTERN int const ERROR_CODE_UNINITIALIZED; diff --git a/Plugins/iOS/TapBootstrapSDK.framework/Headers/TapUser.h b/Plugins/iOS/TapBootstrapSDK.framework/Headers/TapUser.h index c81eecd..de40d8e 100644 --- a/Plugins/iOS/TapBootstrapSDK.framework/Headers/TapUser.h +++ b/Plugins/iOS/TapBootstrapSDK.framework/Headers/TapUser.h @@ -17,8 +17,6 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, assign) BOOL isGuest; @property (nonatomic, assign) long gender; -- (instancetype)initWithJsonString:(NSString *)json; - - (NSString *)toJsonString; @end diff --git a/Plugins/iOS/TapBootstrapSDK.framework/Info.plist b/Plugins/iOS/TapBootstrapSDK.framework/Info.plist index 78b1950..b9a6a83 100644 Binary files a/Plugins/iOS/TapBootstrapSDK.framework/Info.plist and b/Plugins/iOS/TapBootstrapSDK.framework/Info.plist differ diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders.meta b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders.meta new file mode 100644 index 0000000..2621fc0 --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: cd1044295ee0c4b12823fea7afc99359 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/LoginApple.h b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/LoginApple.h new file mode 100644 index 0000000..85fff55 --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/LoginApple.h @@ -0,0 +1,23 @@ +// +// LoginApple.h +// TapBootstrapSDK +// +// Created by Bottle K on 2021/2/23. +// + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface LoginApple : NSObject + ++ (instancetype)shareInstance; + +- (void)login; + ++ (void)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/LoginApple.h.meta b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/LoginApple.h.meta new file mode 100644 index 0000000..a84255c --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/LoginApple.h.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: b98abaec7f7bd422cabf607e1c821a69 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/LoginGuest.h b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/LoginGuest.h new file mode 100644 index 0000000..78dea9f --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/LoginGuest.h @@ -0,0 +1,18 @@ +// +// LoginGuest.h +// TapBootstrapSDK +// +// Created by Bottle K on 2021/2/23. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface LoginGuest : NSObject + ++ (void)login; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/LoginGuest.h.meta b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/LoginGuest.h.meta new file mode 100644 index 0000000..cabc32f --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/LoginGuest.h.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 8dc33ebeb120040cca4b8b47ee51088c +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/LoginTap.h b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/LoginTap.h new file mode 100644 index 0000000..f8987ec --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/LoginTap.h @@ -0,0 +1,21 @@ +// +// LoginTap.h +// TapBootstrapSDK +// +// Created by Bottle K on 2021/2/23. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface LoginTap : NSObject ++ (instancetype)shareInstance; + +- (void)login:(NSArray *)permissions; + +- (void)bind:(NSArray *)permissions; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/LoginTap.h.meta b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/LoginTap.h.meta new file mode 100644 index 0000000..510e3cb --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/LoginTap.h.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: fd548f0f02001488baa9195a9b5c98b5 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSAPI.h b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSAPI.h new file mode 100644 index 0000000..c9329b7 --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSAPI.h @@ -0,0 +1,34 @@ +// +// TDSAPI.h +// TapBootstrapSDK +// +// Created by Bottle K on 2021/2/19. +// + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +static NSString *const TDS_TAPTAP_LOGIN = @"/api/v1/authorization/taptap"; +static NSString *const TDS_GUEST_LOGIN = @"/api/v1/authorization/device"; +static NSString *const TDS_APPLE_LOGIN = @"/api/v1/authorization/apple"; + +static NSString *const TDS_TAPTAP_BIND = @"/api/v1/authorization/taptap/bind"; + +static NSString *const TDS_USER_INFO = @"/api/v1/user/info"; +static NSString *const TDS_USER_DETAIL = @"/api/v1/user/detail"; + +static NSString *const TDS_TOKEN_REFRESH = @"/api/v1/token"; + +static NSString *const TDS_FRIEND_USER_INFO_MULTI = @"/api/v1/user/multi"; + +@interface TDSAPI : NSObject ++ (instancetype)sharedInstance; + +- (TDSNetExecutor *)doWithRequest:(TDSNetRequestModel *)request; + +- (NSString *)getXUAString; +@end + +NS_ASSUME_NONNULL_END diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSAPI.h.meta b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSAPI.h.meta new file mode 100644 index 0000000..8a56470 --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSAPI.h.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: f2a317316259f4cb59108955c61a4c60 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSLogoutConfirmView.h b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSLogoutConfirmView.h new file mode 100644 index 0000000..fc52d03 --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSLogoutConfirmView.h @@ -0,0 +1,16 @@ +// +// TDSLogoutConfirmView.h +// TapBootstrapSDK +// +// Created by Bottle K on 2021/3/1. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface TDSLogoutConfirmView : NSObject + +@end + +NS_ASSUME_NONNULL_END diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSLogoutConfirmView.h.meta b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSLogoutConfirmView.h.meta new file mode 100644 index 0000000..03491f9 --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSLogoutConfirmView.h.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 50f5b7bd0b4ee453aa82933037962a04 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSNetManager.h b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSNetManager.h new file mode 100644 index 0000000..48ddf3b --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSNetManager.h @@ -0,0 +1,41 @@ +// +// TDSNetManager.h +// TapBootstrapSDK +// +// Created by Bottle K on 2021/2/23. +// + +#import +#import +#import +#import +NS_ASSUME_NONNULL_BEGIN + +typedef void (^TDSInnerSimpleHandler)(NSError *_Nullable error); +typedef void (^TDSInnerUserInfoHandler)(TapUser *_Nullable userInfo, NSError *_Nullable error); +typedef void (^TDSInnerUserDetailHandler)(TapUserDetails *_Nullable userDetail, NSError *_Nullable error); +typedef void (^TDSInnerMultiUserInfoHandler)(TDSUserInfoList *_Nullable userList, NSError *_Nullable error); + +@interface TDSNetManager : NSObject + ++ (void)refreshToken; + +#pragma mark - handle bind taptap ++ (void)handleTapTapBind:(NSDictionary *_Nullable)args error:(NSError *_Nullable)error; + ++ (void)handleThirdLoginSuccess:(NSDictionary *_Nullable)args type:(int)loginType; + ++ (void)handleThirdLoginCancel; + ++ (void)handleThirdLoginFail:(NSError *)error; + ++ (void)getUserInfo:(TDSInnerUserInfoHandler)handler; + ++ (void)getUserDetail:(TDSInnerUserDetailHandler)handler; + ++ (void)getUserInfoMulti:(NSArray *)userIdArray + handler:(TDSInnerMultiUserInfoHandler)handler; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSNetManager.h.meta b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSNetManager.h.meta new file mode 100644 index 0000000..a63dcf3 --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSNetManager.h.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 5ec0be7cd6ff64a6a8570c8a36c4bbb7 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUCEntryCell.h b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUCEntryCell.h new file mode 100644 index 0000000..8e50b20 --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUCEntryCell.h @@ -0,0 +1,17 @@ +// +// TDSUCEntryCell.h +// TapBootstrapSDK +// +// Created by Bottle K on 2021/3/12. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface TDSUCEntryCell : UITableViewCell + +- (void)setTitleText:(NSString *)title icon:(UIImage *)image needSeparator:(BOOL)needSeparator; +@end + +NS_ASSUME_NONNULL_END diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUCEntryCell.h.meta b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUCEntryCell.h.meta new file mode 100644 index 0000000..35f7c20 --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUCEntryCell.h.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: e6a4a39b462114c258dce295fe343e49 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUCEntryListView.h b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUCEntryListView.h new file mode 100644 index 0000000..83685e0 --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUCEntryListView.h @@ -0,0 +1,19 @@ +// +// TDSUCEntryListView.h +// TapBootstrapSDK +// +// Created by Bottle K on 2021/3/11. +// + +#import +#import "TapUserDetails.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface TDSUCEntryListView : UIView +@property (nonatomic, copy) void (^ entryDicClickBlock)(NSString *type); + +- (void)loadData:(NSArray *)dataSource; +@end + +NS_ASSUME_NONNULL_END diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUCEntryListView.h.meta b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUCEntryListView.h.meta new file mode 100644 index 0000000..5e5b8fb --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUCEntryListView.h.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 5a906860b8022410c97051eadc9f1970 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUCHeadView.h b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUCHeadView.h new file mode 100644 index 0000000..d8c6292 --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUCHeadView.h @@ -0,0 +1,19 @@ +// +// TDSUCHeadView.h +// TapBootstrapSDK +// +// Created by Bottle K on 2021/3/11. +// + +#import +#import "TapUserDetails.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface TDSUCHeadView : UIView +@property (nonatomic, copy) void (^ copyIdBlock)(NSString *text); + +- (void)loadData:(TapUserDetails *)userDetail; +@end + +NS_ASSUME_NONNULL_END diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUCHeadView.h.meta b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUCHeadView.h.meta new file mode 100644 index 0000000..d780c71 --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUCHeadView.h.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: e2b85f6390c8b4ba8b48a7fd30ff16ab +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUIManager.h b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUIManager.h new file mode 100644 index 0000000..3f6df64 --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUIManager.h @@ -0,0 +1,28 @@ +// +// TDSUIManager.h +// TapBootstrapSDK +// +// Created by Bottle K on 2021/3/1. +// + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +extern NSString * const TDSUCEntryTypeMoment; +extern NSString * const TDSUCEntryTypeFriend; + +@interface TDSUIManager : NSObject ++ (instancetype)sharedManager; + ++ (void)showUserCenter; + ++ (UIImage *)getImageFromBundle:(NSString *)name; + ++ (NSString *)getTranslatedString:(NSString *)key; + +- (void)logout; +@end + +NS_ASSUME_NONNULL_END diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUIManager.h.meta b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUIManager.h.meta new file mode 100644 index 0000000..0bc813e --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUIManager.h.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: f0e1ae9a3e0c94942a3992eb5cfb9034 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUserCenterView.h b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUserCenterView.h new file mode 100644 index 0000000..5b30c8f --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUserCenterView.h @@ -0,0 +1,25 @@ +// +// TDSUserCenterView.h +// TapBootstrapSDK +// +// Created by Bottle K on 2021/3/1. +// + +#import +#import "TapUserDetails.h" + +NS_ASSUME_NONNULL_BEGIN +@protocol TDSUserCenterProtocol + +- (void)onReloadData; +- (void)onClose; +@end + +@interface TDSUserCenterView : UIView + +@property (nonatomic, weak) id delegate; + +- (void)loadData:(TapUserDetails *)userDetail; +@end + +NS_ASSUME_NONNULL_END diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUserCenterView.h.meta b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUserCenterView.h.meta new file mode 100644 index 0000000..a269e07 --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUserCenterView.h.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 1bbb5e1ff50224aef8f2475cbbdf44eb +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUserInfoList.h b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUserInfoList.h new file mode 100644 index 0000000..a55c822 --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUserInfoList.h @@ -0,0 +1,17 @@ +// +// TDSUserInfoList.h +// TapBootstrapSDK +// +// Created by Bottle K on 2021/3/12. +// + +#import +#import "TapUser.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface TDSUserInfoList : NSObject +@property (nonatomic) NSMutableArray *list; +@end + +NS_ASSUME_NONNULL_END diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUserInfoList.h.meta b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUserInfoList.h.meta new file mode 100644 index 0000000..a45fcb3 --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TDSUserInfoList.h.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 073febe5b7f964db8920faa157a00448 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TapBootstrapService.h b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TapBootstrapService.h new file mode 100644 index 0000000..e4a8f22 --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TapBootstrapService.h @@ -0,0 +1,37 @@ +// +// TapBootstrapService.h +// TapBootstrapSDK +// +// Created by Bottle K on 2021/2/24. +// + +#import + +NS_ASSUME_NONNULL_BEGIN +typedef void (^ServiceCallback)(NSString *result); +@interface TapBootstrapService : NSObject + ++ (void)registerLoginResultListener:(ServiceCallback)callback; + ++ (void)registerUserStatusChangedListener:(ServiceCallback)callback; + ++ (void)clientID:(NSString *)clientID regionType:(NSNumber *)isCN; + ++ (void)login:(NSNumber *)type permissions:(NSArray *_Nullable)permissions; + ++ (void)bind:(NSNumber *)type permissions:(NSArray *_Nullable)permissions; + ++ (void)getUser:(ServiceCallback)callback; + ++ (void)getUserDetails:(ServiceCallback)callback; + ++ (void)getCurrentToken:(ServiceCallback)callback; + ++ (void)logout; + ++ (void)openUserCenter; + ++ (void)preferredLanguage:(NSNumber *)language; +@end + +NS_ASSUME_NONNULL_END diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TapBootstrapService.h.meta b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TapBootstrapService.h.meta new file mode 100644 index 0000000..29b5a49 --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TapBootstrapService.h.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 49760bd4deb4e49449c5dbe452049245 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TapSDKImpl.h b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TapSDKImpl.h new file mode 100644 index 0000000..10041a3 --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TapSDKImpl.h @@ -0,0 +1,52 @@ +// +// TapSDKImpl.h +// TapBootstrapSDK +// +// Created by Bottle K on 2021/2/23. +// + +#import +#import +#import +#import +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface TapSDKImpl : NSObject +@property (nonatomic, weak) idloginResultDelegate; +@property (nonatomic, weak) iduserStatusChangeDelegate; + +@property (nonatomic, strong) TapConfig *config; +@property (nonatomic, copy) NSDictionary *defaultQueries; + ++ (instancetype)shareInstance; + ++ (void)initWithSDKConfig:(TapConfig *)config; + ++ (void)refreshToken; + ++ (void)loginByTap:(NSArray *)permissions; + ++ (void)bindWithTapTap:(NSArray *)permissions; + ++ (void)loginByGuest; + ++ (void)loginByApple; + ++ (void)getUserInfo:(TDSInnerUserInfoHandler)handler; + ++ (void)getUserDetail:(TDSInnerUserDetailHandler)handler; + ++ (AccessToken *)currentToken; + ++ (void)logout:(NSError *_Nullable)error; + ++ (BOOL)handleOpenURL:(NSURL *)url; + ++ (void)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions; +@end + +NS_ASSUME_NONNULL_END diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TapSDKImpl.h.meta b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TapSDKImpl.h.meta new file mode 100644 index 0000000..6ae7f02 --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TapSDKImpl.h.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 0714b1a2e366146bdbfee160a7dc7b4e +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TokenManager.h b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TokenManager.h new file mode 100644 index 0000000..4999cac --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TokenManager.h @@ -0,0 +1,26 @@ +// +// TokenManager.h +// TapBootstrapSDK +// +// Created by Bottle K on 2021/2/20. +// + +#import +#import "AccessToken.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface TokenManager : NSObject +@property (nonatomic, strong, nullable) AccessToken *currentToken; + ++ (instancetype)new NS_UNAVAILABLE; +- (instancetype)init NS_UNAVAILABLE; + ++ (instancetype)shareInstance; + +- (void)setToken:(AccessToken *)token; + +- (void)logout; +@end + +NS_ASSUME_NONNULL_END diff --git a/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TokenManager.h.meta b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TokenManager.h.meta new file mode 100644 index 0000000..4738867 --- /dev/null +++ b/Plugins/iOS/TapBootstrapSDK.framework/PrivateHeaders/TokenManager.h.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: cf61a5ad80b744a6abe2e834af603c73 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapBootstrapSDK.framework/TapBootstrapSDK b/Plugins/iOS/TapBootstrapSDK.framework/TapBootstrapSDK index f4cdfa0..1f0463d 100644 Binary files a/Plugins/iOS/TapBootstrapSDK.framework/TapBootstrapSDK and b/Plugins/iOS/TapBootstrapSDK.framework/TapBootstrapSDK differ