commit 68c35470368a1de8a7afdd6f2c959a03364ddfc6 Author: xiaoyi Date: Wed Apr 7 16:20:41 2021 +0800 feat(*): update namespace to TapTap.ModuleName diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..e69de29 diff --git a/CHANGELOG.md.meta b/CHANGELOG.md.meta new file mode 100644 index 0000000..4a33cab --- /dev/null +++ b/CHANGELOG.md.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: eeb07bf1995f44e02bf1e2f6c996794c +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Documentations.meta b/Documentations.meta new file mode 100644 index 0000000..2775549 --- /dev/null +++ b/Documentations.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: fbdcfe20063da447f8f40a469752cb35 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Documentations/README.md b/Documentations/README.md new file mode 100644 index 0000000..539c18a --- /dev/null +++ b/Documentations/README.md @@ -0,0 +1 @@ +# TapTap.Login \ No newline at end of file diff --git a/Documentations/README.md.meta b/Documentations/README.md.meta new file mode 100644 index 0000000..365fa39 --- /dev/null +++ b/Documentations/README.md.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: bba3a05fa298643d1a20c3cab5614c17 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Editor.meta b/Editor.meta new file mode 100644 index 0000000..6b5494f --- /dev/null +++ b/Editor.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 66c985194a5444c2a336b60bdb132f74 +timeCreated: 1617120951 \ No newline at end of file diff --git a/Editor/TapLoginIOSProcessor.cs b/Editor/TapLoginIOSProcessor.cs new file mode 100644 index 0000000..25e1d30 --- /dev/null +++ b/Editor/TapLoginIOSProcessor.cs @@ -0,0 +1,24 @@ +using TapTap.Common.Editor; +using UnityEditor; +using UnityEditor.Callbacks; +using UnityEngine; + +namespace TapTap.Login.Editor +{ + public static class TapLoginIOSProcessor + { + [PostProcessBuild(102)] + public static void OnPostprocessBuild(BuildTarget buildTarget, string path) + { + if (buildTarget != BuildTarget.iOS) return; + + var unityAppControllerPath = path + "/Classes/UnityAppController.mm"; + var unityAppController = new TapFileHelper(unityAppControllerPath); + unityAppController.WriteBelow(@"#import ", @"#import "); + unityAppController.WriteBelow( + @"id sourceApplication = options[UIApplicationOpenURLOptionsSourceApplicationKey], annotation = options[UIApplicationOpenURLOptionsAnnotationKey];", + @"if(url){[TapLoginHelper handleTapTapOpenURL:url];}"); + Debug.Log("TapLogin Change AppControler File!"); + } + } +} \ No newline at end of file diff --git a/Editor/TapLoginIOSProcessor.cs.meta b/Editor/TapLoginIOSProcessor.cs.meta new file mode 100644 index 0000000..5b770de --- /dev/null +++ b/Editor/TapLoginIOSProcessor.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 50ded018333a4dc8ba19e7806c5bc693 +timeCreated: 1617120951 \ No newline at end of file diff --git a/Editor/TapTap.Login.Editor.asmdef b/Editor/TapTap.Login.Editor.asmdef new file mode 100644 index 0000000..8d5ef25 --- /dev/null +++ b/Editor/TapTap.Login.Editor.asmdef @@ -0,0 +1,16 @@ +{ + "name": "TapTap.Login.Editor", + "references": [ + "TapTap.Common.Editor" + ], + "optionalUnityReferences": [], + "includePlatforms": [ + "Editor" + ], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [] +} \ No newline at end of file diff --git a/Editor/TapTap.Login.Editor.asmdef.meta b/Editor/TapTap.Login.Editor.asmdef.meta new file mode 100644 index 0000000..b4da319 --- /dev/null +++ b/Editor/TapTap.Login.Editor.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: a9157d20880b14db485aa407a4532958 +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins.meta b/Plugins.meta new file mode 100644 index 0000000..6f22dba --- /dev/null +++ b/Plugins.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 389763214cb6d491d83a645bbf33a750 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/Android.meta b/Plugins/Android.meta new file mode 100644 index 0000000..924e4a1 --- /dev/null +++ b/Plugins/Android.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4b872f00946c04ccea41c19eb6ae406a +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/Android/libs.meta b/Plugins/Android/libs.meta new file mode 100644 index 0000000..6b8bb11 --- /dev/null +++ b/Plugins/Android/libs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0ef9a962e4bd24262a889ea13fed9c07 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/Android/libs/TapTapLoginSdk-2.5.4.aar b/Plugins/Android/libs/TapTapLoginSdk-2.5.4.aar new file mode 100644 index 0000000..e83e74d Binary files /dev/null and b/Plugins/Android/libs/TapTapLoginSdk-2.5.4.aar differ diff --git a/Plugins/Android/libs/TapTapLoginSdk-2.5.4.aar.meta b/Plugins/Android/libs/TapTapLoginSdk-2.5.4.aar.meta new file mode 100644 index 0000000..3cbfbad --- /dev/null +++ b/Plugins/Android/libs/TapTapLoginSdk-2.5.4.aar.meta @@ -0,0 +1,32 @@ +fileFormatVersion: 2 +guid: 6ec7a91883ced46e399a9c7f05e67793 +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Android: Android + second: + enabled: 1 + settings: {} + - first: + Any: + second: + enabled: 0 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + DefaultValueInitialized: true + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS.meta b/Plugins/iOS.meta new file mode 100644 index 0000000..5ce5153 --- /dev/null +++ b/Plugins/iOS.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 667a75a1a23fe417c89c8e75fdba321b +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapLoginSDK.framework.meta b/Plugins/iOS/TapLoginSDK.framework.meta new file mode 100644 index 0000000..b216f31 --- /dev/null +++ b/Plugins/iOS/TapLoginSDK.framework.meta @@ -0,0 +1,28 @@ +fileFormatVersion: 2 +guid: 0cb5e9195d4db4ef29b7f5c2c756f40e +folderAsset: yes +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Any: + second: + enabled: 1 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + DefaultValueInitialized: true + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapLoginSDK.framework/Headers.meta b/Plugins/iOS/TapLoginSDK.framework/Headers.meta new file mode 100644 index 0000000..e64be78 --- /dev/null +++ b/Plugins/iOS/TapLoginSDK.framework/Headers.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9a19e2245a4744703bff86fb4853c66b +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapLoginSDK.framework/Headers/AccountGlobalError.h b/Plugins/iOS/TapLoginSDK.framework/Headers/AccountGlobalError.h new file mode 100644 index 0000000..e2880f6 --- /dev/null +++ b/Plugins/iOS/TapLoginSDK.framework/Headers/AccountGlobalError.h @@ -0,0 +1,26 @@ +// +// AccountGlobalError.h +// TapTapLoginSource +// +// Created by Bottle K on 2020/12/15. +// + +#import + +NS_ASSUME_NONNULL_BEGIN +FOUNDATION_EXPORT NSString *const LOGIN_ERROR_ACCESS_DENIED; +FOUNDATION_EXPORT NSString *const LOGIN_ERROR_INVALID_GRANT; +FOUNDATION_EXPORT NSString *const LOGIN_ERROR_PERMISSION_RESULT; + +@interface AccountGlobalError : NSObject +@property (nonatomic, assign) NSInteger code; +@property (nonatomic, copy) NSString *msg; +@property (nonatomic, copy) NSString *error; +@property (nonatomic, copy) NSString *errorDescription; + +- (instancetype)initWithName:(NSString *)errorName NSError:(NSError *)error; + +- (NSString *)toJsonString; +@end + +NS_ASSUME_NONNULL_END diff --git a/Plugins/iOS/TapLoginSDK.framework/Headers/AccountGlobalError.h.meta b/Plugins/iOS/TapLoginSDK.framework/Headers/AccountGlobalError.h.meta new file mode 100644 index 0000000..d7ea14d --- /dev/null +++ b/Plugins/iOS/TapLoginSDK.framework/Headers/AccountGlobalError.h.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 97939fdd061ab4d90939d91b4198cb1d +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapLoginSDK.framework/Headers/IscTapLoginService.h b/Plugins/iOS/TapLoginSDK.framework/Headers/IscTapLoginService.h new file mode 100644 index 0000000..5cb1f87 --- /dev/null +++ b/Plugins/iOS/TapLoginSDK.framework/Headers/IscTapLoginService.h @@ -0,0 +1,22 @@ +// +// IscTapLoginService.h +// Pods-TDSLoginSource_Example +// +// Created by Bottle K on 2020/12/15. +// + +#import +#import +NS_ASSUME_NONNULL_BEGIN + +@interface IscTapLoginService : NSObject ++ (void)addSDKLoginResultDelegate:(NSString *)sdkName delegate:(id )delegate; + ++ (void)removeSDKLoginResultDelegate:(NSString *)sdkName; + ++ (void)startSDKLogin:(NSString *)sdkName permission:(NSArray *)permissions; + ++ (void)handleLoginError:(NSDictionary *)params; +@end + +NS_ASSUME_NONNULL_END diff --git a/Plugins/iOS/TapLoginSDK.framework/Headers/IscTapLoginService.h.meta b/Plugins/iOS/TapLoginSDK.framework/Headers/IscTapLoginService.h.meta new file mode 100644 index 0000000..f62144f --- /dev/null +++ b/Plugins/iOS/TapLoginSDK.framework/Headers/IscTapLoginService.h.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 148536e3fde0a496b9417c45512a1c8b +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapLoginSDK.framework/Headers/TTSDKAccessToken.h b/Plugins/iOS/TapLoginSDK.framework/Headers/TTSDKAccessToken.h new file mode 100644 index 0000000..d0acfb0 --- /dev/null +++ b/Plugins/iOS/TapLoginSDK.framework/Headers/TTSDKAccessToken.h @@ -0,0 +1,55 @@ +// +// TTSDKAccessToken.h +// TapTapSDK +// +// Created by TapTap on 2017/10/17. +// Copyright © 2017年 易玩. All rights reserved. +// + +#import + +/** + * @brief TapTap登录授权数据封装类 + * + * 该类封装了所有授权提供的返回数据 + */ +@interface TTSDKAccessToken : NSObject + +/// 唯一标志 +@property (nonatomic, copy) NSString * kid; + +/// 认证码 +@property (nonatomic, copy) NSString * accessToken; + +/// 认证码类型 +@property (nonatomic, copy) NSString * tokenType; + +/// mac密钥 +@property (nonatomic, copy) NSString * macKey; + +/// mac密钥计算方式 +@property (nonatomic, copy) NSString * macAlgorithm; + +/// 用户授权的权限,多个时以逗号隔开 +@property (nonatomic, copy) NSString * scope; + +/// 根据JSON生成 TTSDKAccessToken +/// @param accessTokenString json字符串类型的AccessToken ++ (TTSDKAccessToken *)build:(NSString *)accessTokenString; + +/// 通过参数生成实例 ++ (TTSDKAccessToken *)build:(NSString *)kid accessToken:(NSString *)accessToken tokenType:(NSString *)tokenType macKey:(NSString *)macKey macAlgorithm:(NSString *)macAlgorithm; + +/// 转换成json字符串 +- (NSString *)toJsonString; + +/** + * @brief 获取当前认证 + * + * 该认证会优先读取本地缓存,不存在时将会返回nil + */ ++ (TTSDKAccessToken *)currentAccessToken; + ++ (void)setCurrentToken:(TTSDKAccessToken *)token; + +@end diff --git a/Plugins/iOS/TapLoginSDK.framework/Headers/TTSDKAccessToken.h.meta b/Plugins/iOS/TapLoginSDK.framework/Headers/TTSDKAccessToken.h.meta new file mode 100644 index 0000000..7d4d6fb --- /dev/null +++ b/Plugins/iOS/TapLoginSDK.framework/Headers/TTSDKAccessToken.h.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 68a2ff8f0fec64b8cb7d86f72ae728e5 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapLoginSDK.framework/Headers/TTSDKConfig.h b/Plugins/iOS/TapLoginSDK.framework/Headers/TTSDKConfig.h new file mode 100644 index 0000000..9fadbd6 --- /dev/null +++ b/Plugins/iOS/TapLoginSDK.framework/Headers/TTSDKConfig.h @@ -0,0 +1,27 @@ +// +// TTSDKConfig.h +// TapTapSDK +// +// Created by wzb on 2020/5/13. +// Copyright © 2020 易玩. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +typedef NS_ENUM (NSInteger, RegionType) { + RegionTypeCN, + RegionTypeIO +}; + +@interface TTSDKConfig : NSObject + +/// 是否为圆角,默认为圆角 +@property (nonatomic, assign) BOOL roundCorner; +/// 限定登录客户端 +@property (nonatomic, assign) RegionType regionType; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Plugins/iOS/TapLoginSDK.framework/Headers/TTSDKConfig.h.meta b/Plugins/iOS/TapLoginSDK.framework/Headers/TTSDKConfig.h.meta new file mode 100644 index 0000000..d21e7bb --- /dev/null +++ b/Plugins/iOS/TapLoginSDK.framework/Headers/TTSDKConfig.h.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 265ee932c73b84af79a570fcc7283e6d +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapLoginSDK.framework/Headers/TTSDKLoginResult.h b/Plugins/iOS/TapLoginSDK.framework/Headers/TTSDKLoginResult.h new file mode 100644 index 0000000..e56ec2f --- /dev/null +++ b/Plugins/iOS/TapLoginSDK.framework/Headers/TTSDKLoginResult.h @@ -0,0 +1,29 @@ +// +// TTSDKLoginResult.h +// TapTapSDK +// +// Created by TapTap on 2017/10/17. +// Copyright © 2017年 易玩. All rights reserved. +// + +#import + +@class TTSDKAccessToken; + +/** + * @brief 登入结果 + * + * 该类封装了登入的响应结果(非NSError情况下) + */ +@interface TTSDKLoginResult : NSObject + +/// 授权Token +@property (nonatomic, copy) TTSDKAccessToken *token; + +/// 用户是否选择取消授权(非拒绝授权,拒绝授权将在NSError中进行返回) +@property (nonatomic, readonly) BOOL isCancelled; + +- (instancetype)initWithToken:(TTSDKAccessToken *)token + isCancelled:(BOOL)isCancelled; + +@end diff --git a/Plugins/iOS/TapLoginSDK.framework/Headers/TTSDKLoginResult.h.meta b/Plugins/iOS/TapLoginSDK.framework/Headers/TTSDKLoginResult.h.meta new file mode 100644 index 0000000..43bb626 --- /dev/null +++ b/Plugins/iOS/TapLoginSDK.framework/Headers/TTSDKLoginResult.h.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 54e0d5b3ce4304a53bb525f35fcf9668 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapLoginSDK.framework/Headers/TTSDKProfile.h b/Plugins/iOS/TapLoginSDK.framework/Headers/TTSDKProfile.h new file mode 100644 index 0000000..1ea08c0 --- /dev/null +++ b/Plugins/iOS/TapLoginSDK.framework/Headers/TTSDKProfile.h @@ -0,0 +1,42 @@ +// +// TTSDKProfile.h +// TapTapSDK +// +// Created by TapTap on 2017/10/27. +// Copyright © 2017年 易玩. All rights reserved. +// + +#import + +/** + * @brief TapTap用户信息封装类 + * + * 该类封装了所有用户信息提供的返回数据 + */ +@interface TTSDKProfile : NSObject + +/// 用户名 +@property (nonatomic, readonly) NSString *name; + +/// 用户头像 +@property (nonatomic, readonly) NSString *avatar; + +/// open id +@property (nonatomic, readonly) NSString *openid; + +/// union id +@property (nonatomic, readonly) NSString *unionid; + +- (instancetype)initWithJSON:(NSDictionary *)json; + +/** + * @brief 获取当前用户信息 + * + * 该用户信息会优先读取本地缓存,不存在时将会返回nil + */ ++ (TTSDKProfile *)currentProfile; + ++ (void)fetchProfileForCurrentAccessToken:(void (^)(TTSDKProfile *profile, NSError *error))handler; + +- (NSString *)toJsonString; +@end diff --git a/Plugins/iOS/TapLoginSDK.framework/Headers/TTSDKProfile.h.meta b/Plugins/iOS/TapLoginSDK.framework/Headers/TTSDKProfile.h.meta new file mode 100644 index 0000000..c6b9534 --- /dev/null +++ b/Plugins/iOS/TapLoginSDK.framework/Headers/TTSDKProfile.h.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: a4401666e68d742f59f6f633c267a11d +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapLoginSDK.framework/Headers/TapLoginHelper.h b/Plugins/iOS/TapLoginSDK.framework/Headers/TapLoginHelper.h new file mode 100644 index 0000000..a3bfa65 --- /dev/null +++ b/Plugins/iOS/TapLoginSDK.framework/Headers/TapLoginHelper.h @@ -0,0 +1,71 @@ +// +// TapLoginHelper.h +// TapTapLoginSource +// +// Created by Bottle K on 2020/12/2. +// + +#import +#import "TTSDKConfig.h" +#import "TTSDKAccessToken.h" +#import "TTSDKProfile.h" +#import "TTSDKLoginResult.h" +#import "AccountGlobalError.h" +#import "TapLoginResultDelegate.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface TapLoginHelper : NSObject + +/// 初始化 +/// @param clientID clientID ++ (void)initWithClientID:(NSString *)clientID; + +/// 初始化 +/// @param clientID clientID +/// @param config 配置项 ++ (void)initWithClientID:(NSString *)clientID config:(TTSDKConfig *_Nullable)config; + +/// 修改登录配置 +/// @param config 配置项 ++ (void)changeTapLoginConfig:(TTSDKConfig *_Nullable)config; + +/// 设置登录回调 +/// @param delegate 回调 ++ (void)registerLoginResultDelegate:(id )delegate; + +/// 移除登录回调 ++ (void)unregisterLoginResultDelegate; + +/// 获取当前设置的登录回调 ++ (id )getLoginResultDelegate; + +/// 开始登录流程 +/// @param permissions 权限列表 ++ (void)startTapLogin:(NSArray *)permissions; + +/// 获取当前 Token ++ (TTSDKAccessToken *)currentAccessToken; + +/// 获取当前 Profile ++ (TTSDKProfile *)currentProfile; + +/// 获取当前服务器上最新的 Profile +/// @param callback 回调 ++ (void)fetchProfileForCurrentAccessToken:(void (^)(TTSDKProfile *profile, NSError *error))callback; + +/// 登出 ++ (void)logout; + +/// 当前是否有国内客户端支持 ++ (BOOL)isTapTapClientSupport; + +/// 当前是否有国外客户端支持 ++ (BOOL)isTapTapGlobalClientSupport; + +/// 监听 url 回调 +/// @param url url ++ (BOOL)handleTapTapOpenURL:(NSURL *)url; +@end + +NS_ASSUME_NONNULL_END diff --git a/Plugins/iOS/TapLoginSDK.framework/Headers/TapLoginHelper.h.meta b/Plugins/iOS/TapLoginSDK.framework/Headers/TapLoginHelper.h.meta new file mode 100644 index 0000000..92f8a04 --- /dev/null +++ b/Plugins/iOS/TapLoginSDK.framework/Headers/TapLoginHelper.h.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 9d7d98fbfde5d4f4eb797ee5ccc6335e +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapLoginSDK.framework/Headers/TapLoginResultDelegate.h b/Plugins/iOS/TapLoginSDK.framework/Headers/TapLoginResultDelegate.h new file mode 100644 index 0000000..cded52f --- /dev/null +++ b/Plugins/iOS/TapLoginSDK.framework/Headers/TapLoginResultDelegate.h @@ -0,0 +1,28 @@ +// +// TapLoginResultDelegate.h +// Pods-TDSLoginSource_Example +// +// Created by Bottle K on 2020/12/15. +// + +#import +#import +#import +NS_ASSUME_NONNULL_BEGIN + +@protocol TapLoginResultDelegate + +/// 登录成功回调 +/// @param token token对象 +- (void)onLoginSuccess:(TTSDKAccessToken *)token; + +/// 登录取消 +- (void)onLoginCancel; + +/// 登录失败 +/// @param error 失败原因 +- (void)onLoginError:(AccountGlobalError *)error; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Plugins/iOS/TapLoginSDK.framework/Headers/TapLoginResultDelegate.h.meta b/Plugins/iOS/TapLoginSDK.framework/Headers/TapLoginResultDelegate.h.meta new file mode 100644 index 0000000..f7704d6 --- /dev/null +++ b/Plugins/iOS/TapLoginSDK.framework/Headers/TapLoginResultDelegate.h.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 9aef9c401c2bc4e40ac296c65df13a85 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapLoginSDK.framework/Headers/TapLoginSDK.h b/Plugins/iOS/TapLoginSDK.framework/Headers/TapLoginSDK.h new file mode 100644 index 0000000..96cad4d --- /dev/null +++ b/Plugins/iOS/TapLoginSDK.framework/Headers/TapLoginSDK.h @@ -0,0 +1,25 @@ +// +// TapLoginSDK.h +// TapLoginSDK +// +// Created by Bottle K on 2021/3/25. +// + +#import + +//! Project version number for TapLoginSDK. +FOUNDATION_EXPORT double TapLoginSDKVersionNumber; + +//! Project version string for TapLoginSDK. +FOUNDATION_EXPORT const unsigned char TapLoginSDKVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + +#import +#import +#import +#import +#import +#import +#import +#import diff --git a/Plugins/iOS/TapLoginSDK.framework/Headers/TapLoginSDK.h.meta b/Plugins/iOS/TapLoginSDK.framework/Headers/TapLoginSDK.h.meta new file mode 100644 index 0000000..19e5395 --- /dev/null +++ b/Plugins/iOS/TapLoginSDK.framework/Headers/TapLoginSDK.h.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 2ed20b518f02644adb480a8881a7281c +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapLoginSDK.framework/Info.plist b/Plugins/iOS/TapLoginSDK.framework/Info.plist new file mode 100644 index 0000000..eb627a2 Binary files /dev/null and b/Plugins/iOS/TapLoginSDK.framework/Info.plist differ diff --git a/Plugins/iOS/TapLoginSDK.framework/Info.plist.meta b/Plugins/iOS/TapLoginSDK.framework/Info.plist.meta new file mode 100644 index 0000000..ae4f8b3 --- /dev/null +++ b/Plugins/iOS/TapLoginSDK.framework/Info.plist.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: d9ebb553f15d34b9794b4a512d80bee3 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapLoginSDK.framework/Modules.meta b/Plugins/iOS/TapLoginSDK.framework/Modules.meta new file mode 100644 index 0000000..5f70c05 --- /dev/null +++ b/Plugins/iOS/TapLoginSDK.framework/Modules.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5cb748e3e01304072a70ba47a5f885ad +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapLoginSDK.framework/Modules/module.modulemap b/Plugins/iOS/TapLoginSDK.framework/Modules/module.modulemap new file mode 100644 index 0000000..4c98ef4 --- /dev/null +++ b/Plugins/iOS/TapLoginSDK.framework/Modules/module.modulemap @@ -0,0 +1,6 @@ +framework module TapLoginSDK { + umbrella header "TapLoginSDK.h" + + export * + module * { export * } +} diff --git a/Plugins/iOS/TapLoginSDK.framework/Modules/module.modulemap.meta b/Plugins/iOS/TapLoginSDK.framework/Modules/module.modulemap.meta new file mode 100644 index 0000000..ebdba7f --- /dev/null +++ b/Plugins/iOS/TapLoginSDK.framework/Modules/module.modulemap.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: a3b916fd9084a467e93d19e152f25171 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/iOS/TapLoginSDK.framework/TapLoginSDK b/Plugins/iOS/TapLoginSDK.framework/TapLoginSDK new file mode 100644 index 0000000..8859c95 Binary files /dev/null and b/Plugins/iOS/TapLoginSDK.framework/TapLoginSDK differ diff --git a/Plugins/iOS/TapLoginSDK.framework/TapLoginSDK.meta b/Plugins/iOS/TapLoginSDK.framework/TapLoginSDK.meta new file mode 100644 index 0000000..0d1c5e2 --- /dev/null +++ b/Plugins/iOS/TapLoginSDK.framework/TapLoginSDK.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 767ff41c13d7d4a1c8a8fbd3d89b26c7 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/README.md b/README.md new file mode 100644 index 0000000..3b066d3 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +## [TapTap.Login](./Documentations/README.md) \ No newline at end of file diff --git a/README.md.meta b/README.md.meta new file mode 100644 index 0000000..7807717 --- /dev/null +++ b/README.md.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: c720d298abf1847cca49e4f58f9972e8 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/package.json b/package.json new file mode 100644 index 0000000..b7ecd83 --- /dev/null +++ b/package.json @@ -0,0 +1,11 @@ +{ + "name": "com.tapsdk.login", + "displayName": "Tap Login", + "description": "TapTap Develop Service", + "version": "2.0.0", + "unity": "2018.3", + "license": "MIT", + "dependencies": { + "com.tapsdk.common": "https://github.com/TapTap/TapCommon-Unity.git#0.0.1" + } +} \ No newline at end of file diff --git a/package.json.meta b/package.json.meta new file mode 100644 index 0000000..b492732 --- /dev/null +++ b/package.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: d54fc765f2f474819a39d6afc88f26d5 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: