更新TapTapSDK
parent
c5222bcd8e
commit
1eff988b53
BIN
ProjectNLD/Assets/Art/UI/Fonts/SourceHanSansCN-Medium SDF.asset (Stored with Git LFS)
BIN
ProjectNLD/Assets/Art/UI/Fonts/SourceHanSansCN-Medium SDF.asset (Stored with Git LFS)
Binary file not shown.
|
|
@ -2733,6 +2733,7 @@ RectTransform:
|
|||
- {fileID: 4178889174059782435}
|
||||
- {fileID: 5573462369305879172}
|
||||
- {fileID: 1569599349742748609}
|
||||
- {fileID: 4105278445492389551}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
|
|
@ -4736,6 +4737,126 @@ MonoBehaviour:
|
|||
m_hasFontAssetChanged: 0
|
||||
m_baseMaterial: {fileID: 0}
|
||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||
--- !u!1 &4287218972195339529
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4105278445492389551}
|
||||
- component: {fileID: 1589197178575580500}
|
||||
- component: {fileID: 291640906357453515}
|
||||
- component: {fileID: 625908200022316605}
|
||||
m_Layer: 5
|
||||
m_Name: TapTapBtn
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &4105278445492389551
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4287218972195339529}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 7993993916223087429}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 420, y: 120}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &1589197178575580500
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4287218972195339529}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &291640906357453515
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4287218972195339529}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 21300000, guid: b2817067681f8664a8d05184813f0058, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 1
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!114 &625908200022316605
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4287218972195339529}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_WrapAround: 0
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
|
||||
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: 0.1
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_SelectedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_SelectedTrigger: Selected
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 291640906357453515}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
--- !u!1 &4342843184674606700
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ public partial class SROptions
|
|||
|
||||
{
|
||||
|
||||
|
||||
/*
|
||||
[Category("TapTapDB")]
|
||||
|
||||
public void SetName()
|
||||
|
|
@ -44,7 +44,7 @@ public partial class SROptions
|
|||
#endif
|
||||
}
|
||||
|
||||
|
||||
*/
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,9 +42,21 @@ namespace Gameplay.Net
|
|||
antiAddictionService?.InitAntiAddiction(OnAntiAddictionResult);
|
||||
loginService?.Login(OnLoginSuccess, OnLoginFail);
|
||||
}
|
||||
|
||||
public void Logout()
|
||||
{
|
||||
SdkHelper sdkHelper = SDKManager.Instance.GetSdkHelper(SDKManager.SdkName.TapTap);
|
||||
if (null == sdkHelper)
|
||||
return;
|
||||
|
||||
ILoginService loginService = sdkHelper as ILoginService;
|
||||
loginService.Logout();
|
||||
}
|
||||
|
||||
private void OnLoginSuccess()
|
||||
{
|
||||
Actor.Instance.Login.NextStatus = LoginStatusID.Login;
|
||||
return;
|
||||
SdkHelper sdkHelper = SDKManager.Instance.GetSdkHelper(SDKManager.SdkName.TapTap);
|
||||
ILoginService loginService = sdkHelper as ILoginService;
|
||||
//测试:设置名字
|
||||
|
|
@ -79,13 +91,13 @@ namespace Gameplay.Net
|
|||
{
|
||||
case 1000:// 用户登出
|
||||
case 1001:// 切换账号
|
||||
Login();
|
||||
Logout();
|
||||
break;
|
||||
case 1030:// 用户当前无法进行游戏54
|
||||
case 1050:// 时长限制
|
||||
{
|
||||
UITipsManager.ShowTips("防沉迷限制");
|
||||
GameStateManager.Instance.ChangeState(new GameStateStart());
|
||||
DebugUtil.LogError("时长限制");
|
||||
}
|
||||
break;
|
||||
case 9002:// 实名过程中点击了关闭实名窗
|
||||
|
|
|
|||
|
|
@ -19,7 +19,8 @@ public class UI_StartGameInterfaceController : UIWindow
|
|||
enum LoginType
|
||||
{
|
||||
Account,
|
||||
PhoneCode
|
||||
PhoneCode,
|
||||
TapTap,
|
||||
}
|
||||
|
||||
#region UI_obj
|
||||
|
|
@ -63,6 +64,10 @@ public class UI_StartGameInterfaceController : UIWindow
|
|||
public TMP_Text Text_Version;
|
||||
public Image Image_DarkSide;
|
||||
public Button AppleBtn;
|
||||
/// <summary>
|
||||
/// TapTap登录按钮
|
||||
/// </summary>
|
||||
private Button buttonTapTap;
|
||||
///Auto Gen End///
|
||||
|
||||
#endregion
|
||||
|
|
@ -405,7 +410,7 @@ public class UI_StartGameInterfaceController : UIWindow
|
|||
{
|
||||
//bind UI GameObj
|
||||
UI_StartGameInterfaceBinder.GetComponents(this);
|
||||
|
||||
buttonTapTap = GetComponent<Button>("TapTapBtn");
|
||||
debugLoginWindow = new(FindObj("UI_LoginWindow"), PhoneEdit, PhoneVerifyCodeEdit, OnAgreementAccept, OnPhoneCodeLoginClick, SendPhoneCodeRequest);
|
||||
releaseLoginWindow = new(FindObj("UI_LoginWindowNew"), PhoneEdit, PhoneVerifyCodeEdit, OnAgreementAccept, OnPhoneCodeLoginClick, SendPhoneCodeRequest);
|
||||
|
||||
|
|
@ -485,7 +490,7 @@ public class UI_StartGameInterfaceController : UIWindow
|
|||
BindButton(Button_Login_1, OnButtonLogin);
|
||||
BindButton(Button_UserCenter, ShowLoginPanel);
|
||||
BindButton(Button_Notice, OnNoticeClick);
|
||||
|
||||
BindButton(buttonTapTap, OnTapTapBtnOnClick);
|
||||
BindButton(Button_StartGame, OnStartGame);
|
||||
|
||||
debugLoginWindow.Toggle_RememberPassword.onValueChanged.AddListener(OnRememberPassword);
|
||||
|
|
@ -567,6 +572,12 @@ public class UI_StartGameInterfaceController : UIWindow
|
|||
curShownWindow.CheckPhoneCodeButton();
|
||||
break;
|
||||
|
||||
case LoginType.TapTap:
|
||||
{
|
||||
curShownWindow.IsScaleShow = false;
|
||||
buttonTapTap.gameObject.IsScaleShow(true);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
DebugUtil.LogError("SetLoginType error");
|
||||
break;
|
||||
|
|
@ -576,17 +587,18 @@ public class UI_StartGameInterfaceController : UIWindow
|
|||
}
|
||||
|
||||
void HideLoginPanel()
|
||||
{
|
||||
{
|
||||
//Image_LoginBg.gameObject.SetActive(false);
|
||||
curShownWindow.IsScaleShow = false;
|
||||
buttonTapTap.gameObject.IsScaleShow(false);
|
||||
|
||||
Button_StartGame.gameObject.SetActive(true);
|
||||
Button_Notice.gameObject.SetActive(true);
|
||||
Button_UserCenter.gameObject.SetActive(true);
|
||||
Button_UserCenter.gameObject.SetActive(true);
|
||||
}
|
||||
|
||||
//invoke when destroy
|
||||
public override void OnRelease()
|
||||
|
||||
//invoke when destroy
|
||||
public override void OnRelease()
|
||||
{
|
||||
base.OnRelease();
|
||||
EventManager.Instance.Unregister(EventManager.EventName.RealNameVerifyCancel, OnCancelCurConnect);
|
||||
|
|
@ -684,6 +696,14 @@ public class UI_StartGameInterfaceController : UIWindow
|
|||
Actor.Instance.StartLogin(NLDPB.LoginType.Phxhphone, loginSaveData.phoneNumber);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// TapTap登录
|
||||
/// </summary>
|
||||
private void OnTapTapBtnOnClick()
|
||||
{
|
||||
Actor.Instance.StartLogin(NLDPB.LoginType.TapTap, "");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 服务器登录
|
||||
/// </summary>
|
||||
|
|
@ -723,7 +743,10 @@ public class UI_StartGameInterfaceController : UIWindow
|
|||
|
||||
void ShowLoginPanel()
|
||||
{
|
||||
if (loginSaveData.LoginByPhone)
|
||||
#if SDK_TAPTAP
|
||||
SetLoginType(LoginType.TapTap);
|
||||
#else
|
||||
if (loginSaveData.LoginByPhone)
|
||||
{
|
||||
SetLoginType(LoginType.PhoneCode);
|
||||
}
|
||||
|
|
@ -731,15 +754,21 @@ public class UI_StartGameInterfaceController : UIWindow
|
|||
{
|
||||
SetLoginType(LoginType.Account);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
async void OnNoticeClick()
|
||||
async void OnNoticeClick()
|
||||
{
|
||||
await UI_NoticeController.Open();
|
||||
}
|
||||
|
||||
void OnStartGame()
|
||||
{
|
||||
#if SDK_TAPTAP
|
||||
ShowLoginPanel();
|
||||
return;
|
||||
#endif
|
||||
|
||||
if (loginSaveData.LoginByPhone && loginSaveData.AuthCodeUpdateTime > DateTimeOffset.UtcNow.ToUnixTimeSeconds())
|
||||
{
|
||||
PhoneAutoLogin();
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit e38e76c0a98b1618346709ac11bc119b71ea05e7
|
||||
Subproject commit a908bc6851f82404750eea5dc52f2a1c66d06f49
|
||||
|
|
@ -817,7 +817,7 @@ PlayerSettings:
|
|||
webGLMemoryGeometricGrowthCap: 96
|
||||
webGLPowerPreference: 2
|
||||
scriptingDefineSymbols:
|
||||
Android: ODIN_INSPECTOR;ODIN_INSPECTOR_3;ODIN_INSPECTOR_3_1;ODIN_VALIDATOR;ODIN_VALIDATOR_3_1;IAP;USE_HCLR;USE_YOO;GUIDE;TD_GAME;SDK_TALKINGDATA
|
||||
Android: ODIN_INSPECTOR;ODIN_INSPECTOR_3;ODIN_INSPECTOR_3_1;ODIN_VALIDATOR;ODIN_VALIDATOR_3_1;IAP;USE_HCLR;USE_YOO;GUIDE;TD_GAME;SDK_TALKINGDATA;SDK_TAPTAP;SDK_CRASHSIGHT
|
||||
Standalone: ODIN_VALIDATOR;ODIN_VALIDATOR_3_1;ODIN_INSPECTOR;ODIN_INSPECTOR_3;ODIN_INSPECTOR_3_1;TEST_TAPTAP;USE_YOO;USE_HCLR;GUIDE
|
||||
Windows Store Apps: ODIN_VALIDATOR;ODIN_VALIDATOR_3_1;ODIN_INSPECTOR;ODIN_INSPECTOR_3;ODIN_INSPECTOR_3_1
|
||||
iPhone: ODIN_VALIDATOR;ODIN_VALIDATOR_3_1;ODIN_INSPECTOR;ODIN_INSPECTOR_3;ODIN_INSPECTOR_3_1;USE_YOO;USE_HCLR;IAP;GUIDE;SDK_TALKINGDATA;TD_GAME
|
||||
|
|
|
|||
|
|
@ -1,190 +0,0 @@
|
|||
# 游戏防沉迷 AntiAddiction (Unity) 对接文档
|
||||
AntiAddictionSDK 是为了遵循最新防沉迷政策而编写的一个集实名登记、防沉迷时长限制、付费限制三部分功能的组件,方便国内游戏团队快速接入游戏实现防沉迷功能从而符合政策规定。
|
||||
|
||||
# 说明
|
||||
Unity 模块是通过引入 iOS 和 Android 模块后增加桥接文件打包出的 `.unitypackage`,方便以 Unity 开发的游戏直接引入。其他引擎/平台的游戏可以通过 iOS/Android 原生的方式接入,详见 iOS/Android 各模块接入文档。
|
||||
|
||||
## 1.接入SDK
|
||||
Unity 开发环境:2018.4.36f1
|
||||
|
||||
导入 `AntiAddictionForUnity.unitypackage`
|
||||
|
||||
### 1.1 iOS
|
||||
- iOS Deployment Target 最低支持 iOS 10.0
|
||||
- Xcode 13.0 beta 5 编译
|
||||
|
||||
>注意:
|
||||
>`unitypackge`中默认 iOS 平台 `AntiAddictionService.framework、AntiAddictionUI.framework` 同时支持真机和模拟器架构。
|
||||
|
||||
**检查 Unity 输出的 Xcode 工程**
|
||||
|
||||
1. 请确保设置 `Xcode` - `General` - `Frameworks, Libraries, and Embedded Content` 中的 `AntiAddictionService.framework` 和 AntiAddictionUI.framework 为 `Do Not Embed`。
|
||||
2. 如果编译报错找不到头文件或者模块,请确保 `Xcode`-`Build Settings` - `Framework Search Paths` 中的路径以保证 Xcode 正常编译。
|
||||
3. 确保 Xcode 工程的 `Build Settings` 的 `Swift Compile Language/Swfit Language Version` 为 `Swift5`。
|
||||
4. 添加依赖库 `libz.tbd` `libc++.tdb`
|
||||
5. 开始代码接入
|
||||
6. 将 AntiAddiction-Unity/Assets/Plugins/iOS/Resource/AntiAdictionResources.bundle 拷贝到游戏项目下 (如果unity项目没有正确导入 AntiAddictionResources.bundle)
|
||||
|
||||
> 请确保以上步骤正确执行。
|
||||
|
||||
### 1.2 Android
|
||||
最低支持安卓版本 5.0。
|
||||
|
||||
## 2.接口文档
|
||||
防沉迷需要游戏提供用于授权防沉迷的游戏唯一id(需要保证唯一即可,建议不要使用游戏中的用户id,如果一定要使用可以进行hash处理,客户端对长度无限制,服务端支持最长32位的字符)。
|
||||
|
||||
**以下使用需要SDK命名空间下**
|
||||
```
|
||||
using Plugins.AntiAddictionUIKit
|
||||
```
|
||||
|
||||
### 2.1 初始化
|
||||
初始化SDK并设置回调,初始化方法接收Action作为回调
|
||||
- 参数介绍
|
||||
- gameIdentifier 游戏名称标识(游戏自行定义)
|
||||
- useTimeLimit 启用时长限制功能
|
||||
- usePaymentLimit 启用付费限制功能
|
||||
- antiServerUrl 防沉迷服务域名
|
||||
- identifyServerUrl 实名服务域名
|
||||
- departmentWebSocketUrl 中宣部长连服务域名
|
||||
- antiSecretKey 防沉迷服务密钥
|
||||
示例如下:
|
||||
```
|
||||
string gameIdentifier = "游戏的 Client ID";
|
||||
// 是否启用时长限制功能
|
||||
bool useTimeLimit = true;
|
||||
// 是否启用消费限制功能
|
||||
bool usePaymentLimit = true;
|
||||
AntiAddictionUIKit.Init(gameIdentifier, useTimeLimit, usePaymentLimit,
|
||||
(antiAddictionCallbackData) => {
|
||||
int code = antiAddictionCallbackData.code;
|
||||
MsgExtraParams extras = antiAddictionCallbackData.extras;
|
||||
// 根据 code 不同提示玩家不同信息,详见下面的说明
|
||||
},
|
||||
(exception) => {
|
||||
// 处理异常
|
||||
},
|
||||
);
|
||||
```
|
||||
回调中会返回对应的回调类型码 resultCode 和相应信息 message:
|
||||
|
||||
回调类型 | 参数值 | 触发条件 | 附带信息
|
||||
--- | --- | --- | ---
|
||||
CALLBACK\_CODE\_ENTER\_SUCCESS | 500 | 用户登录后判断当前用户可以进行游戏(未成年用户在可玩时间登录也会收到该消息) | 无
|
||||
CALLBACK\_CODE\_SWITCH_ACCOUNT | 1000 | 切换账号,当用户因防沉迷机制受限时,选择切换账号时会触发 | 无
|
||||
CALLBACK\_CODE\_TIME\_LIMIT | 1030 | 用户当前无法进行游戏 | 给用户返回提示信息
|
||||
CALLBACK\_CODE\_OPEN\_ALERT | 1095 | 未成年允许游戏弹窗
|
||||
CALLBACK\_CODE\_REAL\_NAME\_STOP | 9002 | 实名过程中点击了关闭实名窗
|
||||
|
||||
### 2.2 防沉迷授权
|
||||
|
||||
SDK 支持两种防沉迷授权方式:
|
||||
|
||||
1. 使用 TapTap 快速认证,传入玩家的唯一标识和 TapTap 的鉴权信息,TDS 云端会根据相应玩家在 TapTap 的实名信息判断玩家是否可以进行游戏。
|
||||
2. 不使用 TapTap 快速认证,玩家在 SDK 提供的界面中手动输入身份证号等实名信息,TDS 云端会将相应信息上报至中宣部防沉迷实名认证系统。
|
||||
|
||||
这两种方式都需要传入的玩家唯一标识,该标识由游戏自己定义。
|
||||
如果使用 TDS 内建账户系统,可以使用玩家的 `objectId`。
|
||||
|
||||
```cs
|
||||
bool useTapLogin = true;
|
||||
string userIdentifier = "玩家的唯一标识";
|
||||
string tapTapAccessToken = "TapTap 第三方登录的 access token";
|
||||
|
||||
AntiAddictionUIKit.Startup(useTapLogin, userIdentifier, tapTapAccessToken);
|
||||
```
|
||||
|
||||
### 手动输入实名信息
|
||||
|
||||
```cs
|
||||
string userIdentifier = "玩家的唯一标识";
|
||||
AntiAddictionUIKit.Startup(false, userIdentifier, "");
|
||||
```
|
||||
|
||||
### 获取 TapTap Access Token
|
||||
|
||||
初始化时需要传入 TapTap 的 `access token`,以便从 TapTap 获取玩家的实名信息。
|
||||
|
||||
无论游戏使用[TDS 内建账户系统](/sdk/taptap-login/guide/start/#用-taptap-oauth-授权结果直接登录账户系统),还是使用[单纯 TapTap 用户认证](/sdk/taptap-login/guide/tap-login/#taptap-登录并获取登录结果)的方式接入 TapTap 登录,在玩家已登录 TapTap 的情况下,都可以通过如下接口获取 TapTap 的 `access token`:
|
||||
|
||||
```cs
|
||||
AccessToken accessToken = TapLogin.GetAccessToken();
|
||||
string tapTapAccessToken = JsonUtility.ToJson(accessToken);
|
||||
```
|
||||
|
||||
### 2.3 登出
|
||||
|
||||
玩家在游戏内退出账号时调用,重置防沉迷状态。
|
||||
|
||||
```cs
|
||||
AntiAddictionUIKit.Logout();
|
||||
```
|
||||
|
||||
### 2.4 获取玩家年龄段
|
||||
|
||||
调用该接口可获取玩家所处年龄段:
|
||||
```cs
|
||||
int ageRange = AntiAddictionUIKit.CurrentUserAgeLimit();
|
||||
```
|
||||
|
||||
### 2.5 检查消费上限
|
||||
|
||||
根据年龄段的不同,未成年玩家的消费金额有不同的上限。
|
||||
如果启用消费限制功能,开发者需要在未成年玩家消费前检查是否受限,并在成功消费后上报消费金额。
|
||||
|
||||
游戏在收到玩家的付费请求后,调用以下接口当前玩家的付费行为是否被限制:
|
||||
|
||||
```cs
|
||||
long amount = 100;
|
||||
AntiAddictionUIKit.CheckPayLimit(amount,
|
||||
(result) => {
|
||||
// status 为 1 时可以支付
|
||||
int status = result.status;
|
||||
if (status != 1) {
|
||||
// 限制消费提示标题
|
||||
string title = result.title;
|
||||
// 限制消费提示描述(例如法规说明)
|
||||
string description = result.description;
|
||||
}
|
||||
},
|
||||
(exception) => {
|
||||
// 处理异常
|
||||
}
|
||||
);
|
||||
```
|
||||
|
||||
### 2.6 上报消费金额
|
||||
消费金额的单位为分。
|
||||
|
||||
检查消费上限需要游戏事先上报未成年玩家的消费金额。
|
||||
建议开发者在服务端上报。
|
||||
开发者也可以调用 SDK 提供的接口,当未成年玩家消费成功后,在客户端上报消费金额,在客户端上报的可靠性低于在服务端上报,主要适用于无服务端的单机游戏。
|
||||
|
||||
```cs
|
||||
long amount = 100;
|
||||
AntiAddictionUIKit.SubmitPayResult(amount,
|
||||
() => {
|
||||
// 成功
|
||||
}, (exception) => {
|
||||
// 处理异常
|
||||
}
|
||||
);
|
||||
|
||||
### 2.7 上报游戏时长
|
||||
|
||||
如果启用时长限制功能,需要上报游戏时长。
|
||||
|
||||
已登录的玩家,开始游戏时调用此接口,之后 SDK 会自动轮询上报游戏时长。
|
||||
|
||||
```cs
|
||||
AntiAddictionUIKit.EnterGame();
|
||||
```
|
||||
|
||||
```cs
|
||||
AntiAddictionUIKit.LeaveGame();
|
||||
```
|
||||
|
||||
### 2.8 获取用户防沉迷token
|
||||
```cs
|
||||
string token = AntiAddictionUIKit.CurrentToken();
|
||||
```
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
using System;
|
||||
using TapTap.Common.Editor;
|
||||
using UnityEditor.Build.Reporting;
|
||||
|
||||
namespace TapTap.AntiAddiction.Mobile.Editor {
|
||||
public class TapAntiAddictionMobileProcessBuild : SDKLinkProcessBuild {
|
||||
public override int callbackOrder => 4;
|
||||
|
||||
public override string LinkPath => "TapTap/AntiAddiction/link.xml";
|
||||
|
||||
public override LinkedAssembly[] LinkedAssemblies => new LinkedAssembly[] {
|
||||
new LinkedAssembly { Fullname = "TapTap.AntiAddiction" },
|
||||
new LinkedAssembly { Fullname = "TapTap.AntiAddiction.Runtime" },
|
||||
new LinkedAssembly { Fullname = "TapTap.AntiAddiction.Mobile.Runtime" }
|
||||
};
|
||||
|
||||
public override Func<BuildReport, bool> IsTargetPlatform => (report) => {
|
||||
return BuildTargetUtils.IsSupportMobile(report.summary.platform);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
using UnityEditor.Callbacks;
|
||||
# if UNITY_IOS
|
||||
using UnityEditor.iOS.Xcode;
|
||||
#endif
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using TapTap.Common.Editor;
|
||||
|
||||
#if UNITY_IOS
|
||||
public class BuildPostProcessor
|
||||
{
|
||||
[PostProcessBuild(999)]
|
||||
public static void OnPostProcessBuild(BuildTarget buildTarget, string path)
|
||||
{
|
||||
if (buildTarget == BuildTarget.iOS)
|
||||
{
|
||||
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;
|
||||
}
|
||||
if (TapCommonCompile.HandlerIOSSetting(path,
|
||||
Application.dataPath,
|
||||
"AntiAdictionResources",
|
||||
"com.tapsdk.antiaddiction",
|
||||
"AntiAddiction",
|
||||
new[] {"AntiAdictionResources.bundle"},
|
||||
target, projPath, proj))
|
||||
{
|
||||
Debug.Log("TapAntiAddiction add Bundle Success!");
|
||||
return;
|
||||
}
|
||||
|
||||
Debug.LogWarning("TapAntiAddiction add Bundle Failed!");
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
@ -1,100 +0,0 @@
|
|||
using System;
|
||||
using TapTap.AntiAddiction.Model;
|
||||
using MobileBridgeAntiAddiction = Plugins.AntiAddictionUIKit.AntiAddictionUIKit;
|
||||
using CheckPayResult = Plugins.AntiAddictionUIKit.CheckPayResult;
|
||||
|
||||
namespace TapTap.AntiAddiction
|
||||
{
|
||||
public sealed class AntiAddictionMobileOldJob : IAntiAddictionJob
|
||||
{
|
||||
private Action<int, string> _externalCallback;
|
||||
|
||||
public Action<int, string> ExternalCallback
|
||||
{
|
||||
get => _externalCallback;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 剩余时间(单位:秒)
|
||||
/// </summary>
|
||||
public int RemainingTime => MobileBridgeAntiAddiction.CurrentUserRemainTime();
|
||||
|
||||
/// <summary>
|
||||
/// 剩余时间(单位:分钟)
|
||||
/// </summary>
|
||||
public int RemainingTimeInMinutes
|
||||
{
|
||||
get
|
||||
{
|
||||
int seconds = RemainingTime;
|
||||
if (seconds <= 0)
|
||||
return 0;
|
||||
return UnityEngine.Mathf.CeilToInt(seconds / 60.0f);
|
||||
}
|
||||
}
|
||||
|
||||
public string CurrentToken => MobileBridgeAntiAddiction.CurrentToken();
|
||||
|
||||
private bool useTapLogin;
|
||||
|
||||
public void Init(AntiAddictionConfig config, Action<int, string> callback)
|
||||
{
|
||||
_externalCallback = callback;
|
||||
useTapLogin = config.useTapLogin;
|
||||
MobileBridgeAntiAddiction.Init(config.gameId, true, true, config.showSwitchAccount
|
||||
, (data) => callback?.Invoke(data.code, null)
|
||||
, (data) => callback?.Invoke(-1, data));
|
||||
}
|
||||
|
||||
[Obsolete("请使用 Startup(string userId, bool isTapUser) 替代",false)]
|
||||
public void Startup(string userId)
|
||||
{
|
||||
MobileBridgeAntiAddiction.Startup(useTapLogin, userId);
|
||||
}
|
||||
|
||||
public void StartupWithTapTap(string userId)
|
||||
{
|
||||
MobileBridgeAntiAddiction.StartupWithTapTap(userId);
|
||||
}
|
||||
|
||||
public void Startup(string userId, bool isTapUser)
|
||||
{
|
||||
MobileBridgeAntiAddiction.Startup(userId, isTapUser);
|
||||
}
|
||||
|
||||
public void Exit()
|
||||
{
|
||||
MobileBridgeAntiAddiction.Logout();
|
||||
}
|
||||
|
||||
public void EnterGame()
|
||||
{
|
||||
MobileBridgeAntiAddiction.EnterGame();
|
||||
}
|
||||
|
||||
public void LeaveGame()
|
||||
{
|
||||
MobileBridgeAntiAddiction.LeaveGame();
|
||||
}
|
||||
|
||||
public void CheckPayLimit(long amount, Action<CheckPayResult> handleCheckPayLimit, Action<string> handleCheckPayLimitException)
|
||||
{
|
||||
MobileBridgeAntiAddiction.CheckPayLimit(amount, handleCheckPayLimit, handleCheckPayLimitException);
|
||||
}
|
||||
|
||||
public void SubmitPayResult(long amount, Action handleSubmitPayResult, Action<string> handleSubmitPayResultException)
|
||||
{
|
||||
MobileBridgeAntiAddiction.SubmitPayResult(amount, handleSubmitPayResult, handleSubmitPayResultException);
|
||||
}
|
||||
|
||||
public bool isStandalone()
|
||||
{
|
||||
return MobileBridgeAntiAddiction.isStandalone();
|
||||
}
|
||||
|
||||
public void SetTestEnvironment(bool enable) {
|
||||
MobileBridgeAntiAddiction.SetTestEnvironment(enable);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,804 +0,0 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using UnityEngine;
|
||||
using TapTap.Common;
|
||||
|
||||
namespace Plugins.AntiAddictionUIKit
|
||||
{
|
||||
public static class AntiAddictionUIKit
|
||||
{
|
||||
// Game object is created to receive async messages
|
||||
private const string UNITY_SDK_VERSION = "3.26.0";
|
||||
private const string GAME_OBJECT_NAME = "PluginBridge";
|
||||
private static GameObject gameObject;
|
||||
|
||||
// Android only variables
|
||||
private const string JAVA_OBJECT_NAME = "com.tapsdk.antiaddictionui.NativeAntiAddictionUIKitPlugin";
|
||||
private static AndroidJavaObject androidJavaNativeAntiAddiction;
|
||||
|
||||
|
||||
private static Action<AntiAddictionCallbackData> handleAsyncAntiAddictionMsg;
|
||||
private static Action<string> handleAsyncAntiAddictionMsgException;
|
||||
|
||||
private static Action<string> handleAsyncAuthIdentityManualException;
|
||||
|
||||
private static Action<CheckPayResult> handleCheckPayLimit;
|
||||
|
||||
private static Action<string> handleCheckPayLimitException;
|
||||
|
||||
private static Action handleSubmitPayResult;
|
||||
|
||||
private static Action<string> handleSubmitPayResultException;
|
||||
|
||||
#pragma warning disable CS0626
|
||||
// iOS only variables
|
||||
#if UNITY_IOS
|
||||
[DllImport("__Internal")]
|
||||
#endif
|
||||
private static extern void TapSDKInitSDK(string gameIdentifier
|
||||
, bool useTimeLimit
|
||||
, bool usePaymentLimit
|
||||
, bool showSwitchAccount);
|
||||
|
||||
#if UNITY_IOS
|
||||
[DllImport("__Internal")]
|
||||
#endif
|
||||
private static extern void TapSDKStartup(string userIdentifier, bool useTapLogin);
|
||||
|
||||
#if UNITY_IOS
|
||||
[DllImport("__Internal")]
|
||||
#endif
|
||||
private static extern void TapSDKStartupWithTapTap(string userIdentifier, bool isTapUser);
|
||||
|
||||
#if UNITY_IOS
|
||||
[DllImport("__Internal")]
|
||||
#endif
|
||||
private static extern void TapSDKStartupWithTapTap(string userIdentifier);
|
||||
|
||||
|
||||
#if UNITY_IOS
|
||||
[DllImport("__Internal")]
|
||||
#endif
|
||||
private static extern void TapSDKLogout();
|
||||
|
||||
#if UNITY_IOS
|
||||
[DllImport("__Internal")]
|
||||
#endif
|
||||
private static extern void TapSDKEnterGame();
|
||||
|
||||
#if UNITY_IOS
|
||||
[DllImport("__Internal")]
|
||||
#endif
|
||||
private static extern void TapSDKLeaveGame();
|
||||
|
||||
#if UNITY_IOS
|
||||
[DllImport("__Internal")]
|
||||
#endif
|
||||
private static extern void TapSDKCheckPayLimit(long amount);
|
||||
|
||||
#if UNITY_IOS
|
||||
[DllImport("__Internal")]
|
||||
#endif
|
||||
private static extern void TapSDKSubmitPayResult(long amount);
|
||||
|
||||
#if UNITY_IOS
|
||||
[DllImport("__Internal")]
|
||||
#endif
|
||||
private static extern int TapSDKGetCurrentUserRemainTime();
|
||||
|
||||
#if UNITY_IOS
|
||||
[DllImport("__Internal")]
|
||||
#endif
|
||||
private static extern int TapSDKGetCurrentUserAgeLimit();
|
||||
|
||||
#if UNITY_IOS
|
||||
[DllImport("__Internal")]
|
||||
#endif
|
||||
private static extern string TapSDKGetCurrentAntiToken();
|
||||
|
||||
#if UNITY_IOS
|
||||
[DllImport("__Internal")]
|
||||
#endif
|
||||
private static extern bool TapSDKStandalone();
|
||||
|
||||
#if UNITY_IOS
|
||||
[DllImport("__Internal")]
|
||||
#endif
|
||||
private static extern void TapSDKSetTestEnvironment(bool enable);
|
||||
|
||||
|
||||
// disable warning CS0626
|
||||
|
||||
#if UNITY_IOS
|
||||
[DllImport("__Internal")]
|
||||
#endif
|
||||
private static extern void TapSDKSetUnityVersion(string version);
|
||||
#pragma warning restore CS0626
|
||||
|
||||
private class PlatformNotSupportedException : Exception
|
||||
{
|
||||
public PlatformNotSupportedException() : base()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
static AntiAddictionUIKit()
|
||||
{
|
||||
gameObject = new GameObject();
|
||||
gameObject.name = GAME_OBJECT_NAME;
|
||||
|
||||
// attach this class to allow for handling of callbacks from Java or Objective c
|
||||
gameObject.AddComponent<NativeAntiAddictionUICallbackHandler>();
|
||||
gameObject.AddComponent<NativeCheckPayLimitHandler>();
|
||||
gameObject.AddComponent<NativeSubmitPayResultHandler>();
|
||||
|
||||
// Do not destroy when loading a new scene
|
||||
UnityEngine.Object.DontDestroyOnLoad(gameObject);
|
||||
|
||||
switch (Application.platform)
|
||||
{
|
||||
case RuntimePlatform.Android:
|
||||
|
||||
// Initialize native Java object
|
||||
androidJavaNativeAntiAddiction = new AndroidJavaObject(JAVA_OBJECT_NAME);
|
||||
break;
|
||||
|
||||
case RuntimePlatform.IPhonePlayer:
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new PlatformNotSupportedException();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private class NativeAntiAddictionUICallbackHandler : MonoBehaviour
|
||||
{
|
||||
private void HandleException(string exception)
|
||||
{
|
||||
handleAsyncAntiAddictionMsgException?.Invoke(exception);
|
||||
}
|
||||
|
||||
private void HandleAntiAddictionCallbackMsg(string antiAddictionCallbackDataJSON)
|
||||
{
|
||||
Debug.Log("HandleAntiAddictionCallbackMsg antiAddictionCallbackDataJSON:" + antiAddictionCallbackDataJSON);
|
||||
var antiAddictionCallbackOriginData = JsonUtility.FromJson<AntiAddictionCallbackOriginData>(antiAddictionCallbackDataJSON);
|
||||
|
||||
Debug.Log("HandleAntiAddictionCallbackMsg resultCode:" + antiAddictionCallbackOriginData.code);
|
||||
|
||||
var result = new AntiAddictionCallbackData();
|
||||
result.code = antiAddictionCallbackOriginData.code;
|
||||
|
||||
if (antiAddictionCallbackOriginData.extras != null && antiAddictionCallbackOriginData.extras.Length > 0) {
|
||||
result.extras = JsonUtility.FromJson<MsgExtraParams>(antiAddictionCallbackOriginData.extras);
|
||||
Debug.Log("result.extras title:" + result.extras.title);
|
||||
Debug.Log("result.extras description:" + result.extras.description);
|
||||
}
|
||||
handleAsyncAntiAddictionMsg?.Invoke(result);
|
||||
}
|
||||
}
|
||||
|
||||
private class NativeCheckPayLimitHandler : MonoBehaviour
|
||||
{
|
||||
private void HandleCheckPayLimitException(string exception)
|
||||
{
|
||||
handleCheckPayLimitException?.Invoke(exception);
|
||||
}
|
||||
|
||||
private void HandleCheckPayLimit(string checkPayResultJSON)
|
||||
{
|
||||
var result = JsonUtility.FromJson<CheckPayResult>(checkPayResultJSON);
|
||||
handleCheckPayLimit?.Invoke(result);
|
||||
}
|
||||
}
|
||||
|
||||
private class NativeSubmitPayResultHandler : MonoBehaviour
|
||||
{
|
||||
private void HandleSubmitPayResultException(string exception)
|
||||
{
|
||||
handleSubmitPayResultException?.Invoke(exception);
|
||||
}
|
||||
|
||||
private void HandleSubmitPayResult()
|
||||
{
|
||||
handleSubmitPayResult?.Invoke();
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* ------------------
|
||||
* Interface Metthods
|
||||
* ------------------
|
||||
*/
|
||||
public static void Init(string gameIdentifier
|
||||
, bool useTimeLimit
|
||||
, bool usePaymentLimit
|
||||
, Action<AntiAddictionCallbackData> handleAsyncAntiAddictionMsg
|
||||
, Action<string> handleAsyncAntiAddictionMsgException)
|
||||
{
|
||||
AntiAddictionUIKit.handleAsyncAntiAddictionMsg = handleAsyncAntiAddictionMsg;
|
||||
AntiAddictionUIKit.handleAsyncAntiAddictionMsgException = handleAsyncAntiAddictionMsgException;
|
||||
|
||||
switch (Application.platform)
|
||||
{
|
||||
case RuntimePlatform.Android:
|
||||
PerformAndroidInit(gameIdentifier, useTimeLimit, usePaymentLimit);
|
||||
break;
|
||||
case RuntimePlatform.IPhonePlayer:
|
||||
PerformiOSInit(gameIdentifier, useTimeLimit, usePaymentLimit);
|
||||
break;
|
||||
default:
|
||||
throw new PlatformNotSupportedException();
|
||||
}
|
||||
|
||||
SetUnitySDKVersion(UNITY_SDK_VERSION);
|
||||
}
|
||||
|
||||
public static void Init(string gameIdentifier
|
||||
, bool useTimeLimit
|
||||
, bool usePaymentLimit
|
||||
, bool showSwitchAccount
|
||||
, Action<AntiAddictionCallbackData> handleAsyncAntiAddictionMsg
|
||||
, Action<string> handleAsyncAntiAddictionMsgException)
|
||||
{
|
||||
AntiAddictionUIKit.handleAsyncAntiAddictionMsg = handleAsyncAntiAddictionMsg;
|
||||
AntiAddictionUIKit.handleAsyncAntiAddictionMsgException = handleAsyncAntiAddictionMsgException;
|
||||
|
||||
switch (Application.platform)
|
||||
{
|
||||
case RuntimePlatform.Android:
|
||||
PerformAndroidInit(gameIdentifier, useTimeLimit, usePaymentLimit, showSwitchAccount);
|
||||
break;
|
||||
case RuntimePlatform.IPhonePlayer:
|
||||
PerformiOSInit(gameIdentifier, useTimeLimit, usePaymentLimit, showSwitchAccount);
|
||||
break;
|
||||
default:
|
||||
throw new PlatformNotSupportedException();
|
||||
}
|
||||
|
||||
SetUnitySDKVersion(UNITY_SDK_VERSION);
|
||||
}
|
||||
[Obsolete("请使用 Startup(string userIdentifier, bool isTapUser)替代",false)]
|
||||
public static void Startup(bool useTapLogin, string userIdentifier) {
|
||||
switch (Application.platform)
|
||||
{
|
||||
case RuntimePlatform.Android:
|
||||
PerformAndroidStartup(useTapLogin, userIdentifier);
|
||||
break;
|
||||
case RuntimePlatform.IPhonePlayer:
|
||||
PerformiOSStartup(useTapLogin, userIdentifier);
|
||||
break;
|
||||
default:
|
||||
throw new PlatformNotSupportedException();
|
||||
}
|
||||
}
|
||||
|
||||
public static void StartupWithTapTap(string userIdentifier) {
|
||||
switch (Application.platform)
|
||||
{
|
||||
case RuntimePlatform.Android:
|
||||
PerformAndroidStartupWithTapTap(userIdentifier);
|
||||
break;
|
||||
case RuntimePlatform.IPhonePlayer:
|
||||
PerformiOSStartupWithTapTap(userIdentifier);
|
||||
break;
|
||||
default:
|
||||
throw new PlatformNotSupportedException();
|
||||
}
|
||||
}
|
||||
|
||||
public static void Startup(string userIdentifier, bool isTapUser) {
|
||||
switch (Application.platform)
|
||||
{
|
||||
case RuntimePlatform.Android:
|
||||
PerformAndroidStartup(userIdentifier, isTapUser);
|
||||
break;
|
||||
case RuntimePlatform.IPhonePlayer:
|
||||
PerformiOSStartup(userIdentifier, isTapUser);
|
||||
break;
|
||||
default:
|
||||
throw new PlatformNotSupportedException();
|
||||
}
|
||||
}
|
||||
|
||||
public static void EnterGame()
|
||||
{
|
||||
switch (Application.platform)
|
||||
{
|
||||
case RuntimePlatform.Android:
|
||||
PerformAndroidEnterGame();
|
||||
break;
|
||||
case RuntimePlatform.IPhonePlayer:
|
||||
PerformiOSEnterGame();
|
||||
break;
|
||||
default:
|
||||
throw new PlatformNotSupportedException();
|
||||
}
|
||||
}
|
||||
|
||||
public static void LeaveGame()
|
||||
{
|
||||
switch (Application.platform)
|
||||
{
|
||||
case RuntimePlatform.Android:
|
||||
PerformAndroidLeaveGame();
|
||||
break;
|
||||
case RuntimePlatform.IPhonePlayer:
|
||||
PerformiOSLeaveGame();
|
||||
break;
|
||||
default:
|
||||
throw new PlatformNotSupportedException();
|
||||
}
|
||||
}
|
||||
|
||||
public static string CurrentToken()
|
||||
{
|
||||
switch (Application.platform)
|
||||
{
|
||||
case RuntimePlatform.Android:
|
||||
return PerformAndroidGetCurrentToken();
|
||||
case RuntimePlatform.IPhonePlayer:
|
||||
return PerformiOSGetCurrentToken();
|
||||
default:
|
||||
throw new PlatformNotSupportedException();
|
||||
}
|
||||
}
|
||||
|
||||
public static int CurrentUserAgeLimit()
|
||||
{
|
||||
switch (Application.platform)
|
||||
{
|
||||
case RuntimePlatform.Android:
|
||||
return PerformAndroidGetCurrentUserAgeLimit();
|
||||
case RuntimePlatform.IPhonePlayer:
|
||||
return PerformiOSGetCurrentUserAgeLimit();
|
||||
default:
|
||||
throw new PlatformNotSupportedException();
|
||||
}
|
||||
}
|
||||
|
||||
public static int CurrentUserRemainTime()
|
||||
{
|
||||
switch (Application.platform)
|
||||
{
|
||||
case RuntimePlatform.Android:
|
||||
return PerformAndroidGetCurrentUserRemainTime();
|
||||
case RuntimePlatform.IPhonePlayer:
|
||||
return PerformiOSGetCurrentUserRemainTime();
|
||||
default:
|
||||
throw new PlatformNotSupportedException();
|
||||
}
|
||||
}
|
||||
|
||||
public static void Logout()
|
||||
{
|
||||
switch (Application.platform)
|
||||
{
|
||||
case RuntimePlatform.Android:
|
||||
PerformAndroidLogout();
|
||||
break;
|
||||
case RuntimePlatform.IPhonePlayer:
|
||||
PerformiOSLogout();
|
||||
break;
|
||||
default:
|
||||
throw new PlatformNotSupportedException();
|
||||
}
|
||||
}
|
||||
|
||||
public static void CheckPayLimit(long amount
|
||||
, Action<CheckPayResult> handleCheckPayLimit
|
||||
, Action<string> handleCheckPayLimitException)
|
||||
{
|
||||
AntiAddictionUIKit.handleCheckPayLimit = handleCheckPayLimit;
|
||||
AntiAddictionUIKit.handleCheckPayLimitException = handleCheckPayLimitException;
|
||||
|
||||
switch (Application.platform)
|
||||
{
|
||||
case RuntimePlatform.Android:
|
||||
PerformAndroidCheckPayLimit(amount);
|
||||
break;
|
||||
case RuntimePlatform.IPhonePlayer:
|
||||
PerformiOSCheckPayLimit(amount);
|
||||
break;
|
||||
default:
|
||||
throw new PlatformNotSupportedException();
|
||||
}
|
||||
}
|
||||
|
||||
public static void SubmitPayResult(long amount
|
||||
, Action handleSubmitPayResult
|
||||
, Action<string> handleSubmitPayResultException
|
||||
)
|
||||
{
|
||||
AntiAddictionUIKit.handleSubmitPayResult = handleSubmitPayResult;
|
||||
AntiAddictionUIKit.handleSubmitPayResultException = handleSubmitPayResultException;
|
||||
|
||||
switch (Application.platform)
|
||||
{
|
||||
case RuntimePlatform.Android:
|
||||
PerformAndroidSubmitPayResult(amount);
|
||||
break;
|
||||
case RuntimePlatform.IPhonePlayer:
|
||||
PerformiOSSubmitPayResult(amount);
|
||||
break;
|
||||
default:
|
||||
throw new PlatformNotSupportedException();
|
||||
}
|
||||
}
|
||||
|
||||
public static void SetUnitySDKVersion(string version)
|
||||
{
|
||||
switch (Application.platform)
|
||||
{
|
||||
case RuntimePlatform.Android:
|
||||
PerformAndroidSetUnityVersion(version);
|
||||
break;
|
||||
case RuntimePlatform.IPhonePlayer:
|
||||
PerformiOSSetUnityVersion(version);
|
||||
break;
|
||||
default:
|
||||
throw new PlatformNotSupportedException();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public static bool isStandalone() {
|
||||
switch (Application.platform)
|
||||
{
|
||||
case RuntimePlatform.Android:
|
||||
return (PerformAndroidIsStandalone() == 1) ? true : false;
|
||||
case RuntimePlatform.IPhonePlayer:
|
||||
return PerformiOSIsStandalone();
|
||||
default:
|
||||
throw new PlatformNotSupportedException();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public static void SetTestMode(bool testMode)
|
||||
{
|
||||
switch (Application.platform)
|
||||
{
|
||||
case RuntimePlatform.Android:
|
||||
setTestMode(testMode);
|
||||
break;
|
||||
case RuntimePlatform.IPhonePlayer:
|
||||
setTestMode(testMode);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public static void SetTestEnvironment(bool enable)
|
||||
{
|
||||
switch (Application.platform)
|
||||
{
|
||||
case RuntimePlatform.Android:
|
||||
PerformAndroidSetTestEnvironment(enable);
|
||||
break;
|
||||
case RuntimePlatform.IPhonePlayer:
|
||||
PerformiOSSetTestEnvironment(enable);
|
||||
break;
|
||||
default:
|
||||
throw new PlatformNotSupportedException();
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* ------------------
|
||||
* Internal Metthods(Android)
|
||||
* ------------------
|
||||
*/
|
||||
private static void PerformAndroidInit(
|
||||
string gameIdentifier
|
||||
, bool useTimeLimit
|
||||
, bool usePaymentLimit
|
||||
)
|
||||
{
|
||||
Debug.Log("Android Init calling:" + gameIdentifier);
|
||||
AndroidJavaClass unityClass = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
|
||||
AndroidJavaObject unityActivity = unityClass.GetStatic<AndroidJavaObject>("currentActivity");
|
||||
androidJavaNativeAntiAddiction.Call("initSDK"
|
||||
, unityActivity
|
||||
, gameIdentifier
|
||||
, useTimeLimit
|
||||
, usePaymentLimit
|
||||
);
|
||||
}
|
||||
|
||||
private static void PerformAndroidInit(
|
||||
string gameIdentifier
|
||||
, bool useTimeLimit
|
||||
, bool usePaymentLimit
|
||||
, bool showSwitchAccount
|
||||
)
|
||||
{
|
||||
Debug.Log("Android Init calling:" + gameIdentifier);
|
||||
AndroidJavaClass unityClass = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
|
||||
AndroidJavaObject unityActivity = unityClass.GetStatic<AndroidJavaObject>("currentActivity");
|
||||
androidJavaNativeAntiAddiction.Call("initSDK"
|
||||
, unityActivity
|
||||
, gameIdentifier
|
||||
, useTimeLimit
|
||||
, usePaymentLimit
|
||||
, showSwitchAccount
|
||||
);
|
||||
}
|
||||
|
||||
[Obsolete("请使用 PerformAndroidStartup(string userIdentifier, bool isTapUser) 替代",false)]
|
||||
private static void PerformAndroidStartup(bool useTapLogin, string userIdentifier)
|
||||
{
|
||||
Debug.Log("Android startup calling");
|
||||
AndroidJavaClass unityClass = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
|
||||
AndroidJavaObject unityActivity = unityClass.GetStatic<AndroidJavaObject>("currentActivity");
|
||||
androidJavaNativeAntiAddiction.Call("startup", unityActivity, useTapLogin, userIdentifier);
|
||||
}
|
||||
|
||||
private static void PerformAndroidStartup(string userIdentifier, bool isTapUser)
|
||||
{
|
||||
Debug.Log("Android startup new calling");
|
||||
AndroidJavaClass unityClass = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
|
||||
AndroidJavaObject unityActivity = unityClass.GetStatic<AndroidJavaObject>("currentActivity");
|
||||
androidJavaNativeAntiAddiction.Call("startup", unityActivity, userIdentifier, isTapUser);
|
||||
}
|
||||
|
||||
private static void PerformAndroidStartupWithTapTap(string userIdentifier)
|
||||
{
|
||||
Debug.Log("Android startupWithTapTap new calling");
|
||||
AndroidJavaClass unityClass = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
|
||||
AndroidJavaObject unityActivity = unityClass.GetStatic<AndroidJavaObject>("currentActivity");
|
||||
androidJavaNativeAntiAddiction.Call("startupWithTapTap", unityActivity, userIdentifier);
|
||||
}
|
||||
|
||||
private static string PerformAndroidGetCurrentToken()
|
||||
{
|
||||
Debug.Log("Android getCurrrentToken calling");
|
||||
return androidJavaNativeAntiAddiction.Call<string>("getCurrentToken");
|
||||
}
|
||||
|
||||
private static int PerformAndroidGetCurrentUserAgeLimit()
|
||||
{
|
||||
Debug.Log("Android getCurrrentUserAgeLimit calling");
|
||||
return androidJavaNativeAntiAddiction.Call<int>("getCurrentUserAgeLimit");
|
||||
}
|
||||
|
||||
private static int PerformAndroidGetCurrentUserRemainTime()
|
||||
{
|
||||
Debug.Log("Android getCurrrentRemainTime calling");
|
||||
return androidJavaNativeAntiAddiction.Call<int>("getCurrentUserRemainTime");
|
||||
}
|
||||
|
||||
private static void PerformAndroidLogout()
|
||||
{
|
||||
Debug.Log("Android logout calling");
|
||||
androidJavaNativeAntiAddiction.Call("logout");
|
||||
}
|
||||
|
||||
private static void PerformAndroidCheckPayLimit(long amount)
|
||||
{
|
||||
Debug.Log("Android checkPayLimit calling");
|
||||
AndroidJavaClass unityClass = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
|
||||
AndroidJavaObject unityActivity = unityClass.GetStatic<AndroidJavaObject>("currentActivity");
|
||||
androidJavaNativeAntiAddiction.Call("checkPayLimit", unityActivity, amount);
|
||||
}
|
||||
|
||||
private static void PerformAndroidSubmitPayResult(long amount)
|
||||
{
|
||||
Debug.Log("Android submitPayResult calling");
|
||||
androidJavaNativeAntiAddiction.Call("submitPayResult", amount);
|
||||
}
|
||||
|
||||
private static void PerformAndroidEnterGame()
|
||||
{
|
||||
Debug.Log("Android enterGame calling");
|
||||
androidJavaNativeAntiAddiction.Call("enterGame");
|
||||
}
|
||||
|
||||
private static void PerformAndroidLeaveGame()
|
||||
{
|
||||
Debug.Log("Android leaveGame calling");
|
||||
androidJavaNativeAntiAddiction.Call("leaveGame");
|
||||
}
|
||||
|
||||
private static void PerformAndroidSetUnityVersion(string version)
|
||||
{
|
||||
Debug.Log("Android setUnityVersion calling");
|
||||
androidJavaNativeAntiAddiction.Call("setUnityVersion", version);
|
||||
}
|
||||
|
||||
private static int PerformAndroidIsStandalone()
|
||||
{
|
||||
int result = androidJavaNativeAntiAddiction.Call<int>("isStandalone");
|
||||
Debug.Log("Android PerformAndroidIsStandalone calling" + result.ToString());
|
||||
return result;
|
||||
}
|
||||
|
||||
private static void PerformAndroidSetTestEnvironment(bool enable)
|
||||
{
|
||||
Debug.Log("Android SetTestEnvironment calling");
|
||||
AndroidJavaClass unityClass = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
|
||||
AndroidJavaObject unityActivity = unityClass.GetStatic<AndroidJavaObject>("currentActivity");
|
||||
androidJavaNativeAntiAddiction.Call("setTestEnvironment", unityActivity, enable);
|
||||
}
|
||||
|
||||
/*
|
||||
* ------------------
|
||||
* Internal Method(iOS)
|
||||
* ------------------
|
||||
*/
|
||||
private static void PerformiOSInit(string gameIdentifier
|
||||
, bool useTimeLimit
|
||||
, bool usePaymentLimit
|
||||
)
|
||||
{
|
||||
Debug.Log("PerformiOSInit:" + gameIdentifier);
|
||||
TapSDKInitSDK(gameIdentifier, useTimeLimit, usePaymentLimit, true);
|
||||
}
|
||||
|
||||
private static void PerformiOSInit(string gameIdentifier
|
||||
, bool useTimeLimit
|
||||
, bool usePaymentLimit
|
||||
, bool showSwitchAccount
|
||||
)
|
||||
{
|
||||
Debug.Log("PerformiOSInit:" + gameIdentifier);
|
||||
TapSDKInitSDK(gameIdentifier, useTimeLimit, usePaymentLimit, showSwitchAccount);
|
||||
}
|
||||
|
||||
[Obsolete("请使用 PerformiOSStartup(string userIdentifier, bool isTapUser) 替代",false)]
|
||||
private static void PerformiOSStartup(
|
||||
bool useTapLogin
|
||||
, string userIdentifier
|
||||
)
|
||||
{
|
||||
Debug.Log("PerformiOSStartup:" + userIdentifier);
|
||||
TapSDKStartup(userIdentifier, useTapLogin);
|
||||
}
|
||||
|
||||
private static void PerformiOSStartup(
|
||||
string userIdentifier
|
||||
, bool isTapUser
|
||||
)
|
||||
{
|
||||
Debug.Log("PerformiOSStartupNew:" + userIdentifier);
|
||||
TapSDKStartupWithTapTap(userIdentifier, isTapUser);
|
||||
}
|
||||
|
||||
private static void PerformiOSStartupWithTapTap(string userIdentifier)
|
||||
{
|
||||
Debug.Log("PerformiOSStartupWithTapTap:" + userIdentifier);
|
||||
TapSDKStartupWithTapTap(userIdentifier);
|
||||
}
|
||||
|
||||
private static string PerformiOSGetCurrentToken()
|
||||
{
|
||||
// to implement
|
||||
Debug.Log("PerformiOSGetCurrentToken");
|
||||
return TapSDKGetCurrentAntiToken();
|
||||
}
|
||||
|
||||
private static int PerformiOSGetCurrentUserAgeLimit()
|
||||
{
|
||||
// to implement
|
||||
return TapSDKGetCurrentUserAgeLimit();
|
||||
}
|
||||
|
||||
private static int PerformiOSGetCurrentUserRemainTime()
|
||||
{
|
||||
// to implement
|
||||
return TapSDKGetCurrentUserRemainTime();
|
||||
}
|
||||
|
||||
private static void PerformiOSEnterGame()
|
||||
{
|
||||
TapSDKEnterGame();
|
||||
}
|
||||
|
||||
private static void PerformiOSLeaveGame()
|
||||
{
|
||||
TapSDKLeaveGame();
|
||||
}
|
||||
|
||||
private static void PerformiOSLogout()
|
||||
{
|
||||
TapSDKLogout();
|
||||
}
|
||||
|
||||
private static void PerformiOSCheckPayLimit(long amount)
|
||||
{
|
||||
TapSDKCheckPayLimit(amount);
|
||||
}
|
||||
|
||||
private static void PerformiOSSubmitPayResult(long amount)
|
||||
{
|
||||
TapSDKSubmitPayResult(amount);
|
||||
}
|
||||
|
||||
private static void PerformiOSSetUnityVersion(string version)
|
||||
{
|
||||
TapSDKSetUnityVersion(version);
|
||||
}
|
||||
|
||||
private static Boolean PerformiOSIsStandalone() {
|
||||
return TapSDKStandalone();
|
||||
}
|
||||
|
||||
private static void PerformiOSSetTestEnvironment(bool enable)
|
||||
{
|
||||
TapSDKSetTestEnvironment(enable);
|
||||
}
|
||||
|
||||
private static void setTestMode(bool testMode) {
|
||||
if (testMode)
|
||||
{
|
||||
var command = new Command.Builder()
|
||||
.Service("TDSCommonService")
|
||||
.Method("addReplacedHostPair")
|
||||
.Args("hostToBeReplaced", "https://www.taptap.com")
|
||||
.Args("replacedHost", "https://www.xdrnd.com").CommandBuilder();
|
||||
|
||||
EngineBridge.GetInstance().CallHandler(command);
|
||||
|
||||
command = new Command.Builder()
|
||||
.Service("TDSCommonService")
|
||||
.Method("shareInstance")
|
||||
.Method("addReplacedHostPair")
|
||||
.Args("hostToBeReplaced", "https://tds-tapsdk.cn.tapapis.com")
|
||||
.Args("replacedHost", "https://tds-api.xdrnd.com").CommandBuilder();
|
||||
|
||||
EngineBridge.GetInstance().CallHandler(command);
|
||||
|
||||
command = new Command.Builder()
|
||||
.Service("TDSCommonService")
|
||||
.Method("addReplacedHostPair")
|
||||
.Args("hostToBeReplaced", "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1pM6yfulomBTXWKiQT5gK9fY4hq11Kv8D+ewum25oPGReuEn6dez7ogA8bEyQlnYYUoEp5cxYPBbIxJFy7q1qzQhTFphuFzoC1x7DieTvfZbh+b60psEottrCD8M0Pa3h44pzyIp5U5WRpxRcQ9iULolGLHZXJr9nW6bpOsyEIFG5tQ7qCBj8HSFoNBKZH+5Cwh3j5cjmyg55WdJTimg9ysbbwZHYmI+TFPuGo/ckHT6j4TQLCmmxI8Qf5pycn3/qJWFhjx/y8zaxgn2hgxbma8hyyGRCMnhM5tISYQv4zlQF+5RashvKa2zv+FHA5DALzIsGXONeTxk6TSBalX5gQIDAQAB")
|
||||
.Args("replacedHost", "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAks5GmqBvtcVihXvUorEh3KTHBteK36/4G5e3UOnYKbahspU9+FaJx/GaQxdtnFzkVXoGHVlYkhYokY12YO+OVB9INSgzwfxDGd2ttAsqCsUBl0GCVDzBHnS0agf7hk6YVljG8dRN01yW6q50XQCqyS2L3bfXDuWmUT8upgZ6fJSJRRRGh+vt9AJRBwZb3vQ/d/iejWH/64mGnM154CZGr+28SZ8AAXiCJ0BrfyGZqbhoqeWbFUbI7zv3FXiawuqS5EatH5ZU0ll14MlXdcIK7NzcDKCb/tekkr5zPDdTOPkQ5KDrwOx6oMEYs1sLC37nB0Me6mQWQPZY0lYPQ/GmwwIDAQAB").CommandBuilder();
|
||||
|
||||
EngineBridge.GetInstance().CallHandler(command);
|
||||
|
||||
command = new Command.Builder()
|
||||
.Service("TDSCommonService")
|
||||
.Method("addReplacedHostPair")
|
||||
.Args("hostToBeReplaced", "https://openapi.taptap.com")
|
||||
.Args("replacedHost", "https://open.api.xdrnd.cn").CommandBuilder();
|
||||
|
||||
EngineBridge.GetInstance().CallHandler(command);
|
||||
}
|
||||
else
|
||||
{
|
||||
var command = new Command.Builder()
|
||||
.Service("TDSCommonService")
|
||||
.Method("addReplacedHostPair")
|
||||
.Args("hostToBeReplaced", "https://www.taptap.com")
|
||||
.Args("replacedHost", "https://www.taptap.com").CommandBuilder();
|
||||
|
||||
EngineBridge.GetInstance().CallHandler(command);
|
||||
|
||||
command = new Command.Builder()
|
||||
.Service("TDSCommonService")
|
||||
.Method("shareInstance")
|
||||
.Method("addReplacedHostPair")
|
||||
.Args("hostToBeReplaced", "https://tds-tapsdk.cn.tapapis.com")
|
||||
.Args("replacedHost", "https://tds-tapsdk.cn.tapapis.com").CommandBuilder();
|
||||
|
||||
EngineBridge.GetInstance().CallHandler(command);
|
||||
|
||||
command = new Command.Builder()
|
||||
.Service("TDSCommonService")
|
||||
.Method("addReplacedHostPair")
|
||||
.Args("hostToBeReplaced", "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1pM6yfulomBTXWKiQT5gK9fY4hq11Kv8D+ewum25oPGReuEn6dez7ogA8bEyQlnYYUoEp5cxYPBbIxJFy7q1qzQhTFphuFzoC1x7DieTvfZbh+b60psEottrCD8M0Pa3h44pzyIp5U5WRpxRcQ9iULolGLHZXJr9nW6bpOsyEIFG5tQ7qCBj8HSFoNBKZH+5Cwh3j5cjmyg55WdJTimg9ysbbwZHYmI+TFPuGo/ckHT6j4TQLCmmxI8Qf5pycn3/qJWFhjx/y8zaxgn2hgxbma8hyyGRCMnhM5tISYQv4zlQF+5RashvKa2zv+FHA5DALzIsGXONeTxk6TSBalX5gQIDAQAB")
|
||||
.Args("replacedHost", "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1pM6yfulomBTXWKiQT5gK9fY4hq11Kv8D+ewum25oPGReuEn6dez7ogA8bEyQlnYYUoEp5cxYPBbIxJFy7q1qzQhTFphuFzoC1x7DieTvfZbh+b60psEottrCD8M0Pa3h44pzyIp5U5WRpxRcQ9iULolGLHZXJr9nW6bpOsyEIFG5tQ7qCBj8HSFoNBKZH+5Cwh3j5cjmyg55WdJTimg9ysbbwZHYmI+TFPuGo/ckHT6j4TQLCmmxI8Qf5pycn3/qJWFhjx/y8zaxgn2hgxbma8hyyGRCMnhM5tISYQv4zlQF+5RashvKa2zv+FHA5DALzIsGXONeTxk6TSBalX5gQIDAQAB").CommandBuilder();
|
||||
|
||||
EngineBridge.GetInstance().CallHandler(command);
|
||||
|
||||
command = new Command.Builder()
|
||||
.Service("TDSCommonService")
|
||||
.Method("addReplacedHostPair")
|
||||
.Args("hostToBeReplaced", "https://openapi.taptap.com")
|
||||
.Args("replacedHost", "https://openapi.taptap.com").CommandBuilder();
|
||||
|
||||
EngineBridge.GetInstance().CallHandler(command);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
|
@ -1,32 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: acc4298ef75bf48fba0c5c05d8a16446
|
||||
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:
|
||||
Binary file not shown.
|
|
@ -1,32 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 599311c88c7d14795929612096881bd2
|
||||
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: a8b0a46f4c7224fc0946d36999013b4c
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0feee4db0f5404ce7b2c4ece2577bd5e
|
||||
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: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
- first:
|
||||
iPhone: iOS
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
AddToEmbeddedBinaries: false
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c1462befdb3284910abbcf218cc4be6b
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: b152e33032a9f4ea38a7f332435e779a
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,83 +0,0 @@
|
|||
#import <Foundation/Foundation.h>
|
||||
#import "AntiAddictionHttpResult.h"
|
||||
|
||||
extern NSString *const ANTI_TIMEOUTKEY;
|
||||
extern NSString *const ANTI_HTTPMETHODKEY;
|
||||
extern NSString *const ANTI_HTTPBODYKEY;
|
||||
extern NSString *const ANTI_DATAFORMAT;
|
||||
extern NSString *const ANTI_CACHE_POLICY_KEY;
|
||||
|
||||
/**
|
||||
header
|
||||
*/
|
||||
extern NSString *const ANTI_AUTH_KEY;
|
||||
|
||||
|
||||
typedef void(^AntiCallBackBlock)(AntiAddictionHttpResult *result);
|
||||
typedef void(^GetAllCallBack)(NSArray *resultArr,BOOL successAll);
|
||||
|
||||
|
||||
@interface AntiAddictionAsyncHttp : NSObject
|
||||
@property (nonatomic,copy) AntiCallBackBlock callBackBlock;
|
||||
@property (nonatomic,copy) AntiCallBackBlock failedCallback;
|
||||
|
||||
- (void)startTask;
|
||||
- (void)stopTask;
|
||||
- (void)retryTask;
|
||||
- (NSInteger)httpTaskIdentify;
|
||||
|
||||
- (void)handleSuccessResult:(AntiAddictionHttpResult *)result;
|
||||
- (void)handleFailResult:(AntiAddictionHttpResult *)result;
|
||||
|
||||
/// GET请求
|
||||
/// @param urlStr url
|
||||
/// @param requestParams 网络请求参数,如超时、格式等
|
||||
/// @param customHeaderParams 自定义请求头参数
|
||||
/// @param params 本次请求参数
|
||||
/// @param callBackBlock 成功回调
|
||||
/// @param failedCallback 失败回调
|
||||
+ (void)httpGet:(NSString *)urlStr
|
||||
requestParams:(NSDictionary *)requestParams
|
||||
customHeader:(NSDictionary *)customHeaderParams
|
||||
params:(NSDictionary *)params
|
||||
callBack:(AntiCallBackBlock)callBackBlock failedCallback:(AntiCallBackBlock)failedCallback;
|
||||
|
||||
/**
|
||||
多个get请求并发,同时返回
|
||||
|
||||
@param urlStrArr URL数组
|
||||
@param requestParamsArr 请求参数数组
|
||||
@param customHeaderParamsArr 自定义请求头数组
|
||||
@param paramsDicArr 参数数组
|
||||
@param callback 回掉
|
||||
*/
|
||||
+ (void)httpGetAll:(NSArray *)urlStrArr
|
||||
requestParamsArr:(NSArray *)requestParamsArr
|
||||
customHeadersArr:(NSArray *)customHeaderParamsArr
|
||||
params:(NSArray *)paramsDicArr
|
||||
callback:(GetAllCallBack)callback;
|
||||
|
||||
/// POST请求
|
||||
/// @param urlStr URL
|
||||
/// @param requestParams 网络请求参数,如超时、数据格式、请求头等
|
||||
/// @param customHeaderParams 自定义请求头参数
|
||||
/// @param params 本次请求参数
|
||||
/// @param paramsJson 本次请求参数的 json 字符串,若有,优先使用 json
|
||||
/// @param callBackBlock 成功回调
|
||||
/// @param failedCallback 失败回调
|
||||
+ (void)httpPost:(NSString *)urlStr
|
||||
requestParams:(NSDictionary *)requestParams
|
||||
customHeader:(NSDictionary *)customHeaderParams
|
||||
params:(NSDictionary *)params
|
||||
paramsJson:(NSString *)paramsJson
|
||||
callBack:(AntiCallBackBlock)callBackBlock
|
||||
failedCallback:(AntiCallBackBlock)failedCallback;
|
||||
|
||||
+ (void)httpPost:(NSString *)urlStr
|
||||
requestParams:(NSDictionary *)requestParams
|
||||
customHeader:(NSDictionary *)customHeaderParams
|
||||
params:(NSDictionary *)params
|
||||
callBack:(AntiCallBackBlock)callBackBlock
|
||||
failedCallback:(AntiCallBackBlock)failedCallback;
|
||||
|
||||
@end
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: bc9358e3408b941c699c79f5f0b11952
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
#import <Foundation/Foundation.h>
|
||||
#import "AntiAddictionAsyncHttp.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
extern NSString *ANTI_ADDICTION_HTTP_FINISH_NOTIFICATION;
|
||||
|
||||
@interface AntiAddictionHttpManager : NSObject
|
||||
|
||||
@property (nonatomic) NSString *unityVersion;
|
||||
|
||||
+ (NSInteger)httpTaskIndex;
|
||||
|
||||
+ (void)addHttpTask:(AntiAddictionAsyncHttp *)httpTask index:(NSInteger)taskIndex;
|
||||
|
||||
+ (AntiAddictionHttpManager *)shareInstance;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 5ddd7754dcd084a26b3ad9599c057d87
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface AntiAddictionHttpRequest : NSObject
|
||||
|
||||
//! GET参数拼接
|
||||
+ (NSString *)connectUrl:(NSString *)url params:(NSDictionary *)params;
|
||||
+ (NSString *)connectUrl:(NSString *)url params:(NSDictionary *)params encode:(BOOL)encode;
|
||||
|
||||
// POST请求参数拼接
|
||||
+ (NSString *)postStringWithParams:(NSDictionary *)params;
|
||||
|
||||
// cookie
|
||||
+ (NSString *)cookieStringForUrl:(NSString *)url;
|
||||
|
||||
+ (NSString *)urlEncodedString:(NSString *)string;
|
||||
|
||||
@end
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 9a22542b4034246758a1cfb0c88cc62c
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface AntiAddictionHttpResult : NSObject
|
||||
|
||||
@property (nonatomic,strong) NSData *data;
|
||||
@property (nonatomic,strong) NSURLResponse *response;
|
||||
@property (nonatomic) NSError *error;
|
||||
@property (nonatomic) NSError *localError; // 本地错误
|
||||
@property (nonatomic) NSString *originUrl;
|
||||
@property (nonatomic, assign) NSInteger statusCode;
|
||||
|
||||
@property (nonatomic) NSDictionary *resultDic;
|
||||
|
||||
// 多个get同时返回数据时使用
|
||||
@property (nonatomic) NSArray *dataArr;
|
||||
|
||||
@end
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 366be00b1fe83438c87dcb1b9a762ac8
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3ae61781dfa6e4f1392b5f2fb6e398ed
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
//
|
||||
// AntiAddictionService.h
|
||||
// AntiAddictionService
|
||||
//
|
||||
// Created by JiangJiahao on 2020/7/7.
|
||||
// Copyright © 2020 JiangJiahao. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
//! Project version number for AntiAddictionService.
|
||||
FOUNDATION_EXPORT double AntiAddictionServiceVersionNumber;
|
||||
|
||||
//! Project version string for AntiAddictionService.
|
||||
FOUNDATION_EXPORT const unsigned char AntiAddictionServiceVersionString[];
|
||||
|
||||
// In this header, you should import all the public headers of your framework using statements like #import <AntiAddictionService/PublicHeader.h>
|
||||
#import <AntiAddictionService/CommonConfig.h>
|
||||
#import <AntiAddictionService/CommonConfigModel.h>
|
||||
#import <AntiAddictionService/RSAObjC.h>
|
||||
|
||||
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 4e6894621d53c4b75b7f36ced8265571
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
//
|
||||
// CommonConfig.h
|
||||
// AntiAddictionService
|
||||
//
|
||||
// Created by jessy on 2021/9/22.
|
||||
// Copyright © 2021 JiangJiahao. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
//#import <AntiAddictionService/AntiAddictionService-Swift.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface CommonConfig : NSObject
|
||||
|
||||
//+ (void)dataFromJson;
|
||||
|
||||
// 老逻辑,暂时不动
|
||||
+ (void)dataFromJsonWithConfig:(NSDictionary *)data_dict;
|
||||
|
||||
+ (void)saveConfigToJsonFile:(NSDictionary *)dic;
|
||||
+ (nullable NSDictionary *)loadConfigFromJsonFile;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f94426da6d4734ca1b3257d5818422ec
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
//
|
||||
// CommonConfigModel.h
|
||||
// AntiAddictionService
|
||||
//
|
||||
// Created by jessy on 2021/9/22.
|
||||
// Copyright © 2021 JiangJiahao. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface CommonConfigModel : NSObject
|
||||
|
||||
+ (instancetype)sharedInstance;
|
||||
|
||||
@property (nonatomic,strong) NSArray *auth_identify_words;
|
||||
|
||||
@property (nonatomic,strong) NSDictionary * ui_config;
|
||||
|
||||
@property (nonatomic,strong) NSString *unKnowTitle;
|
||||
|
||||
@property (nonatomic,strong) NSString *unKnowDesc;
|
||||
|
||||
@property (nonatomic,strong) NSString *name;
|
||||
|
||||
// 实名是否有记录 /public-department/v1/clients/{clientId}/users/{userId}/real-name 接口返回
|
||||
@property (nonatomic,assign) BOOL hasAuthRecord;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: be5fec68486f540a382b83b14a526f76
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,54 +0,0 @@
|
|||
//
|
||||
// RSAObjC.h
|
||||
//
|
||||
// Created by PacteraLF on 16/10/17.
|
||||
// Copyright © 2016年 PacteraLF. All rights reserved.
|
||||
// RSA 加密封装类
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
typedef NS_ENUM(NSInteger, TapRSAEncryptionPaddingType) {
|
||||
TapRSAEncryptionPaddingTypeNone = 0,
|
||||
TapRSAEncryptionPaddingTypePKCS1 = 1,
|
||||
TapRSAEncryptionPaddingTypeOAEP = 2,
|
||||
};
|
||||
|
||||
@interface RSAObjC : NSObject
|
||||
|
||||
+ (void)setDefaultPaddingType:(TapRSAEncryptionPaddingType)paddingType;
|
||||
|
||||
/**
|
||||
* -------RSA 字符串公钥加密-------
|
||||
@param plaintext 明文,待加密的字符串
|
||||
@param pubKey 公钥字符串
|
||||
@return 密文,加密后的字符串
|
||||
*/
|
||||
+ (NSString *)encrypt:(NSString *)plaintext PublicKey:(NSString *)pubKey;
|
||||
|
||||
/**
|
||||
* -------RSA 公钥文件加密-------
|
||||
@param plaintext 明文,待加密的字符串
|
||||
@param path 公钥文件路径,p12或pem格式
|
||||
@return 密文,加密后的字符串
|
||||
*/
|
||||
+ (NSString *)encrypt:(NSString *)plaintext KeyFilePath:(NSString *)path;
|
||||
|
||||
/**
|
||||
* -------RSA 私钥字符串解密-------
|
||||
@param ciphertext 密文,需要解密的字符串
|
||||
@param privKey 私钥字符串
|
||||
@return 明文,解密后的字符串
|
||||
*/
|
||||
+ (NSString *)decrypt:(NSString *)ciphertext PrivateKey:(NSString *)privKey;
|
||||
|
||||
/**
|
||||
* -------RSA 私钥文件解密-------
|
||||
@param ciphertext 密文,需要解密的字符串
|
||||
@param path 私钥文件路径,p12或pem格式(pem私钥需为pcks8格式)
|
||||
@param pwd 私钥文件的密码
|
||||
@return 明文,解密后的字符串
|
||||
*/
|
||||
+ (NSString *)decrypt:(NSString *)ciphertext KeyFilePath:(NSString *)path FilePwd:(NSString *)pwd;
|
||||
|
||||
|
||||
@end
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e0c865316fed749378c943bf1c06e3e5
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 4d213af8dc2b04208ba75aec5bd88355
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3dfc5429e859f4d418e99c856cb35589
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3846fac89e41e4836bbc2de566eb1e58
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 9f09caa8402f84e918efc74cde161fd5
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ad9a5533358094e11b667505c8b4cbb9
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: dd9a86fb225f14f19a69c39befdb7ceb
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f7e0d18fe9fac4451b937066974cb72a
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 51490f0d839db433189c73a737bf3924
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,335 +0,0 @@
|
|||
// swift-interface-format-version: 1.0
|
||||
// swift-compiler-version: Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
|
||||
// swift-module-flags: -target arm64-apple-ios11.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name AntiAddictionService
|
||||
// swift-module-flags-ignorable: -enable-bare-slash-regex
|
||||
import AntiAddictionAsyncHttp
|
||||
@_exported import AntiAddictionService
|
||||
import CommonCrypto
|
||||
import CoreTelephony
|
||||
import Foundation
|
||||
import ObjectiveC
|
||||
import Swift
|
||||
import SystemConfiguration
|
||||
import TapCommonSDK
|
||||
import UIKit
|
||||
import _Concurrency
|
||||
import _StringProcessing
|
||||
extension Swift.Collection {
|
||||
public subscript(safe index: Self.Index) -> Self.Iterator.Element? {
|
||||
get
|
||||
}
|
||||
}
|
||||
@objc public enum AntiAddictionServiceResult : Swift.Int {
|
||||
case loginSuccess = 500
|
||||
case logout = 1000
|
||||
case switchAccount = 1001
|
||||
case periodRestrict = 1030
|
||||
case durationLimit = 1050
|
||||
case openAlertTip = 1095
|
||||
case payLimitNone = 1020
|
||||
case payLimitReachLimit = 1025
|
||||
public init?(rawValue: Swift.Int)
|
||||
public typealias RawValue = Swift.Int
|
||||
public var rawValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
@objc public enum AntiAddictionRealNameAuthState : Swift.Int, Swift.Codable {
|
||||
case success = 0
|
||||
case verifying = 1
|
||||
case fail = 2
|
||||
public init?(rawValue: Swift.Int)
|
||||
public typealias RawValue = Swift.Int
|
||||
public var rawValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
@objc public enum AntiAddictionRealNameAgeLimit : Swift.Int, Swift.Codable {
|
||||
case unrealname = -1
|
||||
case child = 0
|
||||
case teen = 8
|
||||
case young = 16
|
||||
case adult = 18
|
||||
public init?(rawValue: Swift.Int)
|
||||
public typealias RawValue = Swift.Int
|
||||
public var rawValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
@objc public protocol AntiAddictionServiceCallback : ObjectiveC.NSObjectProtocol {
|
||||
@objc func onCallback(code: Swift.Int, extra: Swift.String?)
|
||||
}
|
||||
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(AntiAddictionService) final public class AntiAddictionService : ObjectiveC.NSObject {
|
||||
@objc public static let LocalTokenString: Swift.String
|
||||
@objc public static var UseTestEnv: Swift.Bool
|
||||
@objc public static var configuration: AntiAddictionService.AntiAddictionConfiguration
|
||||
@objc final public class func getSDKVersion() -> Swift.String
|
||||
@objc final public class func enableLog(enable: Swift.Bool)
|
||||
@objc final public class func setFunctionConfig(_ useSdkPaymentLimit: Swift.Bool = true, _ useSdkOnlineTimeLimit: Swift.Bool = true)
|
||||
@objc final public class func setFunctionConfig(_ useSdkPaymentLimit: Swift.Bool = true, _ useSdkOnlineTimeLimit: Swift.Bool = true, _ showSwitchAccount: Swift.Bool = true)
|
||||
@objc final public class func getConfig(_ clinentId: Swift.String, completionHandler: ((_ suceess: Swift.Bool) -> Swift.Void)? = nil)
|
||||
@objc final public class func `init`(_ delegate: AntiAddictionService.AntiAddictionServiceCallback, gameIdentifier: Swift.String? = nil)
|
||||
@objc final public class func fastRealName(clientId: Swift.String, userId: Swift.String, tapToken: Swift.String, completion: @escaping (AntiAddictionService.AntiAddictionRealNameAuthState, Swift.String, AntiAddictionService.AntiAddictionRealNameAgeLimit) -> (), failureHandler: @escaping (_ errorMessage: Foundation.NSError) -> ())
|
||||
@objc final public class func login(userToken: Swift.String, accessToken: Swift.String, ageLimit: AntiAddictionService.AntiAddictionRealNameAgeLimit)
|
||||
@objc final public class func enterGame()
|
||||
@objc final public class func enterGame(isActive: Swift.Bool)
|
||||
@objc final public class func leaveGame()
|
||||
@objc final public class func logout()
|
||||
@objc final public class func switchAccount()
|
||||
@objc final public class func getCurrentUserAgeLimite() -> Swift.Int
|
||||
@objc final public class func currentToken() -> Swift.String
|
||||
@objc final public class func currentUserRemainingTime() -> Swift.Int
|
||||
@objc final public class func isStandAlone() -> Swift.Bool
|
||||
@objc final public class func getchildNightStrictRemainDesc() -> Swift.String
|
||||
@objc final public class func checkCurrentPayLimit(_ amount: Swift.Int) -> Swift.Int
|
||||
@objc final public class func checkPayLimit(_ amount: Swift.Int, callBack: ((_ status: Swift.Bool, _ title: Swift.String, _ description: Swift.String) -> Swift.Void)? = nil, failureHandler: ((_ message: Swift.String) -> Swift.Void)? = nil)
|
||||
@objc final public class func submitPayResult(_ amount: Swift.Int, _ callBack: ((_ success: Swift.Bool) -> Swift.Void)? = nil, _ failureHandler: ((_ message: Swift.String) -> Swift.Void)? = nil)
|
||||
@objc final public class func isHoliday() -> Swift.Bool
|
||||
@objc final public class func generateIDCode() -> Swift.String
|
||||
@objc final public class func startTimeStatic()
|
||||
@objc final public class func stopTimeStatic()
|
||||
@objc final public class func realNameAuth(clientId: Swift.String, userId: Swift.String, code: Swift.String, name: Swift.String, idCard: Swift.String, isFallBack: Swift.Bool, completion: @escaping (AntiAddictionService.AntiAddictionRealNameAuthState, Swift.String, AntiAddictionService.AntiAddictionRealNameAgeLimit) -> (), failureHandler: @escaping (_ errorMessage: Swift.String) -> ())
|
||||
@objc final public class func checkRealnameState(clientId: Swift.String, userId: Swift.String, completion: @escaping (_ identifyState: AntiAddictionService.AntiAddictionRealNameAuthState, _ antiAddictionToken: Swift.String, _ ageLimit: AntiAddictionService.AntiAddictionRealNameAgeLimit) -> (), failureHandler: @escaping (_ errorMessage: Swift.String) -> ())
|
||||
@objc final public class func checkTapTapRealnameState(clientId: Swift.String, userId: Swift.String, code: Swift.String, completion: @escaping (_ identifyState: AntiAddictionService.AntiAddictionRealNameAuthState, _ antiAddictionToken: Swift.String, _ ageLimit: AntiAddictionService.AntiAddictionRealNameAgeLimit) -> (), failureHandler: @escaping (_ errorMessage: Swift.String) -> ())
|
||||
@objc final public class func checkPlayTimeResult(handler: @escaping (_ result: Swift.String?) -> Swift.Void) -> Swift.String?
|
||||
@objc deinit
|
||||
}
|
||||
public struct HashidsOptions {
|
||||
}
|
||||
public protocol HashidsGenerator {
|
||||
associatedtype Char
|
||||
func encode(_ value: Swift.Int64...) -> Swift.String?
|
||||
func encode(_ values: [Swift.Int64]) -> Swift.String?
|
||||
func encode(_ value: Swift.Int...) -> Swift.String?
|
||||
func encode(_ values: [Swift.Int]) -> Swift.String?
|
||||
func decode(_ value: Swift.String!) -> [Swift.Int]
|
||||
func decode(_ value: [Self.Char]) -> [Swift.Int]
|
||||
func decode64(_ value: Swift.String) -> [Swift.Int64]
|
||||
func decode64(_ value: [Self.Char]) -> [Swift.Int64]
|
||||
}
|
||||
public typealias Hashids = AntiAddictionService.Hashids_<Swift.UInt32>
|
||||
open class Hashids_<T> : AntiAddictionService.HashidsGenerator where T : Swift.UnsignedInteger {
|
||||
public typealias Char = T
|
||||
public init(salt: Swift.String!, minHashLength: Swift.UInt = 0, alphabet: Swift.String? = nil)
|
||||
open func encode(_ value: Swift.Int64...) -> Swift.String?
|
||||
open func encode(_ values: [Swift.Int64]) -> Swift.String?
|
||||
open func encode(_ value: Swift.Int...) -> Swift.String?
|
||||
open func encode(_ values: [Swift.Int]) -> Swift.String?
|
||||
open func decode(_ value: Swift.String!) -> [Swift.Int]
|
||||
open func decode(_ value: [AntiAddictionService.Hashids_<T>.Char]) -> [Swift.Int]
|
||||
open func decode64(_ value: Swift.String) -> [Swift.Int64]
|
||||
open func decode64(_ value: [AntiAddictionService.Hashids_<T>.Char]) -> [Swift.Int64]
|
||||
@objc deinit
|
||||
}
|
||||
public struct User : Swift.Codable {
|
||||
public func encode(to encoder: Swift.Encoder) throws
|
||||
public init(from decoder: Swift.Decoder) throws
|
||||
}
|
||||
@objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers final public class AntiAddictionConfiguration : ObjectiveC.NSObject {
|
||||
@objc final public var enableLog: Swift.Bool
|
||||
@objc final public var needUploadUserAction: Swift.Bool
|
||||
final public var enableStandAloneAntiaddiction: Swift.Bool?
|
||||
@objc final public var isServerError: Swift.Bool
|
||||
@objc @discardableResult
|
||||
final public func getShouldStandAlone(resultBlock: ((Swift.Bool) -> ())? = nil) -> Swift.Bool
|
||||
@objc @discardableResult
|
||||
final public func getShouldUseLocalAuthIdentifier(resultBlock: ((Swift.Bool) -> ())? = nil) -> Swift.Bool
|
||||
@objc final public var gameIdentifier: Swift.String?
|
||||
@objc final public let bundleId: Swift.String
|
||||
@objc final public var useSdkOnlineTimeLimit: Swift.Bool
|
||||
@objc final public var useSdkPaymentLimit: Swift.Bool
|
||||
@objc final public var showSwitchAccount: Swift.Bool
|
||||
@objc final public var minorCommonDayTotalTime: Swift.Int
|
||||
@objc final public var minorHolidayTotalTime: Swift.Int
|
||||
@objc final public var guestTotalTime: Swift.Int
|
||||
@objc final public var firstAlertTipRemainTime: Swift.Int
|
||||
@objc final public var countdownAlertTipRemainTime: Swift.Int
|
||||
@objc final public var curfewHourStart: Swift.Int {
|
||||
@objc get
|
||||
@objc set
|
||||
}
|
||||
@objc final public var curfewHourEnd: Swift.Int {
|
||||
@objc get
|
||||
@objc set
|
||||
}
|
||||
@objc final public var nightStrictStart: Swift.String
|
||||
@objc final public var nightStrictEnd: Swift.String
|
||||
@objc final public var singlePaymentAmountLimitJunior: Swift.Int
|
||||
@objc final public var mouthTotalPaymentAmountLimitJunior: Swift.Int
|
||||
@objc final public var singlePaymentAmountLimitSenior: Swift.Int
|
||||
@objc final public var mouthTotalPaymentAmountLimitSenior: Swift.Int
|
||||
@objc final public var holiday: [Swift.String]
|
||||
@objc deinit
|
||||
}
|
||||
public struct PlayTimeCheckResult : Swift.Codable {
|
||||
public func encode(to encoder: Swift.Encoder) throws
|
||||
public init(from decoder: Swift.Decoder) throws
|
||||
}
|
||||
public enum TipType {
|
||||
case timeLimitAlert
|
||||
case payLimitAlert
|
||||
public static func == (a: AntiAddictionService.TipType, b: AntiAddictionService.TipType) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
public enum AlertType {
|
||||
case timeLimitAlert
|
||||
case payLimitAlert
|
||||
public static func == (a: AntiAddictionService.AlertType, b: AntiAddictionService.AlertType) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
public class SwiftTimer {
|
||||
public var isRunning: Swift.Bool
|
||||
final public let repeats: Swift.Bool
|
||||
public typealias SwiftTimerHandler = (AntiAddictionService.SwiftTimer) -> Swift.Void
|
||||
public init(interval: Dispatch.DispatchTimeInterval, repeats: Swift.Bool = false, leeway: Dispatch.DispatchTimeInterval = .seconds(0), queue: Dispatch.DispatchQueue = .main, handler: @escaping AntiAddictionService.SwiftTimer.SwiftTimerHandler)
|
||||
public static func repeaticTimer(interval: Dispatch.DispatchTimeInterval, leeway: Dispatch.DispatchTimeInterval = .seconds(0), queue: Dispatch.DispatchQueue = .main, handler: @escaping AntiAddictionService.SwiftTimer.SwiftTimerHandler) -> AntiAddictionService.SwiftTimer
|
||||
@objc deinit
|
||||
public func fire()
|
||||
public func start(fireOnceWhenStart: Swift.Bool = false)
|
||||
public func suspend()
|
||||
public func rescheduleRepeating(interval: Dispatch.DispatchTimeInterval)
|
||||
public func rescheduleHandler(handler: @escaping AntiAddictionService.SwiftTimer.SwiftTimerHandler)
|
||||
}
|
||||
extension AntiAddictionService.SwiftTimer {
|
||||
public static func debounce(interval: Dispatch.DispatchTimeInterval, identifier: Swift.String, queue: Dispatch.DispatchQueue = .main, handler: @escaping () -> Swift.Void)
|
||||
public static func throttle(interval: Dispatch.DispatchTimeInterval, identifier: Swift.String, queue: Dispatch.DispatchQueue = .main, handler: @escaping () -> Swift.Void)
|
||||
public static func cancelThrottlingTimer(identifier: Swift.String)
|
||||
}
|
||||
public class SwiftCountDownTimer {
|
||||
final public let originalTimes: Swift.Int
|
||||
public init(interval: Dispatch.DispatchTimeInterval, times: Swift.Int, queue: Dispatch.DispatchQueue = .main, handler: @escaping (AntiAddictionService.SwiftCountDownTimer, _ costTimes: Swift.Int, _ leftTimes: Swift.Int) -> Swift.Void)
|
||||
public func start()
|
||||
public func suspend()
|
||||
public func reCountDown()
|
||||
@objc deinit
|
||||
}
|
||||
extension Dispatch.DispatchTimeInterval {
|
||||
public static func fromSeconds(_ seconds: Swift.Double) -> Dispatch.DispatchTimeInterval
|
||||
}
|
||||
public enum ReachabilityError : Swift.Error {
|
||||
case failedToCreateWithAddress(Darwin.sockaddr, Swift.Int32)
|
||||
case failedToCreateWithHostname(Swift.String, Swift.Int32)
|
||||
case unableToSetCallback(Swift.Int32)
|
||||
case unableToSetDispatchQueue(Swift.Int32)
|
||||
case unableToGetFlags(Swift.Int32)
|
||||
}
|
||||
@available(*, unavailable, renamed: "Notification.Name.reachabilityChanged")
|
||||
public let ReachabilityChangedNotification: Foundation.NSNotification.Name
|
||||
extension Foundation.NSNotification.Name {
|
||||
public static let reachabilityChanged: Foundation.Notification.Name
|
||||
}
|
||||
public class Reachability {
|
||||
public typealias NetworkReachable = (AntiAddictionService.Reachability) -> ()
|
||||
public typealias NetworkUnreachable = (AntiAddictionService.Reachability) -> ()
|
||||
@available(*, unavailable, renamed: "Connection")
|
||||
public enum NetworkStatus : Swift.CustomStringConvertible {
|
||||
case notReachable, reachableViaWiFi, reachableViaWWAN
|
||||
public var description: Swift.String {
|
||||
get
|
||||
}
|
||||
public static func == (a: AntiAddictionService.Reachability.NetworkStatus, b: AntiAddictionService.Reachability.NetworkStatus) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
public enum Connection : Swift.CustomStringConvertible {
|
||||
@available(*, deprecated, renamed: "unavailable")
|
||||
case none
|
||||
case unavailable, wifi, cellular
|
||||
public var description: Swift.String {
|
||||
get
|
||||
}
|
||||
public static func == (a: AntiAddictionService.Reachability.Connection, b: AntiAddictionService.Reachability.Connection) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
public var whenReachable: AntiAddictionService.Reachability.NetworkReachable?
|
||||
public var whenUnreachable: AntiAddictionService.Reachability.NetworkUnreachable?
|
||||
@available(*, deprecated, renamed: "allowsCellularConnection")
|
||||
final public let reachableOnWWAN: Swift.Bool
|
||||
public var allowsCellularConnection: Swift.Bool
|
||||
public var notificationCenter: Foundation.NotificationCenter
|
||||
@available(*, deprecated, renamed: "connection.description")
|
||||
public var currentReachabilityString: Swift.String {
|
||||
get
|
||||
}
|
||||
@available(*, unavailable, renamed: "connection")
|
||||
public var currentReachabilityStatus: AntiAddictionService.Reachability.Connection {
|
||||
get
|
||||
}
|
||||
public var connection: AntiAddictionService.Reachability.Connection {
|
||||
get
|
||||
}
|
||||
required public init(reachabilityRef: SystemConfiguration.SCNetworkReachability, queueQoS: Dispatch.DispatchQoS = .default, targetQueue: Dispatch.DispatchQueue? = nil, notificationQueue: Dispatch.DispatchQueue? = .main)
|
||||
convenience public init(hostname: Swift.String, queueQoS: Dispatch.DispatchQoS = .default, targetQueue: Dispatch.DispatchQueue? = nil, notificationQueue: Dispatch.DispatchQueue? = .main) throws
|
||||
convenience public init(queueQoS: Dispatch.DispatchQoS = .default, targetQueue: Dispatch.DispatchQueue? = nil, notificationQueue: Dispatch.DispatchQueue? = .main) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension AntiAddictionService.Reachability {
|
||||
public func startNotifier() throws
|
||||
public func stopNotifier()
|
||||
@available(*, deprecated, message: "Please use `connection != .none`")
|
||||
public var isReachable: Swift.Bool {
|
||||
get
|
||||
}
|
||||
@available(*, deprecated, message: "Please use `connection == .cellular`")
|
||||
public var isReachableViaWWAN: Swift.Bool {
|
||||
get
|
||||
}
|
||||
@available(*, deprecated, message: "Please use `connection == .wifi`")
|
||||
public var isReachableViaWiFi: Swift.Bool {
|
||||
get
|
||||
}
|
||||
public var description: Swift.String {
|
||||
get
|
||||
}
|
||||
}
|
||||
@_hasMissingDesignatedInitializers public class DefaultsKey {
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class Key<ValueType> : AntiAddictionService.DefaultsKey where ValueType : Swift.Decodable, ValueType : Swift.Encodable {
|
||||
public init(_ key: Swift.String)
|
||||
@objc deinit
|
||||
}
|
||||
final public class Defaults {
|
||||
public static let shared: AntiAddictionService.Defaults
|
||||
public init(userDefaults: Foundation.UserDefaults = UserDefaults.standard)
|
||||
final public func clear<ValueType>(_ key: AntiAddictionService.Key<ValueType>) where ValueType : Swift.Decodable, ValueType : Swift.Encodable
|
||||
final public func has<ValueType>(_ key: AntiAddictionService.Key<ValueType>) -> Swift.Bool where ValueType : Swift.Decodable, ValueType : Swift.Encodable
|
||||
final public func get<ValueType>(for key: AntiAddictionService.Key<ValueType>) -> ValueType? where ValueType : Swift.Decodable, ValueType : Swift.Encodable
|
||||
final public func set<ValueType>(_ value: ValueType, for key: AntiAddictionService.Key<ValueType>) where ValueType : Swift.Decodable, ValueType : Swift.Encodable
|
||||
final public func removeAll(bundle: Foundation.Bundle = Bundle.main)
|
||||
@objc deinit
|
||||
}
|
||||
extension AntiAddictionService.Defaults {
|
||||
final public func get<ValueType>(for key: AntiAddictionService.Key<ValueType>) -> ValueType? where ValueType : Swift.Decodable, ValueType : Swift.Encodable, ValueType : Swift.RawRepresentable, ValueType.RawValue : Swift.Decodable, ValueType.RawValue : Swift.Encodable
|
||||
final public func set<ValueType>(_ value: ValueType, for key: AntiAddictionService.Key<ValueType>) where ValueType : Swift.Decodable, ValueType : Swift.Encodable, ValueType : Swift.RawRepresentable, ValueType.RawValue : Swift.Decodable, ValueType.RawValue : Swift.Encodable
|
||||
}
|
||||
extension AntiAddictionService.AntiAddictionServiceResult : Swift.Equatable {}
|
||||
extension AntiAddictionService.AntiAddictionServiceResult : Swift.Hashable {}
|
||||
extension AntiAddictionService.AntiAddictionServiceResult : Swift.RawRepresentable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAuthState : Swift.Equatable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAuthState : Swift.Hashable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAuthState : Swift.RawRepresentable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAgeLimit : Swift.Equatable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAgeLimit : Swift.Hashable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAgeLimit : Swift.RawRepresentable {}
|
||||
extension AntiAddictionService.TipType : Swift.Equatable {}
|
||||
extension AntiAddictionService.TipType : Swift.Hashable {}
|
||||
extension AntiAddictionService.AlertType : Swift.Equatable {}
|
||||
extension AntiAddictionService.AlertType : Swift.Hashable {}
|
||||
@available(*, unavailable, renamed: "Connection")
|
||||
extension AntiAddictionService.Reachability.NetworkStatus : Swift.Equatable {}
|
||||
@available(*, unavailable, renamed: "Connection")
|
||||
extension AntiAddictionService.Reachability.NetworkStatus : Swift.Hashable {}
|
||||
extension AntiAddictionService.Reachability.Connection : Swift.Equatable {}
|
||||
extension AntiAddictionService.Reachability.Connection : Swift.Hashable {}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f7f3a61738731415bbfa9fb2adc286cd
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: b1e80a77aaaa44c0fbdc6b5ea0b8d890
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,335 +0,0 @@
|
|||
// swift-interface-format-version: 1.0
|
||||
// swift-compiler-version: Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
|
||||
// swift-module-flags: -target arm64-apple-ios11.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name AntiAddictionService
|
||||
// swift-module-flags-ignorable: -enable-bare-slash-regex
|
||||
import AntiAddictionAsyncHttp
|
||||
@_exported import AntiAddictionService
|
||||
import CommonCrypto
|
||||
import CoreTelephony
|
||||
import Foundation
|
||||
import ObjectiveC
|
||||
import Swift
|
||||
import SystemConfiguration
|
||||
import TapCommonSDK
|
||||
import UIKit
|
||||
import _Concurrency
|
||||
import _StringProcessing
|
||||
extension Swift.Collection {
|
||||
public subscript(safe index: Self.Index) -> Self.Iterator.Element? {
|
||||
get
|
||||
}
|
||||
}
|
||||
@objc public enum AntiAddictionServiceResult : Swift.Int {
|
||||
case loginSuccess = 500
|
||||
case logout = 1000
|
||||
case switchAccount = 1001
|
||||
case periodRestrict = 1030
|
||||
case durationLimit = 1050
|
||||
case openAlertTip = 1095
|
||||
case payLimitNone = 1020
|
||||
case payLimitReachLimit = 1025
|
||||
public init?(rawValue: Swift.Int)
|
||||
public typealias RawValue = Swift.Int
|
||||
public var rawValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
@objc public enum AntiAddictionRealNameAuthState : Swift.Int, Swift.Codable {
|
||||
case success = 0
|
||||
case verifying = 1
|
||||
case fail = 2
|
||||
public init?(rawValue: Swift.Int)
|
||||
public typealias RawValue = Swift.Int
|
||||
public var rawValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
@objc public enum AntiAddictionRealNameAgeLimit : Swift.Int, Swift.Codable {
|
||||
case unrealname = -1
|
||||
case child = 0
|
||||
case teen = 8
|
||||
case young = 16
|
||||
case adult = 18
|
||||
public init?(rawValue: Swift.Int)
|
||||
public typealias RawValue = Swift.Int
|
||||
public var rawValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
@objc public protocol AntiAddictionServiceCallback : ObjectiveC.NSObjectProtocol {
|
||||
@objc func onCallback(code: Swift.Int, extra: Swift.String?)
|
||||
}
|
||||
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(AntiAddictionService) final public class AntiAddictionService : ObjectiveC.NSObject {
|
||||
@objc public static let LocalTokenString: Swift.String
|
||||
@objc public static var UseTestEnv: Swift.Bool
|
||||
@objc public static var configuration: AntiAddictionService.AntiAddictionConfiguration
|
||||
@objc final public class func getSDKVersion() -> Swift.String
|
||||
@objc final public class func enableLog(enable: Swift.Bool)
|
||||
@objc final public class func setFunctionConfig(_ useSdkPaymentLimit: Swift.Bool = true, _ useSdkOnlineTimeLimit: Swift.Bool = true)
|
||||
@objc final public class func setFunctionConfig(_ useSdkPaymentLimit: Swift.Bool = true, _ useSdkOnlineTimeLimit: Swift.Bool = true, _ showSwitchAccount: Swift.Bool = true)
|
||||
@objc final public class func getConfig(_ clinentId: Swift.String, completionHandler: ((_ suceess: Swift.Bool) -> Swift.Void)? = nil)
|
||||
@objc final public class func `init`(_ delegate: AntiAddictionService.AntiAddictionServiceCallback, gameIdentifier: Swift.String? = nil)
|
||||
@objc final public class func fastRealName(clientId: Swift.String, userId: Swift.String, tapToken: Swift.String, completion: @escaping (AntiAddictionService.AntiAddictionRealNameAuthState, Swift.String, AntiAddictionService.AntiAddictionRealNameAgeLimit) -> (), failureHandler: @escaping (_ errorMessage: Foundation.NSError) -> ())
|
||||
@objc final public class func login(userToken: Swift.String, accessToken: Swift.String, ageLimit: AntiAddictionService.AntiAddictionRealNameAgeLimit)
|
||||
@objc final public class func enterGame()
|
||||
@objc final public class func enterGame(isActive: Swift.Bool)
|
||||
@objc final public class func leaveGame()
|
||||
@objc final public class func logout()
|
||||
@objc final public class func switchAccount()
|
||||
@objc final public class func getCurrentUserAgeLimite() -> Swift.Int
|
||||
@objc final public class func currentToken() -> Swift.String
|
||||
@objc final public class func currentUserRemainingTime() -> Swift.Int
|
||||
@objc final public class func isStandAlone() -> Swift.Bool
|
||||
@objc final public class func getchildNightStrictRemainDesc() -> Swift.String
|
||||
@objc final public class func checkCurrentPayLimit(_ amount: Swift.Int) -> Swift.Int
|
||||
@objc final public class func checkPayLimit(_ amount: Swift.Int, callBack: ((_ status: Swift.Bool, _ title: Swift.String, _ description: Swift.String) -> Swift.Void)? = nil, failureHandler: ((_ message: Swift.String) -> Swift.Void)? = nil)
|
||||
@objc final public class func submitPayResult(_ amount: Swift.Int, _ callBack: ((_ success: Swift.Bool) -> Swift.Void)? = nil, _ failureHandler: ((_ message: Swift.String) -> Swift.Void)? = nil)
|
||||
@objc final public class func isHoliday() -> Swift.Bool
|
||||
@objc final public class func generateIDCode() -> Swift.String
|
||||
@objc final public class func startTimeStatic()
|
||||
@objc final public class func stopTimeStatic()
|
||||
@objc final public class func realNameAuth(clientId: Swift.String, userId: Swift.String, code: Swift.String, name: Swift.String, idCard: Swift.String, isFallBack: Swift.Bool, completion: @escaping (AntiAddictionService.AntiAddictionRealNameAuthState, Swift.String, AntiAddictionService.AntiAddictionRealNameAgeLimit) -> (), failureHandler: @escaping (_ errorMessage: Swift.String) -> ())
|
||||
@objc final public class func checkRealnameState(clientId: Swift.String, userId: Swift.String, completion: @escaping (_ identifyState: AntiAddictionService.AntiAddictionRealNameAuthState, _ antiAddictionToken: Swift.String, _ ageLimit: AntiAddictionService.AntiAddictionRealNameAgeLimit) -> (), failureHandler: @escaping (_ errorMessage: Swift.String) -> ())
|
||||
@objc final public class func checkTapTapRealnameState(clientId: Swift.String, userId: Swift.String, code: Swift.String, completion: @escaping (_ identifyState: AntiAddictionService.AntiAddictionRealNameAuthState, _ antiAddictionToken: Swift.String, _ ageLimit: AntiAddictionService.AntiAddictionRealNameAgeLimit) -> (), failureHandler: @escaping (_ errorMessage: Swift.String) -> ())
|
||||
@objc final public class func checkPlayTimeResult(handler: @escaping (_ result: Swift.String?) -> Swift.Void) -> Swift.String?
|
||||
@objc deinit
|
||||
}
|
||||
public struct HashidsOptions {
|
||||
}
|
||||
public protocol HashidsGenerator {
|
||||
associatedtype Char
|
||||
func encode(_ value: Swift.Int64...) -> Swift.String?
|
||||
func encode(_ values: [Swift.Int64]) -> Swift.String?
|
||||
func encode(_ value: Swift.Int...) -> Swift.String?
|
||||
func encode(_ values: [Swift.Int]) -> Swift.String?
|
||||
func decode(_ value: Swift.String!) -> [Swift.Int]
|
||||
func decode(_ value: [Self.Char]) -> [Swift.Int]
|
||||
func decode64(_ value: Swift.String) -> [Swift.Int64]
|
||||
func decode64(_ value: [Self.Char]) -> [Swift.Int64]
|
||||
}
|
||||
public typealias Hashids = AntiAddictionService.Hashids_<Swift.UInt32>
|
||||
open class Hashids_<T> : AntiAddictionService.HashidsGenerator where T : Swift.UnsignedInteger {
|
||||
public typealias Char = T
|
||||
public init(salt: Swift.String!, minHashLength: Swift.UInt = 0, alphabet: Swift.String? = nil)
|
||||
open func encode(_ value: Swift.Int64...) -> Swift.String?
|
||||
open func encode(_ values: [Swift.Int64]) -> Swift.String?
|
||||
open func encode(_ value: Swift.Int...) -> Swift.String?
|
||||
open func encode(_ values: [Swift.Int]) -> Swift.String?
|
||||
open func decode(_ value: Swift.String!) -> [Swift.Int]
|
||||
open func decode(_ value: [AntiAddictionService.Hashids_<T>.Char]) -> [Swift.Int]
|
||||
open func decode64(_ value: Swift.String) -> [Swift.Int64]
|
||||
open func decode64(_ value: [AntiAddictionService.Hashids_<T>.Char]) -> [Swift.Int64]
|
||||
@objc deinit
|
||||
}
|
||||
public struct User : Swift.Codable {
|
||||
public func encode(to encoder: Swift.Encoder) throws
|
||||
public init(from decoder: Swift.Decoder) throws
|
||||
}
|
||||
@objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers final public class AntiAddictionConfiguration : ObjectiveC.NSObject {
|
||||
@objc final public var enableLog: Swift.Bool
|
||||
@objc final public var needUploadUserAction: Swift.Bool
|
||||
final public var enableStandAloneAntiaddiction: Swift.Bool?
|
||||
@objc final public var isServerError: Swift.Bool
|
||||
@objc @discardableResult
|
||||
final public func getShouldStandAlone(resultBlock: ((Swift.Bool) -> ())? = nil) -> Swift.Bool
|
||||
@objc @discardableResult
|
||||
final public func getShouldUseLocalAuthIdentifier(resultBlock: ((Swift.Bool) -> ())? = nil) -> Swift.Bool
|
||||
@objc final public var gameIdentifier: Swift.String?
|
||||
@objc final public let bundleId: Swift.String
|
||||
@objc final public var useSdkOnlineTimeLimit: Swift.Bool
|
||||
@objc final public var useSdkPaymentLimit: Swift.Bool
|
||||
@objc final public var showSwitchAccount: Swift.Bool
|
||||
@objc final public var minorCommonDayTotalTime: Swift.Int
|
||||
@objc final public var minorHolidayTotalTime: Swift.Int
|
||||
@objc final public var guestTotalTime: Swift.Int
|
||||
@objc final public var firstAlertTipRemainTime: Swift.Int
|
||||
@objc final public var countdownAlertTipRemainTime: Swift.Int
|
||||
@objc final public var curfewHourStart: Swift.Int {
|
||||
@objc get
|
||||
@objc set
|
||||
}
|
||||
@objc final public var curfewHourEnd: Swift.Int {
|
||||
@objc get
|
||||
@objc set
|
||||
}
|
||||
@objc final public var nightStrictStart: Swift.String
|
||||
@objc final public var nightStrictEnd: Swift.String
|
||||
@objc final public var singlePaymentAmountLimitJunior: Swift.Int
|
||||
@objc final public var mouthTotalPaymentAmountLimitJunior: Swift.Int
|
||||
@objc final public var singlePaymentAmountLimitSenior: Swift.Int
|
||||
@objc final public var mouthTotalPaymentAmountLimitSenior: Swift.Int
|
||||
@objc final public var holiday: [Swift.String]
|
||||
@objc deinit
|
||||
}
|
||||
public struct PlayTimeCheckResult : Swift.Codable {
|
||||
public func encode(to encoder: Swift.Encoder) throws
|
||||
public init(from decoder: Swift.Decoder) throws
|
||||
}
|
||||
public enum TipType {
|
||||
case timeLimitAlert
|
||||
case payLimitAlert
|
||||
public static func == (a: AntiAddictionService.TipType, b: AntiAddictionService.TipType) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
public enum AlertType {
|
||||
case timeLimitAlert
|
||||
case payLimitAlert
|
||||
public static func == (a: AntiAddictionService.AlertType, b: AntiAddictionService.AlertType) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
public class SwiftTimer {
|
||||
public var isRunning: Swift.Bool
|
||||
final public let repeats: Swift.Bool
|
||||
public typealias SwiftTimerHandler = (AntiAddictionService.SwiftTimer) -> Swift.Void
|
||||
public init(interval: Dispatch.DispatchTimeInterval, repeats: Swift.Bool = false, leeway: Dispatch.DispatchTimeInterval = .seconds(0), queue: Dispatch.DispatchQueue = .main, handler: @escaping AntiAddictionService.SwiftTimer.SwiftTimerHandler)
|
||||
public static func repeaticTimer(interval: Dispatch.DispatchTimeInterval, leeway: Dispatch.DispatchTimeInterval = .seconds(0), queue: Dispatch.DispatchQueue = .main, handler: @escaping AntiAddictionService.SwiftTimer.SwiftTimerHandler) -> AntiAddictionService.SwiftTimer
|
||||
@objc deinit
|
||||
public func fire()
|
||||
public func start(fireOnceWhenStart: Swift.Bool = false)
|
||||
public func suspend()
|
||||
public func rescheduleRepeating(interval: Dispatch.DispatchTimeInterval)
|
||||
public func rescheduleHandler(handler: @escaping AntiAddictionService.SwiftTimer.SwiftTimerHandler)
|
||||
}
|
||||
extension AntiAddictionService.SwiftTimer {
|
||||
public static func debounce(interval: Dispatch.DispatchTimeInterval, identifier: Swift.String, queue: Dispatch.DispatchQueue = .main, handler: @escaping () -> Swift.Void)
|
||||
public static func throttle(interval: Dispatch.DispatchTimeInterval, identifier: Swift.String, queue: Dispatch.DispatchQueue = .main, handler: @escaping () -> Swift.Void)
|
||||
public static func cancelThrottlingTimer(identifier: Swift.String)
|
||||
}
|
||||
public class SwiftCountDownTimer {
|
||||
final public let originalTimes: Swift.Int
|
||||
public init(interval: Dispatch.DispatchTimeInterval, times: Swift.Int, queue: Dispatch.DispatchQueue = .main, handler: @escaping (AntiAddictionService.SwiftCountDownTimer, _ costTimes: Swift.Int, _ leftTimes: Swift.Int) -> Swift.Void)
|
||||
public func start()
|
||||
public func suspend()
|
||||
public func reCountDown()
|
||||
@objc deinit
|
||||
}
|
||||
extension Dispatch.DispatchTimeInterval {
|
||||
public static func fromSeconds(_ seconds: Swift.Double) -> Dispatch.DispatchTimeInterval
|
||||
}
|
||||
public enum ReachabilityError : Swift.Error {
|
||||
case failedToCreateWithAddress(Darwin.sockaddr, Swift.Int32)
|
||||
case failedToCreateWithHostname(Swift.String, Swift.Int32)
|
||||
case unableToSetCallback(Swift.Int32)
|
||||
case unableToSetDispatchQueue(Swift.Int32)
|
||||
case unableToGetFlags(Swift.Int32)
|
||||
}
|
||||
@available(*, unavailable, renamed: "Notification.Name.reachabilityChanged")
|
||||
public let ReachabilityChangedNotification: Foundation.NSNotification.Name
|
||||
extension Foundation.NSNotification.Name {
|
||||
public static let reachabilityChanged: Foundation.Notification.Name
|
||||
}
|
||||
public class Reachability {
|
||||
public typealias NetworkReachable = (AntiAddictionService.Reachability) -> ()
|
||||
public typealias NetworkUnreachable = (AntiAddictionService.Reachability) -> ()
|
||||
@available(*, unavailable, renamed: "Connection")
|
||||
public enum NetworkStatus : Swift.CustomStringConvertible {
|
||||
case notReachable, reachableViaWiFi, reachableViaWWAN
|
||||
public var description: Swift.String {
|
||||
get
|
||||
}
|
||||
public static func == (a: AntiAddictionService.Reachability.NetworkStatus, b: AntiAddictionService.Reachability.NetworkStatus) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
public enum Connection : Swift.CustomStringConvertible {
|
||||
@available(*, deprecated, renamed: "unavailable")
|
||||
case none
|
||||
case unavailable, wifi, cellular
|
||||
public var description: Swift.String {
|
||||
get
|
||||
}
|
||||
public static func == (a: AntiAddictionService.Reachability.Connection, b: AntiAddictionService.Reachability.Connection) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
public var whenReachable: AntiAddictionService.Reachability.NetworkReachable?
|
||||
public var whenUnreachable: AntiAddictionService.Reachability.NetworkUnreachable?
|
||||
@available(*, deprecated, renamed: "allowsCellularConnection")
|
||||
final public let reachableOnWWAN: Swift.Bool
|
||||
public var allowsCellularConnection: Swift.Bool
|
||||
public var notificationCenter: Foundation.NotificationCenter
|
||||
@available(*, deprecated, renamed: "connection.description")
|
||||
public var currentReachabilityString: Swift.String {
|
||||
get
|
||||
}
|
||||
@available(*, unavailable, renamed: "connection")
|
||||
public var currentReachabilityStatus: AntiAddictionService.Reachability.Connection {
|
||||
get
|
||||
}
|
||||
public var connection: AntiAddictionService.Reachability.Connection {
|
||||
get
|
||||
}
|
||||
required public init(reachabilityRef: SystemConfiguration.SCNetworkReachability, queueQoS: Dispatch.DispatchQoS = .default, targetQueue: Dispatch.DispatchQueue? = nil, notificationQueue: Dispatch.DispatchQueue? = .main)
|
||||
convenience public init(hostname: Swift.String, queueQoS: Dispatch.DispatchQoS = .default, targetQueue: Dispatch.DispatchQueue? = nil, notificationQueue: Dispatch.DispatchQueue? = .main) throws
|
||||
convenience public init(queueQoS: Dispatch.DispatchQoS = .default, targetQueue: Dispatch.DispatchQueue? = nil, notificationQueue: Dispatch.DispatchQueue? = .main) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension AntiAddictionService.Reachability {
|
||||
public func startNotifier() throws
|
||||
public func stopNotifier()
|
||||
@available(*, deprecated, message: "Please use `connection != .none`")
|
||||
public var isReachable: Swift.Bool {
|
||||
get
|
||||
}
|
||||
@available(*, deprecated, message: "Please use `connection == .cellular`")
|
||||
public var isReachableViaWWAN: Swift.Bool {
|
||||
get
|
||||
}
|
||||
@available(*, deprecated, message: "Please use `connection == .wifi`")
|
||||
public var isReachableViaWiFi: Swift.Bool {
|
||||
get
|
||||
}
|
||||
public var description: Swift.String {
|
||||
get
|
||||
}
|
||||
}
|
||||
@_hasMissingDesignatedInitializers public class DefaultsKey {
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class Key<ValueType> : AntiAddictionService.DefaultsKey where ValueType : Swift.Decodable, ValueType : Swift.Encodable {
|
||||
public init(_ key: Swift.String)
|
||||
@objc deinit
|
||||
}
|
||||
final public class Defaults {
|
||||
public static let shared: AntiAddictionService.Defaults
|
||||
public init(userDefaults: Foundation.UserDefaults = UserDefaults.standard)
|
||||
final public func clear<ValueType>(_ key: AntiAddictionService.Key<ValueType>) where ValueType : Swift.Decodable, ValueType : Swift.Encodable
|
||||
final public func has<ValueType>(_ key: AntiAddictionService.Key<ValueType>) -> Swift.Bool where ValueType : Swift.Decodable, ValueType : Swift.Encodable
|
||||
final public func get<ValueType>(for key: AntiAddictionService.Key<ValueType>) -> ValueType? where ValueType : Swift.Decodable, ValueType : Swift.Encodable
|
||||
final public func set<ValueType>(_ value: ValueType, for key: AntiAddictionService.Key<ValueType>) where ValueType : Swift.Decodable, ValueType : Swift.Encodable
|
||||
final public func removeAll(bundle: Foundation.Bundle = Bundle.main)
|
||||
@objc deinit
|
||||
}
|
||||
extension AntiAddictionService.Defaults {
|
||||
final public func get<ValueType>(for key: AntiAddictionService.Key<ValueType>) -> ValueType? where ValueType : Swift.Decodable, ValueType : Swift.Encodable, ValueType : Swift.RawRepresentable, ValueType.RawValue : Swift.Decodable, ValueType.RawValue : Swift.Encodable
|
||||
final public func set<ValueType>(_ value: ValueType, for key: AntiAddictionService.Key<ValueType>) where ValueType : Swift.Decodable, ValueType : Swift.Encodable, ValueType : Swift.RawRepresentable, ValueType.RawValue : Swift.Decodable, ValueType.RawValue : Swift.Encodable
|
||||
}
|
||||
extension AntiAddictionService.AntiAddictionServiceResult : Swift.Equatable {}
|
||||
extension AntiAddictionService.AntiAddictionServiceResult : Swift.Hashable {}
|
||||
extension AntiAddictionService.AntiAddictionServiceResult : Swift.RawRepresentable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAuthState : Swift.Equatable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAuthState : Swift.Hashable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAuthState : Swift.RawRepresentable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAgeLimit : Swift.Equatable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAgeLimit : Swift.Hashable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAgeLimit : Swift.RawRepresentable {}
|
||||
extension AntiAddictionService.TipType : Swift.Equatable {}
|
||||
extension AntiAddictionService.TipType : Swift.Hashable {}
|
||||
extension AntiAddictionService.AlertType : Swift.Equatable {}
|
||||
extension AntiAddictionService.AlertType : Swift.Hashable {}
|
||||
@available(*, unavailable, renamed: "Connection")
|
||||
extension AntiAddictionService.Reachability.NetworkStatus : Swift.Equatable {}
|
||||
@available(*, unavailable, renamed: "Connection")
|
||||
extension AntiAddictionService.Reachability.NetworkStatus : Swift.Hashable {}
|
||||
extension AntiAddictionService.Reachability.Connection : Swift.Equatable {}
|
||||
extension AntiAddictionService.Reachability.Connection : Swift.Hashable {}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: d4b5964660523483b993369d4a9125c8
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8a12e5df2a2c140f88b5ef52a354b336
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: d75b31cf6cf5b4410a140deaa755f6de
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,335 +0,0 @@
|
|||
// swift-interface-format-version: 1.0
|
||||
// swift-compiler-version: Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
|
||||
// swift-module-flags: -target arm64-apple-ios11.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name AntiAddictionService
|
||||
// swift-module-flags-ignorable: -enable-bare-slash-regex
|
||||
import AntiAddictionAsyncHttp
|
||||
@_exported import AntiAddictionService
|
||||
import CommonCrypto
|
||||
import CoreTelephony
|
||||
import Foundation
|
||||
import ObjectiveC
|
||||
import Swift
|
||||
import SystemConfiguration
|
||||
import TapCommonSDK
|
||||
import UIKit
|
||||
import _Concurrency
|
||||
import _StringProcessing
|
||||
extension Swift.Collection {
|
||||
public subscript(safe index: Self.Index) -> Self.Iterator.Element? {
|
||||
get
|
||||
}
|
||||
}
|
||||
@objc public enum AntiAddictionServiceResult : Swift.Int {
|
||||
case loginSuccess = 500
|
||||
case logout = 1000
|
||||
case switchAccount = 1001
|
||||
case periodRestrict = 1030
|
||||
case durationLimit = 1050
|
||||
case openAlertTip = 1095
|
||||
case payLimitNone = 1020
|
||||
case payLimitReachLimit = 1025
|
||||
public init?(rawValue: Swift.Int)
|
||||
public typealias RawValue = Swift.Int
|
||||
public var rawValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
@objc public enum AntiAddictionRealNameAuthState : Swift.Int, Swift.Codable {
|
||||
case success = 0
|
||||
case verifying = 1
|
||||
case fail = 2
|
||||
public init?(rawValue: Swift.Int)
|
||||
public typealias RawValue = Swift.Int
|
||||
public var rawValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
@objc public enum AntiAddictionRealNameAgeLimit : Swift.Int, Swift.Codable {
|
||||
case unrealname = -1
|
||||
case child = 0
|
||||
case teen = 8
|
||||
case young = 16
|
||||
case adult = 18
|
||||
public init?(rawValue: Swift.Int)
|
||||
public typealias RawValue = Swift.Int
|
||||
public var rawValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
@objc public protocol AntiAddictionServiceCallback : ObjectiveC.NSObjectProtocol {
|
||||
@objc func onCallback(code: Swift.Int, extra: Swift.String?)
|
||||
}
|
||||
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(AntiAddictionService) final public class AntiAddictionService : ObjectiveC.NSObject {
|
||||
@objc public static let LocalTokenString: Swift.String
|
||||
@objc public static var UseTestEnv: Swift.Bool
|
||||
@objc public static var configuration: AntiAddictionService.AntiAddictionConfiguration
|
||||
@objc final public class func getSDKVersion() -> Swift.String
|
||||
@objc final public class func enableLog(enable: Swift.Bool)
|
||||
@objc final public class func setFunctionConfig(_ useSdkPaymentLimit: Swift.Bool = true, _ useSdkOnlineTimeLimit: Swift.Bool = true)
|
||||
@objc final public class func setFunctionConfig(_ useSdkPaymentLimit: Swift.Bool = true, _ useSdkOnlineTimeLimit: Swift.Bool = true, _ showSwitchAccount: Swift.Bool = true)
|
||||
@objc final public class func getConfig(_ clinentId: Swift.String, completionHandler: ((_ suceess: Swift.Bool) -> Swift.Void)? = nil)
|
||||
@objc final public class func `init`(_ delegate: AntiAddictionService.AntiAddictionServiceCallback, gameIdentifier: Swift.String? = nil)
|
||||
@objc final public class func fastRealName(clientId: Swift.String, userId: Swift.String, tapToken: Swift.String, completion: @escaping (AntiAddictionService.AntiAddictionRealNameAuthState, Swift.String, AntiAddictionService.AntiAddictionRealNameAgeLimit) -> (), failureHandler: @escaping (_ errorMessage: Foundation.NSError) -> ())
|
||||
@objc final public class func login(userToken: Swift.String, accessToken: Swift.String, ageLimit: AntiAddictionService.AntiAddictionRealNameAgeLimit)
|
||||
@objc final public class func enterGame()
|
||||
@objc final public class func enterGame(isActive: Swift.Bool)
|
||||
@objc final public class func leaveGame()
|
||||
@objc final public class func logout()
|
||||
@objc final public class func switchAccount()
|
||||
@objc final public class func getCurrentUserAgeLimite() -> Swift.Int
|
||||
@objc final public class func currentToken() -> Swift.String
|
||||
@objc final public class func currentUserRemainingTime() -> Swift.Int
|
||||
@objc final public class func isStandAlone() -> Swift.Bool
|
||||
@objc final public class func getchildNightStrictRemainDesc() -> Swift.String
|
||||
@objc final public class func checkCurrentPayLimit(_ amount: Swift.Int) -> Swift.Int
|
||||
@objc final public class func checkPayLimit(_ amount: Swift.Int, callBack: ((_ status: Swift.Bool, _ title: Swift.String, _ description: Swift.String) -> Swift.Void)? = nil, failureHandler: ((_ message: Swift.String) -> Swift.Void)? = nil)
|
||||
@objc final public class func submitPayResult(_ amount: Swift.Int, _ callBack: ((_ success: Swift.Bool) -> Swift.Void)? = nil, _ failureHandler: ((_ message: Swift.String) -> Swift.Void)? = nil)
|
||||
@objc final public class func isHoliday() -> Swift.Bool
|
||||
@objc final public class func generateIDCode() -> Swift.String
|
||||
@objc final public class func startTimeStatic()
|
||||
@objc final public class func stopTimeStatic()
|
||||
@objc final public class func realNameAuth(clientId: Swift.String, userId: Swift.String, code: Swift.String, name: Swift.String, idCard: Swift.String, isFallBack: Swift.Bool, completion: @escaping (AntiAddictionService.AntiAddictionRealNameAuthState, Swift.String, AntiAddictionService.AntiAddictionRealNameAgeLimit) -> (), failureHandler: @escaping (_ errorMessage: Swift.String) -> ())
|
||||
@objc final public class func checkRealnameState(clientId: Swift.String, userId: Swift.String, completion: @escaping (_ identifyState: AntiAddictionService.AntiAddictionRealNameAuthState, _ antiAddictionToken: Swift.String, _ ageLimit: AntiAddictionService.AntiAddictionRealNameAgeLimit) -> (), failureHandler: @escaping (_ errorMessage: Swift.String) -> ())
|
||||
@objc final public class func checkTapTapRealnameState(clientId: Swift.String, userId: Swift.String, code: Swift.String, completion: @escaping (_ identifyState: AntiAddictionService.AntiAddictionRealNameAuthState, _ antiAddictionToken: Swift.String, _ ageLimit: AntiAddictionService.AntiAddictionRealNameAgeLimit) -> (), failureHandler: @escaping (_ errorMessage: Swift.String) -> ())
|
||||
@objc final public class func checkPlayTimeResult(handler: @escaping (_ result: Swift.String?) -> Swift.Void) -> Swift.String?
|
||||
@objc deinit
|
||||
}
|
||||
public struct HashidsOptions {
|
||||
}
|
||||
public protocol HashidsGenerator {
|
||||
associatedtype Char
|
||||
func encode(_ value: Swift.Int64...) -> Swift.String?
|
||||
func encode(_ values: [Swift.Int64]) -> Swift.String?
|
||||
func encode(_ value: Swift.Int...) -> Swift.String?
|
||||
func encode(_ values: [Swift.Int]) -> Swift.String?
|
||||
func decode(_ value: Swift.String!) -> [Swift.Int]
|
||||
func decode(_ value: [Self.Char]) -> [Swift.Int]
|
||||
func decode64(_ value: Swift.String) -> [Swift.Int64]
|
||||
func decode64(_ value: [Self.Char]) -> [Swift.Int64]
|
||||
}
|
||||
public typealias Hashids = AntiAddictionService.Hashids_<Swift.UInt32>
|
||||
open class Hashids_<T> : AntiAddictionService.HashidsGenerator where T : Swift.UnsignedInteger {
|
||||
public typealias Char = T
|
||||
public init(salt: Swift.String!, minHashLength: Swift.UInt = 0, alphabet: Swift.String? = nil)
|
||||
open func encode(_ value: Swift.Int64...) -> Swift.String?
|
||||
open func encode(_ values: [Swift.Int64]) -> Swift.String?
|
||||
open func encode(_ value: Swift.Int...) -> Swift.String?
|
||||
open func encode(_ values: [Swift.Int]) -> Swift.String?
|
||||
open func decode(_ value: Swift.String!) -> [Swift.Int]
|
||||
open func decode(_ value: [AntiAddictionService.Hashids_<T>.Char]) -> [Swift.Int]
|
||||
open func decode64(_ value: Swift.String) -> [Swift.Int64]
|
||||
open func decode64(_ value: [AntiAddictionService.Hashids_<T>.Char]) -> [Swift.Int64]
|
||||
@objc deinit
|
||||
}
|
||||
public struct User : Swift.Codable {
|
||||
public func encode(to encoder: Swift.Encoder) throws
|
||||
public init(from decoder: Swift.Decoder) throws
|
||||
}
|
||||
@objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers final public class AntiAddictionConfiguration : ObjectiveC.NSObject {
|
||||
@objc final public var enableLog: Swift.Bool
|
||||
@objc final public var needUploadUserAction: Swift.Bool
|
||||
final public var enableStandAloneAntiaddiction: Swift.Bool?
|
||||
@objc final public var isServerError: Swift.Bool
|
||||
@objc @discardableResult
|
||||
final public func getShouldStandAlone(resultBlock: ((Swift.Bool) -> ())? = nil) -> Swift.Bool
|
||||
@objc @discardableResult
|
||||
final public func getShouldUseLocalAuthIdentifier(resultBlock: ((Swift.Bool) -> ())? = nil) -> Swift.Bool
|
||||
@objc final public var gameIdentifier: Swift.String?
|
||||
@objc final public let bundleId: Swift.String
|
||||
@objc final public var useSdkOnlineTimeLimit: Swift.Bool
|
||||
@objc final public var useSdkPaymentLimit: Swift.Bool
|
||||
@objc final public var showSwitchAccount: Swift.Bool
|
||||
@objc final public var minorCommonDayTotalTime: Swift.Int
|
||||
@objc final public var minorHolidayTotalTime: Swift.Int
|
||||
@objc final public var guestTotalTime: Swift.Int
|
||||
@objc final public var firstAlertTipRemainTime: Swift.Int
|
||||
@objc final public var countdownAlertTipRemainTime: Swift.Int
|
||||
@objc final public var curfewHourStart: Swift.Int {
|
||||
@objc get
|
||||
@objc set
|
||||
}
|
||||
@objc final public var curfewHourEnd: Swift.Int {
|
||||
@objc get
|
||||
@objc set
|
||||
}
|
||||
@objc final public var nightStrictStart: Swift.String
|
||||
@objc final public var nightStrictEnd: Swift.String
|
||||
@objc final public var singlePaymentAmountLimitJunior: Swift.Int
|
||||
@objc final public var mouthTotalPaymentAmountLimitJunior: Swift.Int
|
||||
@objc final public var singlePaymentAmountLimitSenior: Swift.Int
|
||||
@objc final public var mouthTotalPaymentAmountLimitSenior: Swift.Int
|
||||
@objc final public var holiday: [Swift.String]
|
||||
@objc deinit
|
||||
}
|
||||
public struct PlayTimeCheckResult : Swift.Codable {
|
||||
public func encode(to encoder: Swift.Encoder) throws
|
||||
public init(from decoder: Swift.Decoder) throws
|
||||
}
|
||||
public enum TipType {
|
||||
case timeLimitAlert
|
||||
case payLimitAlert
|
||||
public static func == (a: AntiAddictionService.TipType, b: AntiAddictionService.TipType) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
public enum AlertType {
|
||||
case timeLimitAlert
|
||||
case payLimitAlert
|
||||
public static func == (a: AntiAddictionService.AlertType, b: AntiAddictionService.AlertType) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
public class SwiftTimer {
|
||||
public var isRunning: Swift.Bool
|
||||
final public let repeats: Swift.Bool
|
||||
public typealias SwiftTimerHandler = (AntiAddictionService.SwiftTimer) -> Swift.Void
|
||||
public init(interval: Dispatch.DispatchTimeInterval, repeats: Swift.Bool = false, leeway: Dispatch.DispatchTimeInterval = .seconds(0), queue: Dispatch.DispatchQueue = .main, handler: @escaping AntiAddictionService.SwiftTimer.SwiftTimerHandler)
|
||||
public static func repeaticTimer(interval: Dispatch.DispatchTimeInterval, leeway: Dispatch.DispatchTimeInterval = .seconds(0), queue: Dispatch.DispatchQueue = .main, handler: @escaping AntiAddictionService.SwiftTimer.SwiftTimerHandler) -> AntiAddictionService.SwiftTimer
|
||||
@objc deinit
|
||||
public func fire()
|
||||
public func start(fireOnceWhenStart: Swift.Bool = false)
|
||||
public func suspend()
|
||||
public func rescheduleRepeating(interval: Dispatch.DispatchTimeInterval)
|
||||
public func rescheduleHandler(handler: @escaping AntiAddictionService.SwiftTimer.SwiftTimerHandler)
|
||||
}
|
||||
extension AntiAddictionService.SwiftTimer {
|
||||
public static func debounce(interval: Dispatch.DispatchTimeInterval, identifier: Swift.String, queue: Dispatch.DispatchQueue = .main, handler: @escaping () -> Swift.Void)
|
||||
public static func throttle(interval: Dispatch.DispatchTimeInterval, identifier: Swift.String, queue: Dispatch.DispatchQueue = .main, handler: @escaping () -> Swift.Void)
|
||||
public static func cancelThrottlingTimer(identifier: Swift.String)
|
||||
}
|
||||
public class SwiftCountDownTimer {
|
||||
final public let originalTimes: Swift.Int
|
||||
public init(interval: Dispatch.DispatchTimeInterval, times: Swift.Int, queue: Dispatch.DispatchQueue = .main, handler: @escaping (AntiAddictionService.SwiftCountDownTimer, _ costTimes: Swift.Int, _ leftTimes: Swift.Int) -> Swift.Void)
|
||||
public func start()
|
||||
public func suspend()
|
||||
public func reCountDown()
|
||||
@objc deinit
|
||||
}
|
||||
extension Dispatch.DispatchTimeInterval {
|
||||
public static func fromSeconds(_ seconds: Swift.Double) -> Dispatch.DispatchTimeInterval
|
||||
}
|
||||
public enum ReachabilityError : Swift.Error {
|
||||
case failedToCreateWithAddress(Darwin.sockaddr, Swift.Int32)
|
||||
case failedToCreateWithHostname(Swift.String, Swift.Int32)
|
||||
case unableToSetCallback(Swift.Int32)
|
||||
case unableToSetDispatchQueue(Swift.Int32)
|
||||
case unableToGetFlags(Swift.Int32)
|
||||
}
|
||||
@available(*, unavailable, renamed: "Notification.Name.reachabilityChanged")
|
||||
public let ReachabilityChangedNotification: Foundation.NSNotification.Name
|
||||
extension Foundation.NSNotification.Name {
|
||||
public static let reachabilityChanged: Foundation.Notification.Name
|
||||
}
|
||||
public class Reachability {
|
||||
public typealias NetworkReachable = (AntiAddictionService.Reachability) -> ()
|
||||
public typealias NetworkUnreachable = (AntiAddictionService.Reachability) -> ()
|
||||
@available(*, unavailable, renamed: "Connection")
|
||||
public enum NetworkStatus : Swift.CustomStringConvertible {
|
||||
case notReachable, reachableViaWiFi, reachableViaWWAN
|
||||
public var description: Swift.String {
|
||||
get
|
||||
}
|
||||
public static func == (a: AntiAddictionService.Reachability.NetworkStatus, b: AntiAddictionService.Reachability.NetworkStatus) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
public enum Connection : Swift.CustomStringConvertible {
|
||||
@available(*, deprecated, renamed: "unavailable")
|
||||
case none
|
||||
case unavailable, wifi, cellular
|
||||
public var description: Swift.String {
|
||||
get
|
||||
}
|
||||
public static func == (a: AntiAddictionService.Reachability.Connection, b: AntiAddictionService.Reachability.Connection) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
public var whenReachable: AntiAddictionService.Reachability.NetworkReachable?
|
||||
public var whenUnreachable: AntiAddictionService.Reachability.NetworkUnreachable?
|
||||
@available(*, deprecated, renamed: "allowsCellularConnection")
|
||||
final public let reachableOnWWAN: Swift.Bool
|
||||
public var allowsCellularConnection: Swift.Bool
|
||||
public var notificationCenter: Foundation.NotificationCenter
|
||||
@available(*, deprecated, renamed: "connection.description")
|
||||
public var currentReachabilityString: Swift.String {
|
||||
get
|
||||
}
|
||||
@available(*, unavailable, renamed: "connection")
|
||||
public var currentReachabilityStatus: AntiAddictionService.Reachability.Connection {
|
||||
get
|
||||
}
|
||||
public var connection: AntiAddictionService.Reachability.Connection {
|
||||
get
|
||||
}
|
||||
required public init(reachabilityRef: SystemConfiguration.SCNetworkReachability, queueQoS: Dispatch.DispatchQoS = .default, targetQueue: Dispatch.DispatchQueue? = nil, notificationQueue: Dispatch.DispatchQueue? = .main)
|
||||
convenience public init(hostname: Swift.String, queueQoS: Dispatch.DispatchQoS = .default, targetQueue: Dispatch.DispatchQueue? = nil, notificationQueue: Dispatch.DispatchQueue? = .main) throws
|
||||
convenience public init(queueQoS: Dispatch.DispatchQoS = .default, targetQueue: Dispatch.DispatchQueue? = nil, notificationQueue: Dispatch.DispatchQueue? = .main) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension AntiAddictionService.Reachability {
|
||||
public func startNotifier() throws
|
||||
public func stopNotifier()
|
||||
@available(*, deprecated, message: "Please use `connection != .none`")
|
||||
public var isReachable: Swift.Bool {
|
||||
get
|
||||
}
|
||||
@available(*, deprecated, message: "Please use `connection == .cellular`")
|
||||
public var isReachableViaWWAN: Swift.Bool {
|
||||
get
|
||||
}
|
||||
@available(*, deprecated, message: "Please use `connection == .wifi`")
|
||||
public var isReachableViaWiFi: Swift.Bool {
|
||||
get
|
||||
}
|
||||
public var description: Swift.String {
|
||||
get
|
||||
}
|
||||
}
|
||||
@_hasMissingDesignatedInitializers public class DefaultsKey {
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class Key<ValueType> : AntiAddictionService.DefaultsKey where ValueType : Swift.Decodable, ValueType : Swift.Encodable {
|
||||
public init(_ key: Swift.String)
|
||||
@objc deinit
|
||||
}
|
||||
final public class Defaults {
|
||||
public static let shared: AntiAddictionService.Defaults
|
||||
public init(userDefaults: Foundation.UserDefaults = UserDefaults.standard)
|
||||
final public func clear<ValueType>(_ key: AntiAddictionService.Key<ValueType>) where ValueType : Swift.Decodable, ValueType : Swift.Encodable
|
||||
final public func has<ValueType>(_ key: AntiAddictionService.Key<ValueType>) -> Swift.Bool where ValueType : Swift.Decodable, ValueType : Swift.Encodable
|
||||
final public func get<ValueType>(for key: AntiAddictionService.Key<ValueType>) -> ValueType? where ValueType : Swift.Decodable, ValueType : Swift.Encodable
|
||||
final public func set<ValueType>(_ value: ValueType, for key: AntiAddictionService.Key<ValueType>) where ValueType : Swift.Decodable, ValueType : Swift.Encodable
|
||||
final public func removeAll(bundle: Foundation.Bundle = Bundle.main)
|
||||
@objc deinit
|
||||
}
|
||||
extension AntiAddictionService.Defaults {
|
||||
final public func get<ValueType>(for key: AntiAddictionService.Key<ValueType>) -> ValueType? where ValueType : Swift.Decodable, ValueType : Swift.Encodable, ValueType : Swift.RawRepresentable, ValueType.RawValue : Swift.Decodable, ValueType.RawValue : Swift.Encodable
|
||||
final public func set<ValueType>(_ value: ValueType, for key: AntiAddictionService.Key<ValueType>) where ValueType : Swift.Decodable, ValueType : Swift.Encodable, ValueType : Swift.RawRepresentable, ValueType.RawValue : Swift.Decodable, ValueType.RawValue : Swift.Encodable
|
||||
}
|
||||
extension AntiAddictionService.AntiAddictionServiceResult : Swift.Equatable {}
|
||||
extension AntiAddictionService.AntiAddictionServiceResult : Swift.Hashable {}
|
||||
extension AntiAddictionService.AntiAddictionServiceResult : Swift.RawRepresentable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAuthState : Swift.Equatable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAuthState : Swift.Hashable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAuthState : Swift.RawRepresentable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAgeLimit : Swift.Equatable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAgeLimit : Swift.Hashable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAgeLimit : Swift.RawRepresentable {}
|
||||
extension AntiAddictionService.TipType : Swift.Equatable {}
|
||||
extension AntiAddictionService.TipType : Swift.Hashable {}
|
||||
extension AntiAddictionService.AlertType : Swift.Equatable {}
|
||||
extension AntiAddictionService.AlertType : Swift.Hashable {}
|
||||
@available(*, unavailable, renamed: "Connection")
|
||||
extension AntiAddictionService.Reachability.NetworkStatus : Swift.Equatable {}
|
||||
@available(*, unavailable, renamed: "Connection")
|
||||
extension AntiAddictionService.Reachability.NetworkStatus : Swift.Hashable {}
|
||||
extension AntiAddictionService.Reachability.Connection : Swift.Equatable {}
|
||||
extension AntiAddictionService.Reachability.Connection : Swift.Hashable {}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 47a3c462a41ed4a9ab33a8498bf63cc5
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e4ef0063ae1584a9098516a4bfa32b39
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,335 +0,0 @@
|
|||
// swift-interface-format-version: 1.0
|
||||
// swift-compiler-version: Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
|
||||
// swift-module-flags: -target arm64-apple-ios11.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name AntiAddictionService
|
||||
// swift-module-flags-ignorable: -enable-bare-slash-regex
|
||||
import AntiAddictionAsyncHttp
|
||||
@_exported import AntiAddictionService
|
||||
import CommonCrypto
|
||||
import CoreTelephony
|
||||
import Foundation
|
||||
import ObjectiveC
|
||||
import Swift
|
||||
import SystemConfiguration
|
||||
import TapCommonSDK
|
||||
import UIKit
|
||||
import _Concurrency
|
||||
import _StringProcessing
|
||||
extension Swift.Collection {
|
||||
public subscript(safe index: Self.Index) -> Self.Iterator.Element? {
|
||||
get
|
||||
}
|
||||
}
|
||||
@objc public enum AntiAddictionServiceResult : Swift.Int {
|
||||
case loginSuccess = 500
|
||||
case logout = 1000
|
||||
case switchAccount = 1001
|
||||
case periodRestrict = 1030
|
||||
case durationLimit = 1050
|
||||
case openAlertTip = 1095
|
||||
case payLimitNone = 1020
|
||||
case payLimitReachLimit = 1025
|
||||
public init?(rawValue: Swift.Int)
|
||||
public typealias RawValue = Swift.Int
|
||||
public var rawValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
@objc public enum AntiAddictionRealNameAuthState : Swift.Int, Swift.Codable {
|
||||
case success = 0
|
||||
case verifying = 1
|
||||
case fail = 2
|
||||
public init?(rawValue: Swift.Int)
|
||||
public typealias RawValue = Swift.Int
|
||||
public var rawValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
@objc public enum AntiAddictionRealNameAgeLimit : Swift.Int, Swift.Codable {
|
||||
case unrealname = -1
|
||||
case child = 0
|
||||
case teen = 8
|
||||
case young = 16
|
||||
case adult = 18
|
||||
public init?(rawValue: Swift.Int)
|
||||
public typealias RawValue = Swift.Int
|
||||
public var rawValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
@objc public protocol AntiAddictionServiceCallback : ObjectiveC.NSObjectProtocol {
|
||||
@objc func onCallback(code: Swift.Int, extra: Swift.String?)
|
||||
}
|
||||
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(AntiAddictionService) final public class AntiAddictionService : ObjectiveC.NSObject {
|
||||
@objc public static let LocalTokenString: Swift.String
|
||||
@objc public static var UseTestEnv: Swift.Bool
|
||||
@objc public static var configuration: AntiAddictionService.AntiAddictionConfiguration
|
||||
@objc final public class func getSDKVersion() -> Swift.String
|
||||
@objc final public class func enableLog(enable: Swift.Bool)
|
||||
@objc final public class func setFunctionConfig(_ useSdkPaymentLimit: Swift.Bool = true, _ useSdkOnlineTimeLimit: Swift.Bool = true)
|
||||
@objc final public class func setFunctionConfig(_ useSdkPaymentLimit: Swift.Bool = true, _ useSdkOnlineTimeLimit: Swift.Bool = true, _ showSwitchAccount: Swift.Bool = true)
|
||||
@objc final public class func getConfig(_ clinentId: Swift.String, completionHandler: ((_ suceess: Swift.Bool) -> Swift.Void)? = nil)
|
||||
@objc final public class func `init`(_ delegate: AntiAddictionService.AntiAddictionServiceCallback, gameIdentifier: Swift.String? = nil)
|
||||
@objc final public class func fastRealName(clientId: Swift.String, userId: Swift.String, tapToken: Swift.String, completion: @escaping (AntiAddictionService.AntiAddictionRealNameAuthState, Swift.String, AntiAddictionService.AntiAddictionRealNameAgeLimit) -> (), failureHandler: @escaping (_ errorMessage: Foundation.NSError) -> ())
|
||||
@objc final public class func login(userToken: Swift.String, accessToken: Swift.String, ageLimit: AntiAddictionService.AntiAddictionRealNameAgeLimit)
|
||||
@objc final public class func enterGame()
|
||||
@objc final public class func enterGame(isActive: Swift.Bool)
|
||||
@objc final public class func leaveGame()
|
||||
@objc final public class func logout()
|
||||
@objc final public class func switchAccount()
|
||||
@objc final public class func getCurrentUserAgeLimite() -> Swift.Int
|
||||
@objc final public class func currentToken() -> Swift.String
|
||||
@objc final public class func currentUserRemainingTime() -> Swift.Int
|
||||
@objc final public class func isStandAlone() -> Swift.Bool
|
||||
@objc final public class func getchildNightStrictRemainDesc() -> Swift.String
|
||||
@objc final public class func checkCurrentPayLimit(_ amount: Swift.Int) -> Swift.Int
|
||||
@objc final public class func checkPayLimit(_ amount: Swift.Int, callBack: ((_ status: Swift.Bool, _ title: Swift.String, _ description: Swift.String) -> Swift.Void)? = nil, failureHandler: ((_ message: Swift.String) -> Swift.Void)? = nil)
|
||||
@objc final public class func submitPayResult(_ amount: Swift.Int, _ callBack: ((_ success: Swift.Bool) -> Swift.Void)? = nil, _ failureHandler: ((_ message: Swift.String) -> Swift.Void)? = nil)
|
||||
@objc final public class func isHoliday() -> Swift.Bool
|
||||
@objc final public class func generateIDCode() -> Swift.String
|
||||
@objc final public class func startTimeStatic()
|
||||
@objc final public class func stopTimeStatic()
|
||||
@objc final public class func realNameAuth(clientId: Swift.String, userId: Swift.String, code: Swift.String, name: Swift.String, idCard: Swift.String, isFallBack: Swift.Bool, completion: @escaping (AntiAddictionService.AntiAddictionRealNameAuthState, Swift.String, AntiAddictionService.AntiAddictionRealNameAgeLimit) -> (), failureHandler: @escaping (_ errorMessage: Swift.String) -> ())
|
||||
@objc final public class func checkRealnameState(clientId: Swift.String, userId: Swift.String, completion: @escaping (_ identifyState: AntiAddictionService.AntiAddictionRealNameAuthState, _ antiAddictionToken: Swift.String, _ ageLimit: AntiAddictionService.AntiAddictionRealNameAgeLimit) -> (), failureHandler: @escaping (_ errorMessage: Swift.String) -> ())
|
||||
@objc final public class func checkTapTapRealnameState(clientId: Swift.String, userId: Swift.String, code: Swift.String, completion: @escaping (_ identifyState: AntiAddictionService.AntiAddictionRealNameAuthState, _ antiAddictionToken: Swift.String, _ ageLimit: AntiAddictionService.AntiAddictionRealNameAgeLimit) -> (), failureHandler: @escaping (_ errorMessage: Swift.String) -> ())
|
||||
@objc final public class func checkPlayTimeResult(handler: @escaping (_ result: Swift.String?) -> Swift.Void) -> Swift.String?
|
||||
@objc deinit
|
||||
}
|
||||
public struct HashidsOptions {
|
||||
}
|
||||
public protocol HashidsGenerator {
|
||||
associatedtype Char
|
||||
func encode(_ value: Swift.Int64...) -> Swift.String?
|
||||
func encode(_ values: [Swift.Int64]) -> Swift.String?
|
||||
func encode(_ value: Swift.Int...) -> Swift.String?
|
||||
func encode(_ values: [Swift.Int]) -> Swift.String?
|
||||
func decode(_ value: Swift.String!) -> [Swift.Int]
|
||||
func decode(_ value: [Self.Char]) -> [Swift.Int]
|
||||
func decode64(_ value: Swift.String) -> [Swift.Int64]
|
||||
func decode64(_ value: [Self.Char]) -> [Swift.Int64]
|
||||
}
|
||||
public typealias Hashids = AntiAddictionService.Hashids_<Swift.UInt32>
|
||||
open class Hashids_<T> : AntiAddictionService.HashidsGenerator where T : Swift.UnsignedInteger {
|
||||
public typealias Char = T
|
||||
public init(salt: Swift.String!, minHashLength: Swift.UInt = 0, alphabet: Swift.String? = nil)
|
||||
open func encode(_ value: Swift.Int64...) -> Swift.String?
|
||||
open func encode(_ values: [Swift.Int64]) -> Swift.String?
|
||||
open func encode(_ value: Swift.Int...) -> Swift.String?
|
||||
open func encode(_ values: [Swift.Int]) -> Swift.String?
|
||||
open func decode(_ value: Swift.String!) -> [Swift.Int]
|
||||
open func decode(_ value: [AntiAddictionService.Hashids_<T>.Char]) -> [Swift.Int]
|
||||
open func decode64(_ value: Swift.String) -> [Swift.Int64]
|
||||
open func decode64(_ value: [AntiAddictionService.Hashids_<T>.Char]) -> [Swift.Int64]
|
||||
@objc deinit
|
||||
}
|
||||
public struct User : Swift.Codable {
|
||||
public func encode(to encoder: Swift.Encoder) throws
|
||||
public init(from decoder: Swift.Decoder) throws
|
||||
}
|
||||
@objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers final public class AntiAddictionConfiguration : ObjectiveC.NSObject {
|
||||
@objc final public var enableLog: Swift.Bool
|
||||
@objc final public var needUploadUserAction: Swift.Bool
|
||||
final public var enableStandAloneAntiaddiction: Swift.Bool?
|
||||
@objc final public var isServerError: Swift.Bool
|
||||
@objc @discardableResult
|
||||
final public func getShouldStandAlone(resultBlock: ((Swift.Bool) -> ())? = nil) -> Swift.Bool
|
||||
@objc @discardableResult
|
||||
final public func getShouldUseLocalAuthIdentifier(resultBlock: ((Swift.Bool) -> ())? = nil) -> Swift.Bool
|
||||
@objc final public var gameIdentifier: Swift.String?
|
||||
@objc final public let bundleId: Swift.String
|
||||
@objc final public var useSdkOnlineTimeLimit: Swift.Bool
|
||||
@objc final public var useSdkPaymentLimit: Swift.Bool
|
||||
@objc final public var showSwitchAccount: Swift.Bool
|
||||
@objc final public var minorCommonDayTotalTime: Swift.Int
|
||||
@objc final public var minorHolidayTotalTime: Swift.Int
|
||||
@objc final public var guestTotalTime: Swift.Int
|
||||
@objc final public var firstAlertTipRemainTime: Swift.Int
|
||||
@objc final public var countdownAlertTipRemainTime: Swift.Int
|
||||
@objc final public var curfewHourStart: Swift.Int {
|
||||
@objc get
|
||||
@objc set
|
||||
}
|
||||
@objc final public var curfewHourEnd: Swift.Int {
|
||||
@objc get
|
||||
@objc set
|
||||
}
|
||||
@objc final public var nightStrictStart: Swift.String
|
||||
@objc final public var nightStrictEnd: Swift.String
|
||||
@objc final public var singlePaymentAmountLimitJunior: Swift.Int
|
||||
@objc final public var mouthTotalPaymentAmountLimitJunior: Swift.Int
|
||||
@objc final public var singlePaymentAmountLimitSenior: Swift.Int
|
||||
@objc final public var mouthTotalPaymentAmountLimitSenior: Swift.Int
|
||||
@objc final public var holiday: [Swift.String]
|
||||
@objc deinit
|
||||
}
|
||||
public struct PlayTimeCheckResult : Swift.Codable {
|
||||
public func encode(to encoder: Swift.Encoder) throws
|
||||
public init(from decoder: Swift.Decoder) throws
|
||||
}
|
||||
public enum TipType {
|
||||
case timeLimitAlert
|
||||
case payLimitAlert
|
||||
public static func == (a: AntiAddictionService.TipType, b: AntiAddictionService.TipType) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
public enum AlertType {
|
||||
case timeLimitAlert
|
||||
case payLimitAlert
|
||||
public static func == (a: AntiAddictionService.AlertType, b: AntiAddictionService.AlertType) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
public class SwiftTimer {
|
||||
public var isRunning: Swift.Bool
|
||||
final public let repeats: Swift.Bool
|
||||
public typealias SwiftTimerHandler = (AntiAddictionService.SwiftTimer) -> Swift.Void
|
||||
public init(interval: Dispatch.DispatchTimeInterval, repeats: Swift.Bool = false, leeway: Dispatch.DispatchTimeInterval = .seconds(0), queue: Dispatch.DispatchQueue = .main, handler: @escaping AntiAddictionService.SwiftTimer.SwiftTimerHandler)
|
||||
public static func repeaticTimer(interval: Dispatch.DispatchTimeInterval, leeway: Dispatch.DispatchTimeInterval = .seconds(0), queue: Dispatch.DispatchQueue = .main, handler: @escaping AntiAddictionService.SwiftTimer.SwiftTimerHandler) -> AntiAddictionService.SwiftTimer
|
||||
@objc deinit
|
||||
public func fire()
|
||||
public func start(fireOnceWhenStart: Swift.Bool = false)
|
||||
public func suspend()
|
||||
public func rescheduleRepeating(interval: Dispatch.DispatchTimeInterval)
|
||||
public func rescheduleHandler(handler: @escaping AntiAddictionService.SwiftTimer.SwiftTimerHandler)
|
||||
}
|
||||
extension AntiAddictionService.SwiftTimer {
|
||||
public static func debounce(interval: Dispatch.DispatchTimeInterval, identifier: Swift.String, queue: Dispatch.DispatchQueue = .main, handler: @escaping () -> Swift.Void)
|
||||
public static func throttle(interval: Dispatch.DispatchTimeInterval, identifier: Swift.String, queue: Dispatch.DispatchQueue = .main, handler: @escaping () -> Swift.Void)
|
||||
public static func cancelThrottlingTimer(identifier: Swift.String)
|
||||
}
|
||||
public class SwiftCountDownTimer {
|
||||
final public let originalTimes: Swift.Int
|
||||
public init(interval: Dispatch.DispatchTimeInterval, times: Swift.Int, queue: Dispatch.DispatchQueue = .main, handler: @escaping (AntiAddictionService.SwiftCountDownTimer, _ costTimes: Swift.Int, _ leftTimes: Swift.Int) -> Swift.Void)
|
||||
public func start()
|
||||
public func suspend()
|
||||
public func reCountDown()
|
||||
@objc deinit
|
||||
}
|
||||
extension Dispatch.DispatchTimeInterval {
|
||||
public static func fromSeconds(_ seconds: Swift.Double) -> Dispatch.DispatchTimeInterval
|
||||
}
|
||||
public enum ReachabilityError : Swift.Error {
|
||||
case failedToCreateWithAddress(Darwin.sockaddr, Swift.Int32)
|
||||
case failedToCreateWithHostname(Swift.String, Swift.Int32)
|
||||
case unableToSetCallback(Swift.Int32)
|
||||
case unableToSetDispatchQueue(Swift.Int32)
|
||||
case unableToGetFlags(Swift.Int32)
|
||||
}
|
||||
@available(*, unavailable, renamed: "Notification.Name.reachabilityChanged")
|
||||
public let ReachabilityChangedNotification: Foundation.NSNotification.Name
|
||||
extension Foundation.NSNotification.Name {
|
||||
public static let reachabilityChanged: Foundation.Notification.Name
|
||||
}
|
||||
public class Reachability {
|
||||
public typealias NetworkReachable = (AntiAddictionService.Reachability) -> ()
|
||||
public typealias NetworkUnreachable = (AntiAddictionService.Reachability) -> ()
|
||||
@available(*, unavailable, renamed: "Connection")
|
||||
public enum NetworkStatus : Swift.CustomStringConvertible {
|
||||
case notReachable, reachableViaWiFi, reachableViaWWAN
|
||||
public var description: Swift.String {
|
||||
get
|
||||
}
|
||||
public static func == (a: AntiAddictionService.Reachability.NetworkStatus, b: AntiAddictionService.Reachability.NetworkStatus) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
public enum Connection : Swift.CustomStringConvertible {
|
||||
@available(*, deprecated, renamed: "unavailable")
|
||||
case none
|
||||
case unavailable, wifi, cellular
|
||||
public var description: Swift.String {
|
||||
get
|
||||
}
|
||||
public static func == (a: AntiAddictionService.Reachability.Connection, b: AntiAddictionService.Reachability.Connection) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
public var whenReachable: AntiAddictionService.Reachability.NetworkReachable?
|
||||
public var whenUnreachable: AntiAddictionService.Reachability.NetworkUnreachable?
|
||||
@available(*, deprecated, renamed: "allowsCellularConnection")
|
||||
final public let reachableOnWWAN: Swift.Bool
|
||||
public var allowsCellularConnection: Swift.Bool
|
||||
public var notificationCenter: Foundation.NotificationCenter
|
||||
@available(*, deprecated, renamed: "connection.description")
|
||||
public var currentReachabilityString: Swift.String {
|
||||
get
|
||||
}
|
||||
@available(*, unavailable, renamed: "connection")
|
||||
public var currentReachabilityStatus: AntiAddictionService.Reachability.Connection {
|
||||
get
|
||||
}
|
||||
public var connection: AntiAddictionService.Reachability.Connection {
|
||||
get
|
||||
}
|
||||
required public init(reachabilityRef: SystemConfiguration.SCNetworkReachability, queueQoS: Dispatch.DispatchQoS = .default, targetQueue: Dispatch.DispatchQueue? = nil, notificationQueue: Dispatch.DispatchQueue? = .main)
|
||||
convenience public init(hostname: Swift.String, queueQoS: Dispatch.DispatchQoS = .default, targetQueue: Dispatch.DispatchQueue? = nil, notificationQueue: Dispatch.DispatchQueue? = .main) throws
|
||||
convenience public init(queueQoS: Dispatch.DispatchQoS = .default, targetQueue: Dispatch.DispatchQueue? = nil, notificationQueue: Dispatch.DispatchQueue? = .main) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension AntiAddictionService.Reachability {
|
||||
public func startNotifier() throws
|
||||
public func stopNotifier()
|
||||
@available(*, deprecated, message: "Please use `connection != .none`")
|
||||
public var isReachable: Swift.Bool {
|
||||
get
|
||||
}
|
||||
@available(*, deprecated, message: "Please use `connection == .cellular`")
|
||||
public var isReachableViaWWAN: Swift.Bool {
|
||||
get
|
||||
}
|
||||
@available(*, deprecated, message: "Please use `connection == .wifi`")
|
||||
public var isReachableViaWiFi: Swift.Bool {
|
||||
get
|
||||
}
|
||||
public var description: Swift.String {
|
||||
get
|
||||
}
|
||||
}
|
||||
@_hasMissingDesignatedInitializers public class DefaultsKey {
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class Key<ValueType> : AntiAddictionService.DefaultsKey where ValueType : Swift.Decodable, ValueType : Swift.Encodable {
|
||||
public init(_ key: Swift.String)
|
||||
@objc deinit
|
||||
}
|
||||
final public class Defaults {
|
||||
public static let shared: AntiAddictionService.Defaults
|
||||
public init(userDefaults: Foundation.UserDefaults = UserDefaults.standard)
|
||||
final public func clear<ValueType>(_ key: AntiAddictionService.Key<ValueType>) where ValueType : Swift.Decodable, ValueType : Swift.Encodable
|
||||
final public func has<ValueType>(_ key: AntiAddictionService.Key<ValueType>) -> Swift.Bool where ValueType : Swift.Decodable, ValueType : Swift.Encodable
|
||||
final public func get<ValueType>(for key: AntiAddictionService.Key<ValueType>) -> ValueType? where ValueType : Swift.Decodable, ValueType : Swift.Encodable
|
||||
final public func set<ValueType>(_ value: ValueType, for key: AntiAddictionService.Key<ValueType>) where ValueType : Swift.Decodable, ValueType : Swift.Encodable
|
||||
final public func removeAll(bundle: Foundation.Bundle = Bundle.main)
|
||||
@objc deinit
|
||||
}
|
||||
extension AntiAddictionService.Defaults {
|
||||
final public func get<ValueType>(for key: AntiAddictionService.Key<ValueType>) -> ValueType? where ValueType : Swift.Decodable, ValueType : Swift.Encodable, ValueType : Swift.RawRepresentable, ValueType.RawValue : Swift.Decodable, ValueType.RawValue : Swift.Encodable
|
||||
final public func set<ValueType>(_ value: ValueType, for key: AntiAddictionService.Key<ValueType>) where ValueType : Swift.Decodable, ValueType : Swift.Encodable, ValueType : Swift.RawRepresentable, ValueType.RawValue : Swift.Decodable, ValueType.RawValue : Swift.Encodable
|
||||
}
|
||||
extension AntiAddictionService.AntiAddictionServiceResult : Swift.Equatable {}
|
||||
extension AntiAddictionService.AntiAddictionServiceResult : Swift.Hashable {}
|
||||
extension AntiAddictionService.AntiAddictionServiceResult : Swift.RawRepresentable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAuthState : Swift.Equatable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAuthState : Swift.Hashable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAuthState : Swift.RawRepresentable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAgeLimit : Swift.Equatable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAgeLimit : Swift.Hashable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAgeLimit : Swift.RawRepresentable {}
|
||||
extension AntiAddictionService.TipType : Swift.Equatable {}
|
||||
extension AntiAddictionService.TipType : Swift.Hashable {}
|
||||
extension AntiAddictionService.AlertType : Swift.Equatable {}
|
||||
extension AntiAddictionService.AlertType : Swift.Hashable {}
|
||||
@available(*, unavailable, renamed: "Connection")
|
||||
extension AntiAddictionService.Reachability.NetworkStatus : Swift.Equatable {}
|
||||
@available(*, unavailable, renamed: "Connection")
|
||||
extension AntiAddictionService.Reachability.NetworkStatus : Swift.Hashable {}
|
||||
extension AntiAddictionService.Reachability.Connection : Swift.Equatable {}
|
||||
extension AntiAddictionService.Reachability.Connection : Swift.Hashable {}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ba096e6f30a8d49628d301f331a8bee1
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 2feccc4dc5e95489d8b704a43519b38d
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 00331c2b46a044a26a7be9cf7a2656c5
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,335 +0,0 @@
|
|||
// swift-interface-format-version: 1.0
|
||||
// swift-compiler-version: Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
|
||||
// swift-module-flags: -target x86_64-apple-ios11.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name AntiAddictionService
|
||||
// swift-module-flags-ignorable: -enable-bare-slash-regex
|
||||
import AntiAddictionAsyncHttp
|
||||
@_exported import AntiAddictionService
|
||||
import CommonCrypto
|
||||
import CoreTelephony
|
||||
import Foundation
|
||||
import ObjectiveC
|
||||
import Swift
|
||||
import SystemConfiguration
|
||||
import TapCommonSDK
|
||||
import UIKit
|
||||
import _Concurrency
|
||||
import _StringProcessing
|
||||
extension Swift.Collection {
|
||||
public subscript(safe index: Self.Index) -> Self.Iterator.Element? {
|
||||
get
|
||||
}
|
||||
}
|
||||
@objc public enum AntiAddictionServiceResult : Swift.Int {
|
||||
case loginSuccess = 500
|
||||
case logout = 1000
|
||||
case switchAccount = 1001
|
||||
case periodRestrict = 1030
|
||||
case durationLimit = 1050
|
||||
case openAlertTip = 1095
|
||||
case payLimitNone = 1020
|
||||
case payLimitReachLimit = 1025
|
||||
public init?(rawValue: Swift.Int)
|
||||
public typealias RawValue = Swift.Int
|
||||
public var rawValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
@objc public enum AntiAddictionRealNameAuthState : Swift.Int, Swift.Codable {
|
||||
case success = 0
|
||||
case verifying = 1
|
||||
case fail = 2
|
||||
public init?(rawValue: Swift.Int)
|
||||
public typealias RawValue = Swift.Int
|
||||
public var rawValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
@objc public enum AntiAddictionRealNameAgeLimit : Swift.Int, Swift.Codable {
|
||||
case unrealname = -1
|
||||
case child = 0
|
||||
case teen = 8
|
||||
case young = 16
|
||||
case adult = 18
|
||||
public init?(rawValue: Swift.Int)
|
||||
public typealias RawValue = Swift.Int
|
||||
public var rawValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
@objc public protocol AntiAddictionServiceCallback : ObjectiveC.NSObjectProtocol {
|
||||
@objc func onCallback(code: Swift.Int, extra: Swift.String?)
|
||||
}
|
||||
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(AntiAddictionService) final public class AntiAddictionService : ObjectiveC.NSObject {
|
||||
@objc public static let LocalTokenString: Swift.String
|
||||
@objc public static var UseTestEnv: Swift.Bool
|
||||
@objc public static var configuration: AntiAddictionService.AntiAddictionConfiguration
|
||||
@objc final public class func getSDKVersion() -> Swift.String
|
||||
@objc final public class func enableLog(enable: Swift.Bool)
|
||||
@objc final public class func setFunctionConfig(_ useSdkPaymentLimit: Swift.Bool = true, _ useSdkOnlineTimeLimit: Swift.Bool = true)
|
||||
@objc final public class func setFunctionConfig(_ useSdkPaymentLimit: Swift.Bool = true, _ useSdkOnlineTimeLimit: Swift.Bool = true, _ showSwitchAccount: Swift.Bool = true)
|
||||
@objc final public class func getConfig(_ clinentId: Swift.String, completionHandler: ((_ suceess: Swift.Bool) -> Swift.Void)? = nil)
|
||||
@objc final public class func `init`(_ delegate: AntiAddictionService.AntiAddictionServiceCallback, gameIdentifier: Swift.String? = nil)
|
||||
@objc final public class func fastRealName(clientId: Swift.String, userId: Swift.String, tapToken: Swift.String, completion: @escaping (AntiAddictionService.AntiAddictionRealNameAuthState, Swift.String, AntiAddictionService.AntiAddictionRealNameAgeLimit) -> (), failureHandler: @escaping (_ errorMessage: Foundation.NSError) -> ())
|
||||
@objc final public class func login(userToken: Swift.String, accessToken: Swift.String, ageLimit: AntiAddictionService.AntiAddictionRealNameAgeLimit)
|
||||
@objc final public class func enterGame()
|
||||
@objc final public class func enterGame(isActive: Swift.Bool)
|
||||
@objc final public class func leaveGame()
|
||||
@objc final public class func logout()
|
||||
@objc final public class func switchAccount()
|
||||
@objc final public class func getCurrentUserAgeLimite() -> Swift.Int
|
||||
@objc final public class func currentToken() -> Swift.String
|
||||
@objc final public class func currentUserRemainingTime() -> Swift.Int
|
||||
@objc final public class func isStandAlone() -> Swift.Bool
|
||||
@objc final public class func getchildNightStrictRemainDesc() -> Swift.String
|
||||
@objc final public class func checkCurrentPayLimit(_ amount: Swift.Int) -> Swift.Int
|
||||
@objc final public class func checkPayLimit(_ amount: Swift.Int, callBack: ((_ status: Swift.Bool, _ title: Swift.String, _ description: Swift.String) -> Swift.Void)? = nil, failureHandler: ((_ message: Swift.String) -> Swift.Void)? = nil)
|
||||
@objc final public class func submitPayResult(_ amount: Swift.Int, _ callBack: ((_ success: Swift.Bool) -> Swift.Void)? = nil, _ failureHandler: ((_ message: Swift.String) -> Swift.Void)? = nil)
|
||||
@objc final public class func isHoliday() -> Swift.Bool
|
||||
@objc final public class func generateIDCode() -> Swift.String
|
||||
@objc final public class func startTimeStatic()
|
||||
@objc final public class func stopTimeStatic()
|
||||
@objc final public class func realNameAuth(clientId: Swift.String, userId: Swift.String, code: Swift.String, name: Swift.String, idCard: Swift.String, isFallBack: Swift.Bool, completion: @escaping (AntiAddictionService.AntiAddictionRealNameAuthState, Swift.String, AntiAddictionService.AntiAddictionRealNameAgeLimit) -> (), failureHandler: @escaping (_ errorMessage: Swift.String) -> ())
|
||||
@objc final public class func checkRealnameState(clientId: Swift.String, userId: Swift.String, completion: @escaping (_ identifyState: AntiAddictionService.AntiAddictionRealNameAuthState, _ antiAddictionToken: Swift.String, _ ageLimit: AntiAddictionService.AntiAddictionRealNameAgeLimit) -> (), failureHandler: @escaping (_ errorMessage: Swift.String) -> ())
|
||||
@objc final public class func checkTapTapRealnameState(clientId: Swift.String, userId: Swift.String, code: Swift.String, completion: @escaping (_ identifyState: AntiAddictionService.AntiAddictionRealNameAuthState, _ antiAddictionToken: Swift.String, _ ageLimit: AntiAddictionService.AntiAddictionRealNameAgeLimit) -> (), failureHandler: @escaping (_ errorMessage: Swift.String) -> ())
|
||||
@objc final public class func checkPlayTimeResult(handler: @escaping (_ result: Swift.String?) -> Swift.Void) -> Swift.String?
|
||||
@objc deinit
|
||||
}
|
||||
public struct HashidsOptions {
|
||||
}
|
||||
public protocol HashidsGenerator {
|
||||
associatedtype Char
|
||||
func encode(_ value: Swift.Int64...) -> Swift.String?
|
||||
func encode(_ values: [Swift.Int64]) -> Swift.String?
|
||||
func encode(_ value: Swift.Int...) -> Swift.String?
|
||||
func encode(_ values: [Swift.Int]) -> Swift.String?
|
||||
func decode(_ value: Swift.String!) -> [Swift.Int]
|
||||
func decode(_ value: [Self.Char]) -> [Swift.Int]
|
||||
func decode64(_ value: Swift.String) -> [Swift.Int64]
|
||||
func decode64(_ value: [Self.Char]) -> [Swift.Int64]
|
||||
}
|
||||
public typealias Hashids = AntiAddictionService.Hashids_<Swift.UInt32>
|
||||
open class Hashids_<T> : AntiAddictionService.HashidsGenerator where T : Swift.UnsignedInteger {
|
||||
public typealias Char = T
|
||||
public init(salt: Swift.String!, minHashLength: Swift.UInt = 0, alphabet: Swift.String? = nil)
|
||||
open func encode(_ value: Swift.Int64...) -> Swift.String?
|
||||
open func encode(_ values: [Swift.Int64]) -> Swift.String?
|
||||
open func encode(_ value: Swift.Int...) -> Swift.String?
|
||||
open func encode(_ values: [Swift.Int]) -> Swift.String?
|
||||
open func decode(_ value: Swift.String!) -> [Swift.Int]
|
||||
open func decode(_ value: [AntiAddictionService.Hashids_<T>.Char]) -> [Swift.Int]
|
||||
open func decode64(_ value: Swift.String) -> [Swift.Int64]
|
||||
open func decode64(_ value: [AntiAddictionService.Hashids_<T>.Char]) -> [Swift.Int64]
|
||||
@objc deinit
|
||||
}
|
||||
public struct User : Swift.Codable {
|
||||
public func encode(to encoder: Swift.Encoder) throws
|
||||
public init(from decoder: Swift.Decoder) throws
|
||||
}
|
||||
@objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers final public class AntiAddictionConfiguration : ObjectiveC.NSObject {
|
||||
@objc final public var enableLog: Swift.Bool
|
||||
@objc final public var needUploadUserAction: Swift.Bool
|
||||
final public var enableStandAloneAntiaddiction: Swift.Bool?
|
||||
@objc final public var isServerError: Swift.Bool
|
||||
@objc @discardableResult
|
||||
final public func getShouldStandAlone(resultBlock: ((Swift.Bool) -> ())? = nil) -> Swift.Bool
|
||||
@objc @discardableResult
|
||||
final public func getShouldUseLocalAuthIdentifier(resultBlock: ((Swift.Bool) -> ())? = nil) -> Swift.Bool
|
||||
@objc final public var gameIdentifier: Swift.String?
|
||||
@objc final public let bundleId: Swift.String
|
||||
@objc final public var useSdkOnlineTimeLimit: Swift.Bool
|
||||
@objc final public var useSdkPaymentLimit: Swift.Bool
|
||||
@objc final public var showSwitchAccount: Swift.Bool
|
||||
@objc final public var minorCommonDayTotalTime: Swift.Int
|
||||
@objc final public var minorHolidayTotalTime: Swift.Int
|
||||
@objc final public var guestTotalTime: Swift.Int
|
||||
@objc final public var firstAlertTipRemainTime: Swift.Int
|
||||
@objc final public var countdownAlertTipRemainTime: Swift.Int
|
||||
@objc final public var curfewHourStart: Swift.Int {
|
||||
@objc get
|
||||
@objc set
|
||||
}
|
||||
@objc final public var curfewHourEnd: Swift.Int {
|
||||
@objc get
|
||||
@objc set
|
||||
}
|
||||
@objc final public var nightStrictStart: Swift.String
|
||||
@objc final public var nightStrictEnd: Swift.String
|
||||
@objc final public var singlePaymentAmountLimitJunior: Swift.Int
|
||||
@objc final public var mouthTotalPaymentAmountLimitJunior: Swift.Int
|
||||
@objc final public var singlePaymentAmountLimitSenior: Swift.Int
|
||||
@objc final public var mouthTotalPaymentAmountLimitSenior: Swift.Int
|
||||
@objc final public var holiday: [Swift.String]
|
||||
@objc deinit
|
||||
}
|
||||
public struct PlayTimeCheckResult : Swift.Codable {
|
||||
public func encode(to encoder: Swift.Encoder) throws
|
||||
public init(from decoder: Swift.Decoder) throws
|
||||
}
|
||||
public enum TipType {
|
||||
case timeLimitAlert
|
||||
case payLimitAlert
|
||||
public static func == (a: AntiAddictionService.TipType, b: AntiAddictionService.TipType) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
public enum AlertType {
|
||||
case timeLimitAlert
|
||||
case payLimitAlert
|
||||
public static func == (a: AntiAddictionService.AlertType, b: AntiAddictionService.AlertType) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
public class SwiftTimer {
|
||||
public var isRunning: Swift.Bool
|
||||
final public let repeats: Swift.Bool
|
||||
public typealias SwiftTimerHandler = (AntiAddictionService.SwiftTimer) -> Swift.Void
|
||||
public init(interval: Dispatch.DispatchTimeInterval, repeats: Swift.Bool = false, leeway: Dispatch.DispatchTimeInterval = .seconds(0), queue: Dispatch.DispatchQueue = .main, handler: @escaping AntiAddictionService.SwiftTimer.SwiftTimerHandler)
|
||||
public static func repeaticTimer(interval: Dispatch.DispatchTimeInterval, leeway: Dispatch.DispatchTimeInterval = .seconds(0), queue: Dispatch.DispatchQueue = .main, handler: @escaping AntiAddictionService.SwiftTimer.SwiftTimerHandler) -> AntiAddictionService.SwiftTimer
|
||||
@objc deinit
|
||||
public func fire()
|
||||
public func start(fireOnceWhenStart: Swift.Bool = false)
|
||||
public func suspend()
|
||||
public func rescheduleRepeating(interval: Dispatch.DispatchTimeInterval)
|
||||
public func rescheduleHandler(handler: @escaping AntiAddictionService.SwiftTimer.SwiftTimerHandler)
|
||||
}
|
||||
extension AntiAddictionService.SwiftTimer {
|
||||
public static func debounce(interval: Dispatch.DispatchTimeInterval, identifier: Swift.String, queue: Dispatch.DispatchQueue = .main, handler: @escaping () -> Swift.Void)
|
||||
public static func throttle(interval: Dispatch.DispatchTimeInterval, identifier: Swift.String, queue: Dispatch.DispatchQueue = .main, handler: @escaping () -> Swift.Void)
|
||||
public static func cancelThrottlingTimer(identifier: Swift.String)
|
||||
}
|
||||
public class SwiftCountDownTimer {
|
||||
final public let originalTimes: Swift.Int
|
||||
public init(interval: Dispatch.DispatchTimeInterval, times: Swift.Int, queue: Dispatch.DispatchQueue = .main, handler: @escaping (AntiAddictionService.SwiftCountDownTimer, _ costTimes: Swift.Int, _ leftTimes: Swift.Int) -> Swift.Void)
|
||||
public func start()
|
||||
public func suspend()
|
||||
public func reCountDown()
|
||||
@objc deinit
|
||||
}
|
||||
extension Dispatch.DispatchTimeInterval {
|
||||
public static func fromSeconds(_ seconds: Swift.Double) -> Dispatch.DispatchTimeInterval
|
||||
}
|
||||
public enum ReachabilityError : Swift.Error {
|
||||
case failedToCreateWithAddress(Darwin.sockaddr, Swift.Int32)
|
||||
case failedToCreateWithHostname(Swift.String, Swift.Int32)
|
||||
case unableToSetCallback(Swift.Int32)
|
||||
case unableToSetDispatchQueue(Swift.Int32)
|
||||
case unableToGetFlags(Swift.Int32)
|
||||
}
|
||||
@available(*, unavailable, renamed: "Notification.Name.reachabilityChanged")
|
||||
public let ReachabilityChangedNotification: Foundation.NSNotification.Name
|
||||
extension Foundation.NSNotification.Name {
|
||||
public static let reachabilityChanged: Foundation.Notification.Name
|
||||
}
|
||||
public class Reachability {
|
||||
public typealias NetworkReachable = (AntiAddictionService.Reachability) -> ()
|
||||
public typealias NetworkUnreachable = (AntiAddictionService.Reachability) -> ()
|
||||
@available(*, unavailable, renamed: "Connection")
|
||||
public enum NetworkStatus : Swift.CustomStringConvertible {
|
||||
case notReachable, reachableViaWiFi, reachableViaWWAN
|
||||
public var description: Swift.String {
|
||||
get
|
||||
}
|
||||
public static func == (a: AntiAddictionService.Reachability.NetworkStatus, b: AntiAddictionService.Reachability.NetworkStatus) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
public enum Connection : Swift.CustomStringConvertible {
|
||||
@available(*, deprecated, renamed: "unavailable")
|
||||
case none
|
||||
case unavailable, wifi, cellular
|
||||
public var description: Swift.String {
|
||||
get
|
||||
}
|
||||
public static func == (a: AntiAddictionService.Reachability.Connection, b: AntiAddictionService.Reachability.Connection) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
public var whenReachable: AntiAddictionService.Reachability.NetworkReachable?
|
||||
public var whenUnreachable: AntiAddictionService.Reachability.NetworkUnreachable?
|
||||
@available(*, deprecated, renamed: "allowsCellularConnection")
|
||||
final public let reachableOnWWAN: Swift.Bool
|
||||
public var allowsCellularConnection: Swift.Bool
|
||||
public var notificationCenter: Foundation.NotificationCenter
|
||||
@available(*, deprecated, renamed: "connection.description")
|
||||
public var currentReachabilityString: Swift.String {
|
||||
get
|
||||
}
|
||||
@available(*, unavailable, renamed: "connection")
|
||||
public var currentReachabilityStatus: AntiAddictionService.Reachability.Connection {
|
||||
get
|
||||
}
|
||||
public var connection: AntiAddictionService.Reachability.Connection {
|
||||
get
|
||||
}
|
||||
required public init(reachabilityRef: SystemConfiguration.SCNetworkReachability, queueQoS: Dispatch.DispatchQoS = .default, targetQueue: Dispatch.DispatchQueue? = nil, notificationQueue: Dispatch.DispatchQueue? = .main)
|
||||
convenience public init(hostname: Swift.String, queueQoS: Dispatch.DispatchQoS = .default, targetQueue: Dispatch.DispatchQueue? = nil, notificationQueue: Dispatch.DispatchQueue? = .main) throws
|
||||
convenience public init(queueQoS: Dispatch.DispatchQoS = .default, targetQueue: Dispatch.DispatchQueue? = nil, notificationQueue: Dispatch.DispatchQueue? = .main) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension AntiAddictionService.Reachability {
|
||||
public func startNotifier() throws
|
||||
public func stopNotifier()
|
||||
@available(*, deprecated, message: "Please use `connection != .none`")
|
||||
public var isReachable: Swift.Bool {
|
||||
get
|
||||
}
|
||||
@available(*, deprecated, message: "Please use `connection == .cellular`")
|
||||
public var isReachableViaWWAN: Swift.Bool {
|
||||
get
|
||||
}
|
||||
@available(*, deprecated, message: "Please use `connection == .wifi`")
|
||||
public var isReachableViaWiFi: Swift.Bool {
|
||||
get
|
||||
}
|
||||
public var description: Swift.String {
|
||||
get
|
||||
}
|
||||
}
|
||||
@_hasMissingDesignatedInitializers public class DefaultsKey {
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class Key<ValueType> : AntiAddictionService.DefaultsKey where ValueType : Swift.Decodable, ValueType : Swift.Encodable {
|
||||
public init(_ key: Swift.String)
|
||||
@objc deinit
|
||||
}
|
||||
final public class Defaults {
|
||||
public static let shared: AntiAddictionService.Defaults
|
||||
public init(userDefaults: Foundation.UserDefaults = UserDefaults.standard)
|
||||
final public func clear<ValueType>(_ key: AntiAddictionService.Key<ValueType>) where ValueType : Swift.Decodable, ValueType : Swift.Encodable
|
||||
final public func has<ValueType>(_ key: AntiAddictionService.Key<ValueType>) -> Swift.Bool where ValueType : Swift.Decodable, ValueType : Swift.Encodable
|
||||
final public func get<ValueType>(for key: AntiAddictionService.Key<ValueType>) -> ValueType? where ValueType : Swift.Decodable, ValueType : Swift.Encodable
|
||||
final public func set<ValueType>(_ value: ValueType, for key: AntiAddictionService.Key<ValueType>) where ValueType : Swift.Decodable, ValueType : Swift.Encodable
|
||||
final public func removeAll(bundle: Foundation.Bundle = Bundle.main)
|
||||
@objc deinit
|
||||
}
|
||||
extension AntiAddictionService.Defaults {
|
||||
final public func get<ValueType>(for key: AntiAddictionService.Key<ValueType>) -> ValueType? where ValueType : Swift.Decodable, ValueType : Swift.Encodable, ValueType : Swift.RawRepresentable, ValueType.RawValue : Swift.Decodable, ValueType.RawValue : Swift.Encodable
|
||||
final public func set<ValueType>(_ value: ValueType, for key: AntiAddictionService.Key<ValueType>) where ValueType : Swift.Decodable, ValueType : Swift.Encodable, ValueType : Swift.RawRepresentable, ValueType.RawValue : Swift.Decodable, ValueType.RawValue : Swift.Encodable
|
||||
}
|
||||
extension AntiAddictionService.AntiAddictionServiceResult : Swift.Equatable {}
|
||||
extension AntiAddictionService.AntiAddictionServiceResult : Swift.Hashable {}
|
||||
extension AntiAddictionService.AntiAddictionServiceResult : Swift.RawRepresentable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAuthState : Swift.Equatable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAuthState : Swift.Hashable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAuthState : Swift.RawRepresentable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAgeLimit : Swift.Equatable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAgeLimit : Swift.Hashable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAgeLimit : Swift.RawRepresentable {}
|
||||
extension AntiAddictionService.TipType : Swift.Equatable {}
|
||||
extension AntiAddictionService.TipType : Swift.Hashable {}
|
||||
extension AntiAddictionService.AlertType : Swift.Equatable {}
|
||||
extension AntiAddictionService.AlertType : Swift.Hashable {}
|
||||
@available(*, unavailable, renamed: "Connection")
|
||||
extension AntiAddictionService.Reachability.NetworkStatus : Swift.Equatable {}
|
||||
@available(*, unavailable, renamed: "Connection")
|
||||
extension AntiAddictionService.Reachability.NetworkStatus : Swift.Hashable {}
|
||||
extension AntiAddictionService.Reachability.Connection : Swift.Equatable {}
|
||||
extension AntiAddictionService.Reachability.Connection : Swift.Hashable {}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 5a254e5107a544a4aa917022cb0be700
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3dfea1031666c47199a8d84201f9d12a
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,335 +0,0 @@
|
|||
// swift-interface-format-version: 1.0
|
||||
// swift-compiler-version: Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
|
||||
// swift-module-flags: -target x86_64-apple-ios11.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name AntiAddictionService
|
||||
// swift-module-flags-ignorable: -enable-bare-slash-regex
|
||||
import AntiAddictionAsyncHttp
|
||||
@_exported import AntiAddictionService
|
||||
import CommonCrypto
|
||||
import CoreTelephony
|
||||
import Foundation
|
||||
import ObjectiveC
|
||||
import Swift
|
||||
import SystemConfiguration
|
||||
import TapCommonSDK
|
||||
import UIKit
|
||||
import _Concurrency
|
||||
import _StringProcessing
|
||||
extension Swift.Collection {
|
||||
public subscript(safe index: Self.Index) -> Self.Iterator.Element? {
|
||||
get
|
||||
}
|
||||
}
|
||||
@objc public enum AntiAddictionServiceResult : Swift.Int {
|
||||
case loginSuccess = 500
|
||||
case logout = 1000
|
||||
case switchAccount = 1001
|
||||
case periodRestrict = 1030
|
||||
case durationLimit = 1050
|
||||
case openAlertTip = 1095
|
||||
case payLimitNone = 1020
|
||||
case payLimitReachLimit = 1025
|
||||
public init?(rawValue: Swift.Int)
|
||||
public typealias RawValue = Swift.Int
|
||||
public var rawValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
@objc public enum AntiAddictionRealNameAuthState : Swift.Int, Swift.Codable {
|
||||
case success = 0
|
||||
case verifying = 1
|
||||
case fail = 2
|
||||
public init?(rawValue: Swift.Int)
|
||||
public typealias RawValue = Swift.Int
|
||||
public var rawValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
@objc public enum AntiAddictionRealNameAgeLimit : Swift.Int, Swift.Codable {
|
||||
case unrealname = -1
|
||||
case child = 0
|
||||
case teen = 8
|
||||
case young = 16
|
||||
case adult = 18
|
||||
public init?(rawValue: Swift.Int)
|
||||
public typealias RawValue = Swift.Int
|
||||
public var rawValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
@objc public protocol AntiAddictionServiceCallback : ObjectiveC.NSObjectProtocol {
|
||||
@objc func onCallback(code: Swift.Int, extra: Swift.String?)
|
||||
}
|
||||
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(AntiAddictionService) final public class AntiAddictionService : ObjectiveC.NSObject {
|
||||
@objc public static let LocalTokenString: Swift.String
|
||||
@objc public static var UseTestEnv: Swift.Bool
|
||||
@objc public static var configuration: AntiAddictionService.AntiAddictionConfiguration
|
||||
@objc final public class func getSDKVersion() -> Swift.String
|
||||
@objc final public class func enableLog(enable: Swift.Bool)
|
||||
@objc final public class func setFunctionConfig(_ useSdkPaymentLimit: Swift.Bool = true, _ useSdkOnlineTimeLimit: Swift.Bool = true)
|
||||
@objc final public class func setFunctionConfig(_ useSdkPaymentLimit: Swift.Bool = true, _ useSdkOnlineTimeLimit: Swift.Bool = true, _ showSwitchAccount: Swift.Bool = true)
|
||||
@objc final public class func getConfig(_ clinentId: Swift.String, completionHandler: ((_ suceess: Swift.Bool) -> Swift.Void)? = nil)
|
||||
@objc final public class func `init`(_ delegate: AntiAddictionService.AntiAddictionServiceCallback, gameIdentifier: Swift.String? = nil)
|
||||
@objc final public class func fastRealName(clientId: Swift.String, userId: Swift.String, tapToken: Swift.String, completion: @escaping (AntiAddictionService.AntiAddictionRealNameAuthState, Swift.String, AntiAddictionService.AntiAddictionRealNameAgeLimit) -> (), failureHandler: @escaping (_ errorMessage: Foundation.NSError) -> ())
|
||||
@objc final public class func login(userToken: Swift.String, accessToken: Swift.String, ageLimit: AntiAddictionService.AntiAddictionRealNameAgeLimit)
|
||||
@objc final public class func enterGame()
|
||||
@objc final public class func enterGame(isActive: Swift.Bool)
|
||||
@objc final public class func leaveGame()
|
||||
@objc final public class func logout()
|
||||
@objc final public class func switchAccount()
|
||||
@objc final public class func getCurrentUserAgeLimite() -> Swift.Int
|
||||
@objc final public class func currentToken() -> Swift.String
|
||||
@objc final public class func currentUserRemainingTime() -> Swift.Int
|
||||
@objc final public class func isStandAlone() -> Swift.Bool
|
||||
@objc final public class func getchildNightStrictRemainDesc() -> Swift.String
|
||||
@objc final public class func checkCurrentPayLimit(_ amount: Swift.Int) -> Swift.Int
|
||||
@objc final public class func checkPayLimit(_ amount: Swift.Int, callBack: ((_ status: Swift.Bool, _ title: Swift.String, _ description: Swift.String) -> Swift.Void)? = nil, failureHandler: ((_ message: Swift.String) -> Swift.Void)? = nil)
|
||||
@objc final public class func submitPayResult(_ amount: Swift.Int, _ callBack: ((_ success: Swift.Bool) -> Swift.Void)? = nil, _ failureHandler: ((_ message: Swift.String) -> Swift.Void)? = nil)
|
||||
@objc final public class func isHoliday() -> Swift.Bool
|
||||
@objc final public class func generateIDCode() -> Swift.String
|
||||
@objc final public class func startTimeStatic()
|
||||
@objc final public class func stopTimeStatic()
|
||||
@objc final public class func realNameAuth(clientId: Swift.String, userId: Swift.String, code: Swift.String, name: Swift.String, idCard: Swift.String, isFallBack: Swift.Bool, completion: @escaping (AntiAddictionService.AntiAddictionRealNameAuthState, Swift.String, AntiAddictionService.AntiAddictionRealNameAgeLimit) -> (), failureHandler: @escaping (_ errorMessage: Swift.String) -> ())
|
||||
@objc final public class func checkRealnameState(clientId: Swift.String, userId: Swift.String, completion: @escaping (_ identifyState: AntiAddictionService.AntiAddictionRealNameAuthState, _ antiAddictionToken: Swift.String, _ ageLimit: AntiAddictionService.AntiAddictionRealNameAgeLimit) -> (), failureHandler: @escaping (_ errorMessage: Swift.String) -> ())
|
||||
@objc final public class func checkTapTapRealnameState(clientId: Swift.String, userId: Swift.String, code: Swift.String, completion: @escaping (_ identifyState: AntiAddictionService.AntiAddictionRealNameAuthState, _ antiAddictionToken: Swift.String, _ ageLimit: AntiAddictionService.AntiAddictionRealNameAgeLimit) -> (), failureHandler: @escaping (_ errorMessage: Swift.String) -> ())
|
||||
@objc final public class func checkPlayTimeResult(handler: @escaping (_ result: Swift.String?) -> Swift.Void) -> Swift.String?
|
||||
@objc deinit
|
||||
}
|
||||
public struct HashidsOptions {
|
||||
}
|
||||
public protocol HashidsGenerator {
|
||||
associatedtype Char
|
||||
func encode(_ value: Swift.Int64...) -> Swift.String?
|
||||
func encode(_ values: [Swift.Int64]) -> Swift.String?
|
||||
func encode(_ value: Swift.Int...) -> Swift.String?
|
||||
func encode(_ values: [Swift.Int]) -> Swift.String?
|
||||
func decode(_ value: Swift.String!) -> [Swift.Int]
|
||||
func decode(_ value: [Self.Char]) -> [Swift.Int]
|
||||
func decode64(_ value: Swift.String) -> [Swift.Int64]
|
||||
func decode64(_ value: [Self.Char]) -> [Swift.Int64]
|
||||
}
|
||||
public typealias Hashids = AntiAddictionService.Hashids_<Swift.UInt32>
|
||||
open class Hashids_<T> : AntiAddictionService.HashidsGenerator where T : Swift.UnsignedInteger {
|
||||
public typealias Char = T
|
||||
public init(salt: Swift.String!, minHashLength: Swift.UInt = 0, alphabet: Swift.String? = nil)
|
||||
open func encode(_ value: Swift.Int64...) -> Swift.String?
|
||||
open func encode(_ values: [Swift.Int64]) -> Swift.String?
|
||||
open func encode(_ value: Swift.Int...) -> Swift.String?
|
||||
open func encode(_ values: [Swift.Int]) -> Swift.String?
|
||||
open func decode(_ value: Swift.String!) -> [Swift.Int]
|
||||
open func decode(_ value: [AntiAddictionService.Hashids_<T>.Char]) -> [Swift.Int]
|
||||
open func decode64(_ value: Swift.String) -> [Swift.Int64]
|
||||
open func decode64(_ value: [AntiAddictionService.Hashids_<T>.Char]) -> [Swift.Int64]
|
||||
@objc deinit
|
||||
}
|
||||
public struct User : Swift.Codable {
|
||||
public func encode(to encoder: Swift.Encoder) throws
|
||||
public init(from decoder: Swift.Decoder) throws
|
||||
}
|
||||
@objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers final public class AntiAddictionConfiguration : ObjectiveC.NSObject {
|
||||
@objc final public var enableLog: Swift.Bool
|
||||
@objc final public var needUploadUserAction: Swift.Bool
|
||||
final public var enableStandAloneAntiaddiction: Swift.Bool?
|
||||
@objc final public var isServerError: Swift.Bool
|
||||
@objc @discardableResult
|
||||
final public func getShouldStandAlone(resultBlock: ((Swift.Bool) -> ())? = nil) -> Swift.Bool
|
||||
@objc @discardableResult
|
||||
final public func getShouldUseLocalAuthIdentifier(resultBlock: ((Swift.Bool) -> ())? = nil) -> Swift.Bool
|
||||
@objc final public var gameIdentifier: Swift.String?
|
||||
@objc final public let bundleId: Swift.String
|
||||
@objc final public var useSdkOnlineTimeLimit: Swift.Bool
|
||||
@objc final public var useSdkPaymentLimit: Swift.Bool
|
||||
@objc final public var showSwitchAccount: Swift.Bool
|
||||
@objc final public var minorCommonDayTotalTime: Swift.Int
|
||||
@objc final public var minorHolidayTotalTime: Swift.Int
|
||||
@objc final public var guestTotalTime: Swift.Int
|
||||
@objc final public var firstAlertTipRemainTime: Swift.Int
|
||||
@objc final public var countdownAlertTipRemainTime: Swift.Int
|
||||
@objc final public var curfewHourStart: Swift.Int {
|
||||
@objc get
|
||||
@objc set
|
||||
}
|
||||
@objc final public var curfewHourEnd: Swift.Int {
|
||||
@objc get
|
||||
@objc set
|
||||
}
|
||||
@objc final public var nightStrictStart: Swift.String
|
||||
@objc final public var nightStrictEnd: Swift.String
|
||||
@objc final public var singlePaymentAmountLimitJunior: Swift.Int
|
||||
@objc final public var mouthTotalPaymentAmountLimitJunior: Swift.Int
|
||||
@objc final public var singlePaymentAmountLimitSenior: Swift.Int
|
||||
@objc final public var mouthTotalPaymentAmountLimitSenior: Swift.Int
|
||||
@objc final public var holiday: [Swift.String]
|
||||
@objc deinit
|
||||
}
|
||||
public struct PlayTimeCheckResult : Swift.Codable {
|
||||
public func encode(to encoder: Swift.Encoder) throws
|
||||
public init(from decoder: Swift.Decoder) throws
|
||||
}
|
||||
public enum TipType {
|
||||
case timeLimitAlert
|
||||
case payLimitAlert
|
||||
public static func == (a: AntiAddictionService.TipType, b: AntiAddictionService.TipType) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
public enum AlertType {
|
||||
case timeLimitAlert
|
||||
case payLimitAlert
|
||||
public static func == (a: AntiAddictionService.AlertType, b: AntiAddictionService.AlertType) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
public class SwiftTimer {
|
||||
public var isRunning: Swift.Bool
|
||||
final public let repeats: Swift.Bool
|
||||
public typealias SwiftTimerHandler = (AntiAddictionService.SwiftTimer) -> Swift.Void
|
||||
public init(interval: Dispatch.DispatchTimeInterval, repeats: Swift.Bool = false, leeway: Dispatch.DispatchTimeInterval = .seconds(0), queue: Dispatch.DispatchQueue = .main, handler: @escaping AntiAddictionService.SwiftTimer.SwiftTimerHandler)
|
||||
public static func repeaticTimer(interval: Dispatch.DispatchTimeInterval, leeway: Dispatch.DispatchTimeInterval = .seconds(0), queue: Dispatch.DispatchQueue = .main, handler: @escaping AntiAddictionService.SwiftTimer.SwiftTimerHandler) -> AntiAddictionService.SwiftTimer
|
||||
@objc deinit
|
||||
public func fire()
|
||||
public func start(fireOnceWhenStart: Swift.Bool = false)
|
||||
public func suspend()
|
||||
public func rescheduleRepeating(interval: Dispatch.DispatchTimeInterval)
|
||||
public func rescheduleHandler(handler: @escaping AntiAddictionService.SwiftTimer.SwiftTimerHandler)
|
||||
}
|
||||
extension AntiAddictionService.SwiftTimer {
|
||||
public static func debounce(interval: Dispatch.DispatchTimeInterval, identifier: Swift.String, queue: Dispatch.DispatchQueue = .main, handler: @escaping () -> Swift.Void)
|
||||
public static func throttle(interval: Dispatch.DispatchTimeInterval, identifier: Swift.String, queue: Dispatch.DispatchQueue = .main, handler: @escaping () -> Swift.Void)
|
||||
public static func cancelThrottlingTimer(identifier: Swift.String)
|
||||
}
|
||||
public class SwiftCountDownTimer {
|
||||
final public let originalTimes: Swift.Int
|
||||
public init(interval: Dispatch.DispatchTimeInterval, times: Swift.Int, queue: Dispatch.DispatchQueue = .main, handler: @escaping (AntiAddictionService.SwiftCountDownTimer, _ costTimes: Swift.Int, _ leftTimes: Swift.Int) -> Swift.Void)
|
||||
public func start()
|
||||
public func suspend()
|
||||
public func reCountDown()
|
||||
@objc deinit
|
||||
}
|
||||
extension Dispatch.DispatchTimeInterval {
|
||||
public static func fromSeconds(_ seconds: Swift.Double) -> Dispatch.DispatchTimeInterval
|
||||
}
|
||||
public enum ReachabilityError : Swift.Error {
|
||||
case failedToCreateWithAddress(Darwin.sockaddr, Swift.Int32)
|
||||
case failedToCreateWithHostname(Swift.String, Swift.Int32)
|
||||
case unableToSetCallback(Swift.Int32)
|
||||
case unableToSetDispatchQueue(Swift.Int32)
|
||||
case unableToGetFlags(Swift.Int32)
|
||||
}
|
||||
@available(*, unavailable, renamed: "Notification.Name.reachabilityChanged")
|
||||
public let ReachabilityChangedNotification: Foundation.NSNotification.Name
|
||||
extension Foundation.NSNotification.Name {
|
||||
public static let reachabilityChanged: Foundation.Notification.Name
|
||||
}
|
||||
public class Reachability {
|
||||
public typealias NetworkReachable = (AntiAddictionService.Reachability) -> ()
|
||||
public typealias NetworkUnreachable = (AntiAddictionService.Reachability) -> ()
|
||||
@available(*, unavailable, renamed: "Connection")
|
||||
public enum NetworkStatus : Swift.CustomStringConvertible {
|
||||
case notReachable, reachableViaWiFi, reachableViaWWAN
|
||||
public var description: Swift.String {
|
||||
get
|
||||
}
|
||||
public static func == (a: AntiAddictionService.Reachability.NetworkStatus, b: AntiAddictionService.Reachability.NetworkStatus) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
public enum Connection : Swift.CustomStringConvertible {
|
||||
@available(*, deprecated, renamed: "unavailable")
|
||||
case none
|
||||
case unavailable, wifi, cellular
|
||||
public var description: Swift.String {
|
||||
get
|
||||
}
|
||||
public static func == (a: AntiAddictionService.Reachability.Connection, b: AntiAddictionService.Reachability.Connection) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
public var whenReachable: AntiAddictionService.Reachability.NetworkReachable?
|
||||
public var whenUnreachable: AntiAddictionService.Reachability.NetworkUnreachable?
|
||||
@available(*, deprecated, renamed: "allowsCellularConnection")
|
||||
final public let reachableOnWWAN: Swift.Bool
|
||||
public var allowsCellularConnection: Swift.Bool
|
||||
public var notificationCenter: Foundation.NotificationCenter
|
||||
@available(*, deprecated, renamed: "connection.description")
|
||||
public var currentReachabilityString: Swift.String {
|
||||
get
|
||||
}
|
||||
@available(*, unavailable, renamed: "connection")
|
||||
public var currentReachabilityStatus: AntiAddictionService.Reachability.Connection {
|
||||
get
|
||||
}
|
||||
public var connection: AntiAddictionService.Reachability.Connection {
|
||||
get
|
||||
}
|
||||
required public init(reachabilityRef: SystemConfiguration.SCNetworkReachability, queueQoS: Dispatch.DispatchQoS = .default, targetQueue: Dispatch.DispatchQueue? = nil, notificationQueue: Dispatch.DispatchQueue? = .main)
|
||||
convenience public init(hostname: Swift.String, queueQoS: Dispatch.DispatchQoS = .default, targetQueue: Dispatch.DispatchQueue? = nil, notificationQueue: Dispatch.DispatchQueue? = .main) throws
|
||||
convenience public init(queueQoS: Dispatch.DispatchQoS = .default, targetQueue: Dispatch.DispatchQueue? = nil, notificationQueue: Dispatch.DispatchQueue? = .main) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension AntiAddictionService.Reachability {
|
||||
public func startNotifier() throws
|
||||
public func stopNotifier()
|
||||
@available(*, deprecated, message: "Please use `connection != .none`")
|
||||
public var isReachable: Swift.Bool {
|
||||
get
|
||||
}
|
||||
@available(*, deprecated, message: "Please use `connection == .cellular`")
|
||||
public var isReachableViaWWAN: Swift.Bool {
|
||||
get
|
||||
}
|
||||
@available(*, deprecated, message: "Please use `connection == .wifi`")
|
||||
public var isReachableViaWiFi: Swift.Bool {
|
||||
get
|
||||
}
|
||||
public var description: Swift.String {
|
||||
get
|
||||
}
|
||||
}
|
||||
@_hasMissingDesignatedInitializers public class DefaultsKey {
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class Key<ValueType> : AntiAddictionService.DefaultsKey where ValueType : Swift.Decodable, ValueType : Swift.Encodable {
|
||||
public init(_ key: Swift.String)
|
||||
@objc deinit
|
||||
}
|
||||
final public class Defaults {
|
||||
public static let shared: AntiAddictionService.Defaults
|
||||
public init(userDefaults: Foundation.UserDefaults = UserDefaults.standard)
|
||||
final public func clear<ValueType>(_ key: AntiAddictionService.Key<ValueType>) where ValueType : Swift.Decodable, ValueType : Swift.Encodable
|
||||
final public func has<ValueType>(_ key: AntiAddictionService.Key<ValueType>) -> Swift.Bool where ValueType : Swift.Decodable, ValueType : Swift.Encodable
|
||||
final public func get<ValueType>(for key: AntiAddictionService.Key<ValueType>) -> ValueType? where ValueType : Swift.Decodable, ValueType : Swift.Encodable
|
||||
final public func set<ValueType>(_ value: ValueType, for key: AntiAddictionService.Key<ValueType>) where ValueType : Swift.Decodable, ValueType : Swift.Encodable
|
||||
final public func removeAll(bundle: Foundation.Bundle = Bundle.main)
|
||||
@objc deinit
|
||||
}
|
||||
extension AntiAddictionService.Defaults {
|
||||
final public func get<ValueType>(for key: AntiAddictionService.Key<ValueType>) -> ValueType? where ValueType : Swift.Decodable, ValueType : Swift.Encodable, ValueType : Swift.RawRepresentable, ValueType.RawValue : Swift.Decodable, ValueType.RawValue : Swift.Encodable
|
||||
final public func set<ValueType>(_ value: ValueType, for key: AntiAddictionService.Key<ValueType>) where ValueType : Swift.Decodable, ValueType : Swift.Encodable, ValueType : Swift.RawRepresentable, ValueType.RawValue : Swift.Decodable, ValueType.RawValue : Swift.Encodable
|
||||
}
|
||||
extension AntiAddictionService.AntiAddictionServiceResult : Swift.Equatable {}
|
||||
extension AntiAddictionService.AntiAddictionServiceResult : Swift.Hashable {}
|
||||
extension AntiAddictionService.AntiAddictionServiceResult : Swift.RawRepresentable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAuthState : Swift.Equatable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAuthState : Swift.Hashable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAuthState : Swift.RawRepresentable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAgeLimit : Swift.Equatable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAgeLimit : Swift.Hashable {}
|
||||
extension AntiAddictionService.AntiAddictionRealNameAgeLimit : Swift.RawRepresentable {}
|
||||
extension AntiAddictionService.TipType : Swift.Equatable {}
|
||||
extension AntiAddictionService.TipType : Swift.Hashable {}
|
||||
extension AntiAddictionService.AlertType : Swift.Equatable {}
|
||||
extension AntiAddictionService.AlertType : Swift.Hashable {}
|
||||
@available(*, unavailable, renamed: "Connection")
|
||||
extension AntiAddictionService.Reachability.NetworkStatus : Swift.Equatable {}
|
||||
@available(*, unavailable, renamed: "Connection")
|
||||
extension AntiAddictionService.Reachability.NetworkStatus : Swift.Hashable {}
|
||||
extension AntiAddictionService.Reachability.Connection : Swift.Equatable {}
|
||||
extension AntiAddictionService.Reachability.Connection : Swift.Hashable {}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ed107042393c446dd9a2d11d8832f724
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 778979a97d1cd4254b7d4839863fd222
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
framework module AntiAddictionService {
|
||||
umbrella header "AntiAddictionService.h"
|
||||
|
||||
export *
|
||||
module * { export * }
|
||||
}
|
||||
|
||||
module AntiAddictionService.Swift {
|
||||
header "AntiAddictionService-Swift.h"
|
||||
requires objc
|
||||
}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 12071063ec05340db8e066d641927c89
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,69 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c9815a54a457148d4a044ff6f532a898
|
||||
folderAsset: yes
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
: Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 1
|
||||
Exclude Editor: 1
|
||||
Exclude Linux64: 1
|
||||
Exclude OSXUniversal: 1
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 1
|
||||
Exclude iOS: 0
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
iPhone: iOS
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 02e3250ac48284e1fb66cd799563cce2
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: af3875507be124a69bbf2d92cc6e15d8
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,126 +0,0 @@
|
|||
//
|
||||
// AntiAddiction.h
|
||||
// AntiAddictionUI
|
||||
//
|
||||
// Created by jessy on 2021/9/22.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <AntiAddictionService/AntiAddictionService-Swift.h>
|
||||
#import <AntiAddictionUI/AntiAddictionUI.h>
|
||||
|
||||
#define AntiAddictionSDK @"AntiAddiction"
|
||||
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
typedef NS_ENUM(NSInteger, AntiAddictionResultHandlerCode) {
|
||||
AntiAddictionResultHandlerLoginSuccess = 500, //登录成功
|
||||
AntiAddictionResultHandlerExited = 1000, //登录成功
|
||||
AntiAddictionResultHandlerSwitchAccount = 1001, // 切换账号
|
||||
AntiAddictionResultHandlerPeriodRestrict = 1030, // 达到宵禁时间,不可玩游戏
|
||||
AntiAddictionResultHandlerDurationLimit = 1050, // 可玩时长耗尽,不可玩游戏
|
||||
AntiAddictionResultHandlerRealNameStop = 9002, // 实名过程中点击了关闭实名窗
|
||||
|
||||
AntiAddictionResultHandlerLoginLogout __attribute__((deprecated("Please use AntiAddictionResultHandlerExited"))) = 1000, //用户登出
|
||||
AntiAddictionResultHandlerTimeLimit __attribute__((deprecated("Please use AntiAddictionResultHandlerPeriodRestrict"))) = 1030, // 用户当前无法进行游戏
|
||||
AntiAddictionResultHandlerOpenAlert __attribute__((deprecated("Not supported"))) = 1095, // 未成年允许游戏弹窗
|
||||
};
|
||||
|
||||
typedef NS_ENUM(NSInteger, AntiAddictionAgeLimit) {
|
||||
AntiAddictionAgeLimitUnknown = -1,
|
||||
AntiAddictionAgeLimitChild = 0,
|
||||
AntiAddictionAgeLimitTeen = 8,
|
||||
AntiAddictionAgeLimitYoung = 16,
|
||||
AntiAddictionAgeLimitAdult = 18,
|
||||
};
|
||||
|
||||
@protocol AntiAddictionDelegate <NSObject>
|
||||
|
||||
- (void)antiAddictionCallbackWithCode:(AntiAddictionResultHandlerCode)code extra:(NSString * _Nullable)extra;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@interface AntiAddiction : NSObject
|
||||
|
||||
/// 初始化
|
||||
/// @param config 防沉迷配置
|
||||
/// @param delegate 回调代理
|
||||
+ (void)initWithConfig:(AntiAddictionConfig *)config delegate:(id<AntiAddictionDelegate>)delegate;
|
||||
|
||||
/// 设置测试环境,需要在 startup 接口调用前设置
|
||||
/// @param enable 测试环境是否可用
|
||||
+ (void)setTestEnvironment:(BOOL)enable;
|
||||
|
||||
/// 启动防沉迷&实名系统
|
||||
/// @param userID 游戏维度的用户唯一标识
|
||||
+ (void)startupWithUserID:(NSString *)userID __attribute__((deprecated("Please use [AntiAddiction startupWithTapTap:]")));
|
||||
|
||||
/// 启动防沉迷&实名系统
|
||||
/// @param userID 游戏维度的用户唯一标识
|
||||
+ (void)startupWithUserID:(NSString *)userID isTapUser:(bool)isTapUser __attribute__((deprecated("Please use [AntiAddiction startupWithTapTap:]")));
|
||||
|
||||
/// 如果使用的TapTap登录,可以快速启动防沉迷&实名系统
|
||||
/// @param userID 游戏维度的用户唯一标识
|
||||
+ (void)startupWithTapTap:(NSString *)userID;
|
||||
|
||||
/// 退出防沉迷&实名系统
|
||||
+ (void)exit;
|
||||
|
||||
/// 进入游戏
|
||||
+ (void)enterGame;
|
||||
|
||||
/// 离开游戏
|
||||
+ (void)leaveGame;
|
||||
|
||||
/// 获取用户剩余时长(单位:秒)
|
||||
+ (NSInteger)getRemainingTime;
|
||||
|
||||
/// 获取用户剩余时长(单位:分钟)
|
||||
+ (NSInteger)getRemainingTimeInMinutes;
|
||||
|
||||
|
||||
/// 查询能否支付
|
||||
/// @param amount 支付金额,单位分
|
||||
/// @param resultBlock 能否成功
|
||||
/// @param failureHandler 查询能否支付失败(一般网络错误)
|
||||
+ (void)checkPayLimit:(NSInteger)amount resultBlock:(void(^ _Nullable)(BOOL status))resultBlock failureHandler:(void (^ _Nullable)(NSString * _Nonnull error))failureHandler;
|
||||
|
||||
/// 上报消费结果
|
||||
/// @param amount 支付金额,单位分
|
||||
/// @param callBack 上报是否成功
|
||||
/// @param failureHandler 上报消费结果失败(一般网络错误)
|
||||
+ (void)submitPayResult:(NSInteger)amount callBack:(void(^ _Nullable)(BOOL success))callBack failureHandler:(void (^ _Nullable)(NSString * _Nonnull error))failureHandler;
|
||||
|
||||
///获取当前防沉迷Token
|
||||
+ (NSString *)currentToken;
|
||||
|
||||
|
||||
|
||||
+ (void)initGameIdentifier:(NSString *)gameIdentifier antiAddictionConfig:(AntiAddictionConfiguration *)config antiAddictionCallbackDelegate:(id<AntiAddictionDelegate>)delegate completionHandler:(void(^)(BOOL))com __attribute__((deprecated("Please use [AntiAddiction initWithConfig:delegate:]")));
|
||||
+ (void)startUpUseTapLogin:(BOOL)useTapLogin userIdentifier:(NSString *)userIdentifier __attribute__((deprecated("Please use [AntiAddiction startupWithTapTap:]")));
|
||||
/// 获取用户年龄段
|
||||
+ (AntiAddictionAgeLimit)getAgeRange __attribute__((unavailable("No age information is provided")));
|
||||
+ (NSInteger)getCurrentUserAgeLimite __attribute__((deprecated("Please use [AntiAddiction getAgeRange]")));
|
||||
+ (NSInteger)getCurrentUserRemainTime __attribute__((deprecated("Please use [AntiAddiction getRemainingTime]")));
|
||||
+ (void)checkPayLimit:(NSInteger)amount callBack:(void (^ _Nullable)(BOOL status, NSString * _Nonnull title, NSString * _Nonnull description))callBack failureHandler:(void (^ _Nullable)(NSString * _Nonnull))failureHandler __attribute__((deprecated("Please use [AntiAddiction checkPayLimit:resultBlock:failureHandler:]")));
|
||||
+ (BOOL)isStandAlone __attribute__((deprecated("Not supported in future versions")));
|
||||
+ (void)logout __attribute__((deprecated("Please use [AntiAddiction exit]")));
|
||||
+ (NSString *)getSDKVersion __attribute__((deprecated("Please use AntiAddictionSDK_VERSION")));
|
||||
|
||||
/// 获取实名信息
|
||||
/// @param gameIdentifier 游戏唯一标识
|
||||
/// @param userIdentifier 游戏维度的用户唯一标识
|
||||
/// @param successHandelr AntiAddictionRealNameAuthState 用户状态,antiAddictionToken 防沉迷Token,AntiAddictionRealNameAgeLimit 年龄区分
|
||||
/// @param failureHandler msg 错误信息
|
||||
+ (void)fetchUserIndentifyInfoGameIdentifier:(NSString *)gameIdentifier userIdentifier:(NSString *)userIdentifier
|
||||
successHandler:(void(^)(AntiAddictionRealNameAuthState state, NSString *antiAddictionToken, AntiAddictionRealNameAgeLimit ageLimit))successHandelr
|
||||
failureHandler:(void(^)(NSString *msg))failureHandler __attribute__((deprecated("Not supported in future versions")));
|
||||
|
||||
|
||||
+ (void)setUnityVersion:(NSString *)version;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ce1e2354a09174497b86163367ce244e
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
//
|
||||
// AntiAddictionConfig.h
|
||||
// AntiAddictionUI
|
||||
//
|
||||
// Created by 黄驿峰 on 2022/8/31.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
typedef NS_ENUM(NSInteger, AntiAddictionRegion) {
|
||||
AntiAddictionRegionChina
|
||||
};
|
||||
|
||||
@interface AntiAddictionConfig : NSObject
|
||||
|
||||
@property (nonatomic, strong) NSString *clientID;
|
||||
@property (nonatomic, assign) BOOL useTapLogin __attribute__((deprecated("useTapLogin is not valid any more")));
|
||||
@property (nonatomic, assign) BOOL showSwitchAccount;
|
||||
@property (nonatomic, assign) AntiAddictionRegion region;
|
||||
|
||||
- (instancetype)init;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 10d369857f3fe4247964d84003442a31
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,791 +0,0 @@
|
|||
#if TARGET_OS_SIMULATOR
|
||||
#if 0
|
||||
#elif defined(__arm64__) && __arm64__
|
||||
// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
|
||||
#ifndef ANTIADDICTIONUI_SWIFT_H
|
||||
#define ANTIADDICTIONUI_SWIFT_H
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wgcc-compat"
|
||||
|
||||
#if !defined(__has_include)
|
||||
# define __has_include(x) 0
|
||||
#endif
|
||||
#if !defined(__has_attribute)
|
||||
# define __has_attribute(x) 0
|
||||
#endif
|
||||
#if !defined(__has_feature)
|
||||
# define __has_feature(x) 0
|
||||
#endif
|
||||
#if !defined(__has_warning)
|
||||
# define __has_warning(x) 0
|
||||
#endif
|
||||
|
||||
#if __has_include(<swift/objc-prologue.h>)
|
||||
# include <swift/objc-prologue.h>
|
||||
#endif
|
||||
|
||||
#pragma clang diagnostic ignored "-Wduplicate-method-match"
|
||||
#pragma clang diagnostic ignored "-Wauto-import"
|
||||
#if defined(__OBJC__)
|
||||
#include <Foundation/Foundation.h>
|
||||
#endif
|
||||
#if defined(__cplusplus)
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
#include <cstdbool>
|
||||
#else
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
#endif
|
||||
|
||||
#if !defined(SWIFT_TYPEDEFS)
|
||||
# define SWIFT_TYPEDEFS 1
|
||||
# if __has_include(<uchar.h>)
|
||||
# include <uchar.h>
|
||||
# elif !defined(__cplusplus)
|
||||
typedef uint_least16_t char16_t;
|
||||
typedef uint_least32_t char32_t;
|
||||
# endif
|
||||
typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
|
||||
typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
|
||||
typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
|
||||
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
||||
#endif
|
||||
|
||||
#if !defined(SWIFT_PASTE)
|
||||
# define SWIFT_PASTE_HELPER(x, y) x##y
|
||||
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
|
||||
#endif
|
||||
#if !defined(SWIFT_METATYPE)
|
||||
# define SWIFT_METATYPE(X) Class
|
||||
#endif
|
||||
#if !defined(SWIFT_CLASS_PROPERTY)
|
||||
# if __has_feature(objc_class_property)
|
||||
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
|
||||
# else
|
||||
# define SWIFT_CLASS_PROPERTY(...)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if __has_attribute(objc_runtime_name)
|
||||
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
|
||||
#else
|
||||
# define SWIFT_RUNTIME_NAME(X)
|
||||
#endif
|
||||
#if __has_attribute(swift_name)
|
||||
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
|
||||
#else
|
||||
# define SWIFT_COMPILE_NAME(X)
|
||||
#endif
|
||||
#if __has_attribute(objc_method_family)
|
||||
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
|
||||
#else
|
||||
# define SWIFT_METHOD_FAMILY(X)
|
||||
#endif
|
||||
#if __has_attribute(noescape)
|
||||
# define SWIFT_NOESCAPE __attribute__((noescape))
|
||||
#else
|
||||
# define SWIFT_NOESCAPE
|
||||
#endif
|
||||
#if __has_attribute(ns_consumed)
|
||||
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
|
||||
#else
|
||||
# define SWIFT_RELEASES_ARGUMENT
|
||||
#endif
|
||||
#if __has_attribute(warn_unused_result)
|
||||
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
|
||||
#else
|
||||
# define SWIFT_WARN_UNUSED_RESULT
|
||||
#endif
|
||||
#if __has_attribute(noreturn)
|
||||
# define SWIFT_NORETURN __attribute__((noreturn))
|
||||
#else
|
||||
# define SWIFT_NORETURN
|
||||
#endif
|
||||
#if !defined(SWIFT_CLASS_EXTRA)
|
||||
# define SWIFT_CLASS_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_PROTOCOL_EXTRA)
|
||||
# define SWIFT_PROTOCOL_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_ENUM_EXTRA)
|
||||
# define SWIFT_ENUM_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_CLASS)
|
||||
# if __has_attribute(objc_subclassing_restricted)
|
||||
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
|
||||
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
||||
# else
|
||||
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
||||
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_RESILIENT_CLASS)
|
||||
# if __has_attribute(objc_class_stub)
|
||||
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
|
||||
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
||||
# else
|
||||
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
|
||||
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if !defined(SWIFT_PROTOCOL)
|
||||
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
||||
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
||||
#endif
|
||||
|
||||
#if !defined(SWIFT_EXTENSION)
|
||||
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
|
||||
#endif
|
||||
|
||||
#if !defined(OBJC_DESIGNATED_INITIALIZER)
|
||||
# if __has_attribute(objc_designated_initializer)
|
||||
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
|
||||
# else
|
||||
# define OBJC_DESIGNATED_INITIALIZER
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_ENUM_ATTR)
|
||||
# if defined(__has_attribute) && __has_attribute(enum_extensibility)
|
||||
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
|
||||
# else
|
||||
# define SWIFT_ENUM_ATTR(_extensibility)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_ENUM)
|
||||
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
||||
# if __has_feature(generalized_swift_name)
|
||||
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
||||
# else
|
||||
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_UNAVAILABLE)
|
||||
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
|
||||
#endif
|
||||
#if !defined(SWIFT_UNAVAILABLE_MSG)
|
||||
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
|
||||
#endif
|
||||
#if !defined(SWIFT_AVAILABILITY)
|
||||
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
|
||||
#endif
|
||||
#if !defined(SWIFT_WEAK_IMPORT)
|
||||
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
|
||||
#endif
|
||||
#if !defined(SWIFT_DEPRECATED)
|
||||
# define SWIFT_DEPRECATED __attribute__((deprecated))
|
||||
#endif
|
||||
#if !defined(SWIFT_DEPRECATED_MSG)
|
||||
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
|
||||
#endif
|
||||
#if __has_feature(attribute_diagnose_if_objc)
|
||||
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
|
||||
#else
|
||||
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
|
||||
#endif
|
||||
#if defined(__OBJC__)
|
||||
#if !defined(IBSegueAction)
|
||||
# define IBSegueAction
|
||||
#endif
|
||||
#endif
|
||||
#if !defined(SWIFT_EXTERN)
|
||||
# if defined(__cplusplus)
|
||||
# define SWIFT_EXTERN extern "C"
|
||||
# else
|
||||
# define SWIFT_EXTERN extern
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_CALL)
|
||||
# define SWIFT_CALL __attribute__((swiftcall))
|
||||
#endif
|
||||
#if defined(__cplusplus)
|
||||
#if !defined(SWIFT_NOEXCEPT)
|
||||
# define SWIFT_NOEXCEPT noexcept
|
||||
#endif
|
||||
#else
|
||||
#if !defined(SWIFT_NOEXCEPT)
|
||||
# define SWIFT_NOEXCEPT
|
||||
#endif
|
||||
#endif
|
||||
#if defined(__cplusplus)
|
||||
#if !defined(SWIFT_CXX_INT_DEFINED)
|
||||
#define SWIFT_CXX_INT_DEFINED
|
||||
namespace swift {
|
||||
using Int = ptrdiff_t;
|
||||
using UInt = size_t;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
#if defined(__OBJC__)
|
||||
#if __has_feature(modules)
|
||||
#if __has_warning("-Watimport-in-framework-header")
|
||||
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
||||
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
||||
#if __has_warning("-Wpragma-clang-attribute")
|
||||
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
|
||||
#endif
|
||||
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
||||
#pragma clang diagnostic ignored "-Wnullability"
|
||||
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
||||
|
||||
#if __has_attribute(external_source_symbol)
|
||||
# pragma push_macro("any")
|
||||
# undef any
|
||||
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="AntiAddictionUI",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
|
||||
# pragma pop_macro("any")
|
||||
#endif
|
||||
|
||||
#if defined(__OBJC__)
|
||||
#endif
|
||||
#if defined(__cplusplus)
|
||||
#endif
|
||||
#if __has_attribute(external_source_symbol)
|
||||
# pragma clang attribute pop
|
||||
#endif
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
#elif defined(__x86_64__) && __x86_64__
|
||||
// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
|
||||
#ifndef ANTIADDICTIONUI_SWIFT_H
|
||||
#define ANTIADDICTIONUI_SWIFT_H
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wgcc-compat"
|
||||
|
||||
#if !defined(__has_include)
|
||||
# define __has_include(x) 0
|
||||
#endif
|
||||
#if !defined(__has_attribute)
|
||||
# define __has_attribute(x) 0
|
||||
#endif
|
||||
#if !defined(__has_feature)
|
||||
# define __has_feature(x) 0
|
||||
#endif
|
||||
#if !defined(__has_warning)
|
||||
# define __has_warning(x) 0
|
||||
#endif
|
||||
|
||||
#if __has_include(<swift/objc-prologue.h>)
|
||||
# include <swift/objc-prologue.h>
|
||||
#endif
|
||||
|
||||
#pragma clang diagnostic ignored "-Wduplicate-method-match"
|
||||
#pragma clang diagnostic ignored "-Wauto-import"
|
||||
#if defined(__OBJC__)
|
||||
#include <Foundation/Foundation.h>
|
||||
#endif
|
||||
#if defined(__cplusplus)
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
#include <cstdbool>
|
||||
#else
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
#endif
|
||||
|
||||
#if !defined(SWIFT_TYPEDEFS)
|
||||
# define SWIFT_TYPEDEFS 1
|
||||
# if __has_include(<uchar.h>)
|
||||
# include <uchar.h>
|
||||
# elif !defined(__cplusplus)
|
||||
typedef uint_least16_t char16_t;
|
||||
typedef uint_least32_t char32_t;
|
||||
# endif
|
||||
typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
|
||||
typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
|
||||
typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
|
||||
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
||||
#endif
|
||||
|
||||
#if !defined(SWIFT_PASTE)
|
||||
# define SWIFT_PASTE_HELPER(x, y) x##y
|
||||
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
|
||||
#endif
|
||||
#if !defined(SWIFT_METATYPE)
|
||||
# define SWIFT_METATYPE(X) Class
|
||||
#endif
|
||||
#if !defined(SWIFT_CLASS_PROPERTY)
|
||||
# if __has_feature(objc_class_property)
|
||||
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
|
||||
# else
|
||||
# define SWIFT_CLASS_PROPERTY(...)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if __has_attribute(objc_runtime_name)
|
||||
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
|
||||
#else
|
||||
# define SWIFT_RUNTIME_NAME(X)
|
||||
#endif
|
||||
#if __has_attribute(swift_name)
|
||||
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
|
||||
#else
|
||||
# define SWIFT_COMPILE_NAME(X)
|
||||
#endif
|
||||
#if __has_attribute(objc_method_family)
|
||||
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
|
||||
#else
|
||||
# define SWIFT_METHOD_FAMILY(X)
|
||||
#endif
|
||||
#if __has_attribute(noescape)
|
||||
# define SWIFT_NOESCAPE __attribute__((noescape))
|
||||
#else
|
||||
# define SWIFT_NOESCAPE
|
||||
#endif
|
||||
#if __has_attribute(ns_consumed)
|
||||
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
|
||||
#else
|
||||
# define SWIFT_RELEASES_ARGUMENT
|
||||
#endif
|
||||
#if __has_attribute(warn_unused_result)
|
||||
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
|
||||
#else
|
||||
# define SWIFT_WARN_UNUSED_RESULT
|
||||
#endif
|
||||
#if __has_attribute(noreturn)
|
||||
# define SWIFT_NORETURN __attribute__((noreturn))
|
||||
#else
|
||||
# define SWIFT_NORETURN
|
||||
#endif
|
||||
#if !defined(SWIFT_CLASS_EXTRA)
|
||||
# define SWIFT_CLASS_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_PROTOCOL_EXTRA)
|
||||
# define SWIFT_PROTOCOL_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_ENUM_EXTRA)
|
||||
# define SWIFT_ENUM_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_CLASS)
|
||||
# if __has_attribute(objc_subclassing_restricted)
|
||||
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
|
||||
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
||||
# else
|
||||
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
||||
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_RESILIENT_CLASS)
|
||||
# if __has_attribute(objc_class_stub)
|
||||
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
|
||||
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
||||
# else
|
||||
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
|
||||
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if !defined(SWIFT_PROTOCOL)
|
||||
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
||||
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
||||
#endif
|
||||
|
||||
#if !defined(SWIFT_EXTENSION)
|
||||
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
|
||||
#endif
|
||||
|
||||
#if !defined(OBJC_DESIGNATED_INITIALIZER)
|
||||
# if __has_attribute(objc_designated_initializer)
|
||||
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
|
||||
# else
|
||||
# define OBJC_DESIGNATED_INITIALIZER
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_ENUM_ATTR)
|
||||
# if defined(__has_attribute) && __has_attribute(enum_extensibility)
|
||||
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
|
||||
# else
|
||||
# define SWIFT_ENUM_ATTR(_extensibility)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_ENUM)
|
||||
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
||||
# if __has_feature(generalized_swift_name)
|
||||
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
||||
# else
|
||||
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_UNAVAILABLE)
|
||||
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
|
||||
#endif
|
||||
#if !defined(SWIFT_UNAVAILABLE_MSG)
|
||||
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
|
||||
#endif
|
||||
#if !defined(SWIFT_AVAILABILITY)
|
||||
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
|
||||
#endif
|
||||
#if !defined(SWIFT_WEAK_IMPORT)
|
||||
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
|
||||
#endif
|
||||
#if !defined(SWIFT_DEPRECATED)
|
||||
# define SWIFT_DEPRECATED __attribute__((deprecated))
|
||||
#endif
|
||||
#if !defined(SWIFT_DEPRECATED_MSG)
|
||||
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
|
||||
#endif
|
||||
#if __has_feature(attribute_diagnose_if_objc)
|
||||
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
|
||||
#else
|
||||
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
|
||||
#endif
|
||||
#if defined(__OBJC__)
|
||||
#if !defined(IBSegueAction)
|
||||
# define IBSegueAction
|
||||
#endif
|
||||
#endif
|
||||
#if !defined(SWIFT_EXTERN)
|
||||
# if defined(__cplusplus)
|
||||
# define SWIFT_EXTERN extern "C"
|
||||
# else
|
||||
# define SWIFT_EXTERN extern
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_CALL)
|
||||
# define SWIFT_CALL __attribute__((swiftcall))
|
||||
#endif
|
||||
#if defined(__cplusplus)
|
||||
#if !defined(SWIFT_NOEXCEPT)
|
||||
# define SWIFT_NOEXCEPT noexcept
|
||||
#endif
|
||||
#else
|
||||
#if !defined(SWIFT_NOEXCEPT)
|
||||
# define SWIFT_NOEXCEPT
|
||||
#endif
|
||||
#endif
|
||||
#if defined(__cplusplus)
|
||||
#if !defined(SWIFT_CXX_INT_DEFINED)
|
||||
#define SWIFT_CXX_INT_DEFINED
|
||||
namespace swift {
|
||||
using Int = ptrdiff_t;
|
||||
using UInt = size_t;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
#if defined(__OBJC__)
|
||||
#if __has_feature(modules)
|
||||
#if __has_warning("-Watimport-in-framework-header")
|
||||
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
||||
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
||||
#if __has_warning("-Wpragma-clang-attribute")
|
||||
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
|
||||
#endif
|
||||
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
||||
#pragma clang diagnostic ignored "-Wnullability"
|
||||
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
||||
|
||||
#if __has_attribute(external_source_symbol)
|
||||
# pragma push_macro("any")
|
||||
# undef any
|
||||
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="AntiAddictionUI",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
|
||||
# pragma pop_macro("any")
|
||||
#endif
|
||||
|
||||
#if defined(__OBJC__)
|
||||
#endif
|
||||
#if defined(__cplusplus)
|
||||
#endif
|
||||
#if __has_attribute(external_source_symbol)
|
||||
# pragma clang attribute pop
|
||||
#endif
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
#else
|
||||
#error unsupported Swift architecture
|
||||
#endif
|
||||
#else
|
||||
#if 0
|
||||
#elif defined(__arm64__) && __arm64__
|
||||
// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
|
||||
#ifndef ANTIADDICTIONUI_SWIFT_H
|
||||
#define ANTIADDICTIONUI_SWIFT_H
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wgcc-compat"
|
||||
|
||||
#if !defined(__has_include)
|
||||
# define __has_include(x) 0
|
||||
#endif
|
||||
#if !defined(__has_attribute)
|
||||
# define __has_attribute(x) 0
|
||||
#endif
|
||||
#if !defined(__has_feature)
|
||||
# define __has_feature(x) 0
|
||||
#endif
|
||||
#if !defined(__has_warning)
|
||||
# define __has_warning(x) 0
|
||||
#endif
|
||||
|
||||
#if __has_include(<swift/objc-prologue.h>)
|
||||
# include <swift/objc-prologue.h>
|
||||
#endif
|
||||
|
||||
#pragma clang diagnostic ignored "-Wduplicate-method-match"
|
||||
#pragma clang diagnostic ignored "-Wauto-import"
|
||||
#if defined(__OBJC__)
|
||||
#include <Foundation/Foundation.h>
|
||||
#endif
|
||||
#if defined(__cplusplus)
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
#include <cstdbool>
|
||||
#else
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
#endif
|
||||
|
||||
#if !defined(SWIFT_TYPEDEFS)
|
||||
# define SWIFT_TYPEDEFS 1
|
||||
# if __has_include(<uchar.h>)
|
||||
# include <uchar.h>
|
||||
# elif !defined(__cplusplus)
|
||||
typedef uint_least16_t char16_t;
|
||||
typedef uint_least32_t char32_t;
|
||||
# endif
|
||||
typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
|
||||
typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
|
||||
typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
|
||||
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
||||
#endif
|
||||
|
||||
#if !defined(SWIFT_PASTE)
|
||||
# define SWIFT_PASTE_HELPER(x, y) x##y
|
||||
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
|
||||
#endif
|
||||
#if !defined(SWIFT_METATYPE)
|
||||
# define SWIFT_METATYPE(X) Class
|
||||
#endif
|
||||
#if !defined(SWIFT_CLASS_PROPERTY)
|
||||
# if __has_feature(objc_class_property)
|
||||
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
|
||||
# else
|
||||
# define SWIFT_CLASS_PROPERTY(...)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if __has_attribute(objc_runtime_name)
|
||||
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
|
||||
#else
|
||||
# define SWIFT_RUNTIME_NAME(X)
|
||||
#endif
|
||||
#if __has_attribute(swift_name)
|
||||
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
|
||||
#else
|
||||
# define SWIFT_COMPILE_NAME(X)
|
||||
#endif
|
||||
#if __has_attribute(objc_method_family)
|
||||
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
|
||||
#else
|
||||
# define SWIFT_METHOD_FAMILY(X)
|
||||
#endif
|
||||
#if __has_attribute(noescape)
|
||||
# define SWIFT_NOESCAPE __attribute__((noescape))
|
||||
#else
|
||||
# define SWIFT_NOESCAPE
|
||||
#endif
|
||||
#if __has_attribute(ns_consumed)
|
||||
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
|
||||
#else
|
||||
# define SWIFT_RELEASES_ARGUMENT
|
||||
#endif
|
||||
#if __has_attribute(warn_unused_result)
|
||||
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
|
||||
#else
|
||||
# define SWIFT_WARN_UNUSED_RESULT
|
||||
#endif
|
||||
#if __has_attribute(noreturn)
|
||||
# define SWIFT_NORETURN __attribute__((noreturn))
|
||||
#else
|
||||
# define SWIFT_NORETURN
|
||||
#endif
|
||||
#if !defined(SWIFT_CLASS_EXTRA)
|
||||
# define SWIFT_CLASS_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_PROTOCOL_EXTRA)
|
||||
# define SWIFT_PROTOCOL_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_ENUM_EXTRA)
|
||||
# define SWIFT_ENUM_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_CLASS)
|
||||
# if __has_attribute(objc_subclassing_restricted)
|
||||
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
|
||||
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
||||
# else
|
||||
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
||||
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_RESILIENT_CLASS)
|
||||
# if __has_attribute(objc_class_stub)
|
||||
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
|
||||
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
||||
# else
|
||||
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
|
||||
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if !defined(SWIFT_PROTOCOL)
|
||||
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
||||
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
||||
#endif
|
||||
|
||||
#if !defined(SWIFT_EXTENSION)
|
||||
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
|
||||
#endif
|
||||
|
||||
#if !defined(OBJC_DESIGNATED_INITIALIZER)
|
||||
# if __has_attribute(objc_designated_initializer)
|
||||
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
|
||||
# else
|
||||
# define OBJC_DESIGNATED_INITIALIZER
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_ENUM_ATTR)
|
||||
# if defined(__has_attribute) && __has_attribute(enum_extensibility)
|
||||
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
|
||||
# else
|
||||
# define SWIFT_ENUM_ATTR(_extensibility)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_ENUM)
|
||||
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
||||
# if __has_feature(generalized_swift_name)
|
||||
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
||||
# else
|
||||
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_UNAVAILABLE)
|
||||
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
|
||||
#endif
|
||||
#if !defined(SWIFT_UNAVAILABLE_MSG)
|
||||
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
|
||||
#endif
|
||||
#if !defined(SWIFT_AVAILABILITY)
|
||||
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
|
||||
#endif
|
||||
#if !defined(SWIFT_WEAK_IMPORT)
|
||||
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
|
||||
#endif
|
||||
#if !defined(SWIFT_DEPRECATED)
|
||||
# define SWIFT_DEPRECATED __attribute__((deprecated))
|
||||
#endif
|
||||
#if !defined(SWIFT_DEPRECATED_MSG)
|
||||
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
|
||||
#endif
|
||||
#if __has_feature(attribute_diagnose_if_objc)
|
||||
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
|
||||
#else
|
||||
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
|
||||
#endif
|
||||
#if defined(__OBJC__)
|
||||
#if !defined(IBSegueAction)
|
||||
# define IBSegueAction
|
||||
#endif
|
||||
#endif
|
||||
#if !defined(SWIFT_EXTERN)
|
||||
# if defined(__cplusplus)
|
||||
# define SWIFT_EXTERN extern "C"
|
||||
# else
|
||||
# define SWIFT_EXTERN extern
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_CALL)
|
||||
# define SWIFT_CALL __attribute__((swiftcall))
|
||||
#endif
|
||||
#if defined(__cplusplus)
|
||||
#if !defined(SWIFT_NOEXCEPT)
|
||||
# define SWIFT_NOEXCEPT noexcept
|
||||
#endif
|
||||
#else
|
||||
#if !defined(SWIFT_NOEXCEPT)
|
||||
# define SWIFT_NOEXCEPT
|
||||
#endif
|
||||
#endif
|
||||
#if defined(__cplusplus)
|
||||
#if !defined(SWIFT_CXX_INT_DEFINED)
|
||||
#define SWIFT_CXX_INT_DEFINED
|
||||
namespace swift {
|
||||
using Int = ptrdiff_t;
|
||||
using UInt = size_t;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
#if defined(__OBJC__)
|
||||
#if __has_feature(modules)
|
||||
#if __has_warning("-Watimport-in-framework-header")
|
||||
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
||||
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
||||
#if __has_warning("-Wpragma-clang-attribute")
|
||||
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
|
||||
#endif
|
||||
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
||||
#pragma clang diagnostic ignored "-Wnullability"
|
||||
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
||||
|
||||
#if __has_attribute(external_source_symbol)
|
||||
# pragma push_macro("any")
|
||||
# undef any
|
||||
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="AntiAddictionUI",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
|
||||
# pragma pop_macro("any")
|
||||
#endif
|
||||
|
||||
#if defined(__OBJC__)
|
||||
#endif
|
||||
#if defined(__cplusplus)
|
||||
#endif
|
||||
#if __has_attribute(external_source_symbol)
|
||||
# pragma clang attribute pop
|
||||
#endif
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
#else
|
||||
#error unsupported Swift architecture
|
||||
#endif
|
||||
#endif
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e240bd116df75438c86573d39b1a6334
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
//
|
||||
// AntiAddictionUI.h
|
||||
// AntiAddictionUI
|
||||
//
|
||||
// Created by jessy on 2021/9/17.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
//! Project version number for AntiAddictionUI.
|
||||
FOUNDATION_EXPORT double AntiAddictionUIVersionNumber;
|
||||
|
||||
//! Project version string for AntiAddictionUI.
|
||||
FOUNDATION_EXPORT const unsigned char AntiAddictionUIVersionString[];
|
||||
|
||||
// In this header, you should import all the public headers of your framework using statements like #import <AntiAddictionUI/PublicHeader.h>
|
||||
|
||||
#define AntiAddictionSDK_VERSION_NUMBER @"32300001"
|
||||
#define AntiAddictionSDK_VERSION @"3.23.0"
|
||||
|
||||
#import <AntiAddictionUI/AntiAddictionConfig.h>
|
||||
#import <AntiAddictionUI/AntiAddiction.h>
|
||||
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 164e3599fdd8944bc8b22602a241b12f
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e04793551f99645c89c60fc57ae5b61d
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 74cb4222f01774a75935ca8639cbe001
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e18ad9279be3d423784d36f556b9a7c5
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 9a1e7951228834bb7910ed9b286a9d61
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue