feat(*): Bootstrap remove unuse interface , remove native library , iOS compilation script migration to login
|
@ -1,3 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c26921c1db5141e28399200f4ccbfeb2
|
||||
timeCreated: 1617120610
|
|
@ -1,55 +0,0 @@
|
|||
using System.IO;
|
||||
using TapTap.Common.Editor;
|
||||
using UnityEditor;
|
||||
using UnityEditor.Callbacks;
|
||||
using UnityEditor.iOS.Xcode;
|
||||
using UnityEngine;
|
||||
|
||||
namespace TapTap.Bootstrap.Editor
|
||||
{
|
||||
public static class TapBootstrapIOSProcessor
|
||||
{
|
||||
// 添加标签,unity导出工程后自动执行该函数
|
||||
[PostProcessBuild(100)]
|
||||
public static void OnPostprocessBuild(BuildTarget buildTarget, string path)
|
||||
{
|
||||
if (buildTarget != BuildTarget.iOS) return;
|
||||
// 获得工程路径
|
||||
var projPath = TapCommonCompile.GetProjPath(path);
|
||||
var proj = TapCommonCompile.ParseProjPath(projPath);
|
||||
var target = TapCommonCompile.GetUnityTarget(proj);
|
||||
|
||||
if (TapCommonCompile.CheckTarget(target))
|
||||
{
|
||||
Debug.LogError("Unity-iPhone is NUll");
|
||||
return;
|
||||
}
|
||||
|
||||
var parentFolder = Directory.GetParent(Application.dataPath).FullName;
|
||||
|
||||
var plistFile = TapFileHelper.RecursionFilterFile(parentFolder + "/Assets/Plugins/", "TDS-Info.plist");
|
||||
|
||||
if (!plistFile.Exists)
|
||||
{
|
||||
Debug.LogError("TapSDK Can't find TDS-Info.plist in Project/Assets/Plugins/!");
|
||||
}
|
||||
|
||||
TapCommonCompile.HandlerPlist(path, plistFile.FullName);
|
||||
|
||||
if (TapCommonCompile.HandlerIOSSetting(path,
|
||||
Application.dataPath,
|
||||
"TapBootstrapResource",
|
||||
"com.taptap.tds.bootstrap",
|
||||
"Bootstrap",
|
||||
new[] {"TapBootstrapResource.bundle"},
|
||||
target, projPath, proj))
|
||||
{
|
||||
Debug.Log("TapBootstrap add Bundle Success!");
|
||||
return;
|
||||
}
|
||||
|
||||
Debug.LogWarning("TapBootstrap add Bundle Failed!");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c2dba369e41245f2872778730404259e
|
||||
timeCreated: 1617120610
|
|
@ -1,16 +0,0 @@
|
|||
{
|
||||
"name": "TapTap.Bootstrap.Editor",
|
||||
"references": [
|
||||
"TapTap.Common.Editor"
|
||||
],
|
||||
"optionalUnityReferences": [],
|
||||
"includePlatforms": [
|
||||
"Editor"
|
||||
],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": []
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 73f667da7f25f432dbe7b984b79157cf
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,8 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3d95366a221644fdda5f7d5f69e2164e
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,8 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 7c24ee092a12a436ab08320d66ee0769
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,32 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 841c75f6e17f844a0bca58b38a56cb2c
|
||||
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:
|
|
@ -1,8 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 5841478e24d794e03a9c8a4c1120d62a
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,8 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 30f29b436e56a453d8ca2b037437207c
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,33 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 4adafbe1c21554d3fa580588a6a91551
|
||||
folderAsset: yes
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,79 +0,0 @@
|
|||
{
|
||||
"zh_hans":{
|
||||
"logout_title":"退出登录",
|
||||
"logout_content":"确定要退出当前账号吗?",
|
||||
"logout_confirm":"确认",
|
||||
"logout_cancel":"取消",
|
||||
"copy_success":"复制成功",
|
||||
"guest_name":"试玩用户",
|
||||
"guest_id":"试玩 ID: %@",
|
||||
"entry_moment":"动态",
|
||||
"entry_friend":"好友"
|
||||
},
|
||||
"en":{
|
||||
"logout_title":"Log out",
|
||||
"logout_content":"Are you sure to log out of this account?",
|
||||
"logout_confirm":"Confirm",
|
||||
"logout_cancel":"Cancel",
|
||||
"copy_success":"Copied",
|
||||
"guest_name":"Guest Player",
|
||||
"guest_id":"Guest ID: %@",
|
||||
"entry_moment":"Moments",
|
||||
"entry_friend":"Friends"
|
||||
},
|
||||
"zh_hant":{
|
||||
"logout_title":"退出登錄",
|
||||
"logout_content":"確定要退出目前帳號嗎?",
|
||||
"logout_confirm":"確認",
|
||||
"logout_cancel":"取消",
|
||||
"copy_success":"複製成功",
|
||||
"guest_name":"Guest Player",
|
||||
"guest_id":"Guest ID: %@",
|
||||
"entry_moment":"動態",
|
||||
"entry_friend":"好友"
|
||||
},
|
||||
"ja":{
|
||||
"logout_title":"ログアウト",
|
||||
"logout_content":"このアカウントからログアウトしますか?",
|
||||
"logout_confirm":"OK",
|
||||
"logout_cancel":"キャンセル",
|
||||
"copy_success":"コピーされました",
|
||||
"guest_name":"Guest Player",
|
||||
"guest_id":"Guest ID: %@",
|
||||
"entry_moment":"モーメンツ",
|
||||
"entry_friend":"友達"
|
||||
},
|
||||
"ko":{
|
||||
"logout_title":"로그아웃",
|
||||
"logout_content":"로그아웃을 하시겠습니까?",
|
||||
"logout_confirm":"확인",
|
||||
"logout_cancel":"취소",
|
||||
"copy_success":"복사 성공",
|
||||
"guest_name":"Guest Player",
|
||||
"guest_id":"Guest ID: %@",
|
||||
"entry_moment":"모멘트",
|
||||
"entry_friend":"친구추가"
|
||||
},
|
||||
"th":{
|
||||
"logout_title":"ล็อกเอ้าท์",
|
||||
"logout_content":"คุณแน่ใจมั้ยที่จะล็อกเอ้าท์ออกจากบัญชีนี้?",
|
||||
"logout_confirm":"ยืนยัน",
|
||||
"logout_cancel":"ยืกเลิก",
|
||||
"copy_success":"คัดลอก",
|
||||
"guest_name":"Guest Player",
|
||||
"guest_id":"Guest ID: %@",
|
||||
"entry_moment":"โมเมนต์",
|
||||
"entry_friend":"เพื่อน"
|
||||
},
|
||||
"id":{
|
||||
"logout_title":"Log out",
|
||||
"logout_content":"Apakah kamu mau log out dari account ini?",
|
||||
"logout_confirm":"Confirm",
|
||||
"logout_cancel":"Cancel",
|
||||
"copy_success":"Tercopy",
|
||||
"guest_name":"Guest Player",
|
||||
"guest_id":"Guest ID: %@",
|
||||
"entry_moment":"Moments",
|
||||
"entry_friend":"Friends"
|
||||
}
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c9d4233f2c8a3447693f0a0aa28ecc72
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,8 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e2f84f0c206f74cdbbba7b91e8bc3fe6
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Before Width: | Height: | Size: 4.4 KiB |
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 9c0334d990dc44a4ca692a501d17261f
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Before Width: | Height: | Size: 7.1 KiB |
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: cdc86dd3686724526b88c9041c48f9f7
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Before Width: | Height: | Size: 410 B |
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8bf0b338ac2f94e279daf9b9dfa9007b
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Before Width: | Height: | Size: 566 B |
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1159e8d0aa9894821a8f903c8097d2b9
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Before Width: | Height: | Size: 507 B |
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 7bc6a119bc20c4d5ea4d379770ff6a6d
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Before Width: | Height: | Size: 671 B |
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0193cba9b653e45b79d7ef353204f87c
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Before Width: | Height: | Size: 2.3 KiB |
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: cb0067ddf4ca9477a9ac3ea0b6e99069
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Before Width: | Height: | Size: 3.2 KiB |
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0b04ba122f6f5473ebe2b618cf221137
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Before Width: | Height: | Size: 963 B |
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: b3cf7cfb3c53340f08911ac7a55c3dca
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Before Width: | Height: | Size: 1.3 KiB |
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 2dc4d99d769554564be4d71b807aa8c3
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Before Width: | Height: | Size: 285 B |
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c68534734ad4947028fed7a6d587c025
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Before Width: | Height: | Size: 345 B |
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8f3c17f13c0a64af2b88f09c6b5aab4f
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Before Width: | Height: | Size: 1.3 KiB |
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 75bab1e152452460d9d52ca488e82ded
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Before Width: | Height: | Size: 2.0 KiB |
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e0bbb2069574c4114a52c5d69caa8213
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Before Width: | Height: | Size: 438 B |
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 35e74acff0e084465a5301d849934a09
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Before Width: | Height: | Size: 556 B |
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: b4ddae784ac114cab9f570c9035e1a86
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Before Width: | Height: | Size: 596 B |
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 699abc74846374faea061a9048c1342a
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Before Width: | Height: | Size: 862 B |
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e3ce00a8cbc8c442eb6ab7f801a32cb5
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,28 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 354d512252a1a4e22b9af024d74dd756
|
||||
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:
|
|
@ -1,8 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: df394547ae7824cd5bc5a16645099867
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,25 +0,0 @@
|
|||
//
|
||||
// AccessToken.h
|
||||
// TapBootstrapSDK
|
||||
//
|
||||
// Created by Bottle K on 2021/2/20.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface AccessToken : NSObject
|
||||
@property (nonatomic, copy) NSString *kid;
|
||||
@property (nonatomic, copy) NSString *accessToken;
|
||||
@property (nonatomic, copy) NSString *macAlgorithm;
|
||||
@property (nonatomic, copy) NSString *tokenType;
|
||||
@property (nonatomic, copy) NSString *macKey;
|
||||
@property (nonatomic, assign) long expireIn;
|
||||
|
||||
- (instancetype)initWithJsonString:(NSString *)json;
|
||||
|
||||
- (NSString *)toJsonString;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 07419adfe388c4931bf2fe9cf8f1e393
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,88 +0,0 @@
|
|||
//
|
||||
// TapBootstrap.h
|
||||
// TapBootstrapSDK
|
||||
//
|
||||
// Created by Bottle K on 2021/2/18.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <TapBootstrapSDK/TapLoginResultDelegate.h>
|
||||
#import <TapBootstrapSDK/TapUserStatusChangedDelegate.h>
|
||||
#import <TapBootstrapSDK/TapUser.h>
|
||||
#import <TapBootstrapSDK/TapUserDetails.h>
|
||||
#import <TapBootstrapSDK/AccessToken.h>
|
||||
|
||||
#import <TapCommonSDK/TapCommonSDK.h>
|
||||
|
||||
#define TapSDK @"TapSDK"
|
||||
#define TapSDK_VERSION_NUMBER @"20106001"
|
||||
#define TapSDK_VERSION @"2.1.6"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
typedef NS_ENUM (NSInteger, TapBootstrapLoginType) {
|
||||
TapBootstrapLoginTypeTapTap = 0,
|
||||
};
|
||||
|
||||
typedef NS_ENUM (NSInteger, TapBootstrapBindType) {
|
||||
TapBootstrapBindTypeTapTap
|
||||
};
|
||||
|
||||
typedef void (^TapUserHandler)(TapUser *_Nullable userInfo, NSError *_Nullable error);
|
||||
typedef void (^TapUserDetailsHandler)(TapUserDetails *_Nullable userDetail, NSError *_Nullable error);
|
||||
|
||||
@interface TapBootstrap : NSObject
|
||||
|
||||
+ (instancetype)new NS_UNAVAILABLE;
|
||||
- (instancetype)init NS_UNAVAILABLE;
|
||||
|
||||
/// 初始化
|
||||
/// @param config 配置项
|
||||
+ (void)initWithConfig:(TapConfig *)config;
|
||||
|
||||
/// 当前是否初始化
|
||||
+ (BOOL)isInitialized;
|
||||
|
||||
/// 注册登录回调
|
||||
/// @param delegate 回调
|
||||
+ (void)registerLoginResultDelegate:(id <TapLoginResultDelegate>)delegate;
|
||||
|
||||
/// 注册用户状态变化回调
|
||||
/// @param delegate 回调
|
||||
+ (void)registerUserStatusChangedDelegate:(id <TapUserStatusChangedDelegate>)delegate;
|
||||
|
||||
/// TapTap 登录
|
||||
/// @param permissions 权限列表
|
||||
+ (void)loginWithPermissions:(NSArray *_Nullable)permissions;
|
||||
|
||||
/// 登录
|
||||
/// @param type 登录类型
|
||||
/// @param permissions 权限列表 (仅在taptap登录时需要)
|
||||
+ (void)login:(TapBootstrapLoginType)type permissions:(NSArray *_Nullable)permissions;
|
||||
|
||||
/// 获取用户基本信息
|
||||
+ (void)getUser:(TapUserHandler)handler;
|
||||
|
||||
/// 获取用户详细信息
|
||||
+ (void)getUserDetails:(TapUserDetailsHandler)handler;
|
||||
|
||||
/// 获取当前 token
|
||||
+ (AccessToken *)getCurrentToken;
|
||||
|
||||
/// 退出登录
|
||||
+ (void)logout;
|
||||
|
||||
/// 获取用户是否有测试资格
|
||||
/// @param handler 回调
|
||||
+ (void)getTestQualification:(void (^)(BOOL isQualified, NSError *_Nullable error))handler;
|
||||
|
||||
/// 设定游戏倾向语言
|
||||
/// @param lang TapLanguageType 0-自动 1-简中 2-英文
|
||||
+ (void)setPreferredLanguage:(TapLanguageType)lang;
|
||||
|
||||
/// 处理系统协议
|
||||
/// @param url url
|
||||
+ (BOOL)handleOpenURL:(NSURL *)url;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 4bef0469ee2964cf1af2e4b90b77f5a4
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,26 +0,0 @@
|
|||
//
|
||||
// TapBootstrapSDK.h
|
||||
// TapBootstrapSDK
|
||||
//
|
||||
// Created by Bottle K on 2021/3/26.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
//! Project version number for TapBootstrapSDK.
|
||||
FOUNDATION_EXPORT double TapBootstrapSDKVersionNumber;
|
||||
|
||||
//! Project version string for TapBootstrapSDK.
|
||||
FOUNDATION_EXPORT const unsigned char TapBootstrapSDKVersionString[];
|
||||
|
||||
// In this header, you should import all the public headers of your framework using statements like #import <TapBootstrapSDK/PublicHeader.h>
|
||||
|
||||
|
||||
#import <TapBootstrapSDK/TapBootstrap.h>
|
||||
#import <TapBootstrapSDK/TapSDKConstants.h>
|
||||
#import <TapBootstrapSDK/AccessToken.h>
|
||||
#import <TapBootstrapSDK/TapUser.h>
|
||||
#import <TapBootstrapSDK/TapUserDetails.h>
|
||||
#import <TapBootstrapSDK/TapUserCenterEntry.h>
|
||||
#import <TapBootstrapSDK/TapLoginResultDelegate.h>
|
||||
#import <TapBootstrapSDK/TapUserStatusChangedDelegate.h>
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a2535389b7a6f41b9b694b0d3d2e4d37
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,28 +0,0 @@
|
|||
//
|
||||
// TapLoginResultDelegate.h
|
||||
// TapBootstrapSDK
|
||||
//
|
||||
// Created by Bottle K on 2021/2/19.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
@class AccessToken;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@protocol TapLoginResultDelegate <NSObject>
|
||||
|
||||
/// 登录成功回调
|
||||
/// @param token token对象
|
||||
- (void)onLoginSuccess:(AccessToken *)token;
|
||||
|
||||
/// 登录取消
|
||||
- (void)onLoginCancel;
|
||||
|
||||
/// 登录失败
|
||||
/// @param error 失败原因
|
||||
- (void)onLoginError:(NSError *)error;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0b41f1df778e34284ad262da9a994eb6
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,23 +0,0 @@
|
|||
//
|
||||
// TapSDKConstants.h
|
||||
// TapBootstrapSDK
|
||||
//
|
||||
// Created by Bottle K on 2021/2/25.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
FOUNDATION_EXTERN int const ERROR_CODE_UNDEFINED;
|
||||
FOUNDATION_EXTERN int const ERROR_CODE_UNINITIALIZED;
|
||||
|
||||
FOUNDATION_EXTERN int const ERROR_CODE_BIND_CANCEL;
|
||||
FOUNDATION_EXTERN int const ERROR_CODE_BIND_ERROR;
|
||||
|
||||
FOUNDATION_EXTERN int const ERROR_CODE_LOGOUT_INVALID_LOGIN_STATE;
|
||||
FOUNDATION_EXTERN int const ERROR_CODE_LOGOUT_USER_CENER_LOGOUT;
|
||||
FOUNDATION_EXTERN int const ERROR_CODE_LOGOUT_GAME;
|
||||
FOUNDATION_EXTERN int const ERROR_CODE_LOGOUT_KICKED;
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 79445d81ec32a4502871cf900cceaa39
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,25 +0,0 @@
|
|||
//
|
||||
// TapUser.h
|
||||
// TapBootstrapSDK
|
||||
//
|
||||
// Created by Bottle K on 2021/2/19.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface TapUser : NSObject
|
||||
@property (nonatomic, copy) NSString *userId;
|
||||
@property (nonatomic, copy, nullable) NSString *name;
|
||||
@property (nonatomic, copy, nullable) NSString *avatar;
|
||||
@property (nonatomic, copy, nullable) NSString *taptapUserId;
|
||||
@property (nonatomic, assign) BOOL isGuest;
|
||||
@property (nonatomic, assign) long gender;
|
||||
|
||||
- (instancetype)initWithJsonString:(NSString *)json;
|
||||
|
||||
- (NSString *)toJsonString;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0666448a4a73249e48c474b2b0c694c2
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,17 +0,0 @@
|
|||
//
|
||||
// TapUserCenterEntry.h
|
||||
// TapBootstrapSDK
|
||||
//
|
||||
// Created by Bottle K on 2021/2/23.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface TapUserCenterEntry : NSObject
|
||||
@property (nonatomic, assign) BOOL isMomentEnabled;
|
||||
@property (nonatomic, assign) BOOL isFriendEnabled;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 7b400ad9145da4bf5a4266556a9ec26a
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,25 +0,0 @@
|
|||
//
|
||||
// TapUserDetails.h
|
||||
// TapBootstrapSDK
|
||||
//
|
||||
// Created by Bottle K on 2021/2/19.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <TapBootstrapSDK/TapUserCenterEntry.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface TapUserDetails : NSObject
|
||||
@property (nonatomic, copy) NSString *userId;
|
||||
@property (nonatomic, copy, nullable) NSString *name;
|
||||
@property (nonatomic, copy, nullable) NSString *avatar;
|
||||
@property (nonatomic, assign) BOOL isGuest;
|
||||
@property (nonatomic, assign) long gender;
|
||||
|
||||
@property (nonatomic, strong) TapUserCenterEntry *userCenterEntry;
|
||||
|
||||
- (NSString *)toJsonString;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f2f403d83c57f4fa4b8a07e791245571
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,25 +0,0 @@
|
|||
//
|
||||
// TapUserStatusChangedDelegate.h
|
||||
// TapBootstrapSDK
|
||||
//
|
||||
// Created by Bottle K on 2021/2/19.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@protocol TapUserStatusChangedDelegate <NSObject>
|
||||
|
||||
/// 退出登录
|
||||
/// @param error 如果是因为出错导致的退登,则返回错误信息
|
||||
- (void)onLogout:(NSError *_Nullable)error;
|
||||
|
||||
/// 绑定回调
|
||||
/// @param error 如果是因为出错导致的退登,则返回错误信息
|
||||
@optional
|
||||
- (void)onBind:(NSError *_Nullable)error;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c9cec28a737bf4665baf35cbaf16384c
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 90408e67d23024b309cb33397f5e18ef
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,8 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: afef6ed7ed26a4556add5bb5f7ffae26
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,6 +0,0 @@
|
|||
framework module TapBootstrapSDK {
|
||||
umbrella header "TapBootstrapSDK.h"
|
||||
|
||||
export *
|
||||
module * { export * }
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3de137211a80b403ea1fa354297e72cc
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 41cf23502ec964593beee09598497872
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|