com.tapsdk.antiaddiction 3.25.0-dev.6 → 3.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Mobile/Runtime/PluginBridge.cs +1 -1
- package/Plugins/Android/AntiAddictionUI_3.24.0.aar +0 -0
- package/Plugins/Android/{AntiAddictionUI_3.23.0.aar.meta → AntiAddictionUI_3.24.0.aar.meta} +1 -1
- package/Plugins/Android/AntiAddiction_3.24.0.aar +0 -0
- package/Plugins/Android/{AntiAddiction_3.23.0.aar.meta → AntiAddiction_3.24.0.aar.meta} +1 -1
- package/Plugins/iOS/AntiAddictionService.framework/AntiAddictionService +0 -0
- package/Plugins/iOS/AntiAddictionService.framework/Headers/AntiAddictionService-Swift.h +468 -0
- package/Plugins/iOS/AntiAddictionService.framework/Info.plist +0 -0
- package/Plugins/iOS/AntiAddictionService.framework/Modules/AntiAddictionService.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/Plugins/iOS/AntiAddictionService.framework/Modules/AntiAddictionService.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo.meta +7 -0
- package/Plugins/iOS/AntiAddictionService.framework/Modules/AntiAddictionService.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/Plugins/iOS/AntiAddictionService.framework/Modules/AntiAddictionService.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/Plugins/iOS/AntiAddictionService.framework/Modules/AntiAddictionService.swiftmodule/arm64-apple-ios-simulator.abi.json +13494 -0
- package/Plugins/iOS/AntiAddictionService.framework/Modules/AntiAddictionService.swiftmodule/arm64-apple-ios-simulator.abi.json.meta +7 -0
- package/Plugins/iOS/AntiAddictionService.framework/Modules/AntiAddictionService.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +335 -0
- package/Plugins/iOS/AntiAddictionService.framework/Modules/AntiAddictionService.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface.meta +7 -0
- package/Plugins/iOS/AntiAddictionService.framework/Modules/AntiAddictionService.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/Plugins/iOS/AntiAddictionService.framework/Modules/AntiAddictionService.swiftmodule/arm64-apple-ios-simulator.swiftdoc.meta +7 -0
- package/Plugins/iOS/AntiAddictionService.framework/Modules/AntiAddictionService.swiftmodule/arm64-apple-ios-simulator.swiftinterface +335 -0
- package/Plugins/iOS/AntiAddictionService.framework/Modules/AntiAddictionService.swiftmodule/arm64-apple-ios-simulator.swiftinterface.meta +7 -0
- package/Plugins/iOS/AntiAddictionService.framework/Modules/AntiAddictionService.swiftmodule/arm64-apple-ios-simulator.swiftmodule +0 -0
- package/Plugins/iOS/AntiAddictionService.framework/Modules/AntiAddictionService.swiftmodule/arm64-apple-ios-simulator.swiftmodule.meta +7 -0
- package/Plugins/iOS/AntiAddictionService.framework/Modules/AntiAddictionService.swiftmodule/arm64-apple-ios.private.swiftinterface +1 -1
- package/Plugins/iOS/AntiAddictionService.framework/Modules/AntiAddictionService.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/Plugins/iOS/AntiAddictionService.framework/Modules/AntiAddictionService.swiftmodule/arm64-apple-ios.swiftinterface +1 -1
- package/Plugins/iOS/AntiAddictionService.framework/Modules/AntiAddictionService.swiftmodule/arm64-apple-ios.swiftmodule +0 -0
- package/Plugins/iOS/AntiAddictionService.framework/Modules/AntiAddictionService.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +1 -1
- package/Plugins/iOS/AntiAddictionService.framework/Modules/AntiAddictionService.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/Plugins/iOS/AntiAddictionService.framework/Modules/AntiAddictionService.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +1 -1
- package/Plugins/iOS/AntiAddictionService.framework/Modules/AntiAddictionService.swiftmodule/x86_64-apple-ios-simulator.swiftmodule +0 -0
- package/Plugins/iOS/AntiAddictionUI.framework/AntiAddictionUI +0 -0
- package/Plugins/iOS/AntiAddictionUI.framework/Headers/AntiAddictionUI-Swift.h +260 -0
- package/Plugins/iOS/AntiAddictionUI.framework/Headers/AntiAddictionUI.h +2 -2
- package/Plugins/iOS/AntiAddictionUI.framework/Info.plist +0 -0
- package/Plugins/iOS/AntiAddictionUI.framework/Modules/AntiAddictionUI.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/Plugins/iOS/AntiAddictionUI.framework/Modules/AntiAddictionUI.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo.meta +7 -0
- package/Plugins/iOS/AntiAddictionUI.framework/Modules/AntiAddictionUI.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/Plugins/iOS/AntiAddictionUI.framework/Modules/AntiAddictionUI.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/Plugins/iOS/AntiAddictionUI.framework/Modules/AntiAddictionUI.swiftmodule/arm64-apple-ios-simulator.abi.json +21 -0
- package/Plugins/iOS/AntiAddictionUI.framework/Modules/AntiAddictionUI.swiftmodule/arm64-apple-ios-simulator.abi.json.meta +7 -0
- package/Plugins/iOS/AntiAddictionUI.framework/Modules/AntiAddictionUI.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +9 -0
- package/Plugins/iOS/AntiAddictionUI.framework/Modules/AntiAddictionUI.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface.meta +7 -0
- package/Plugins/iOS/AntiAddictionUI.framework/Modules/AntiAddictionUI.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/Plugins/iOS/AntiAddictionUI.framework/Modules/AntiAddictionUI.swiftmodule/arm64-apple-ios-simulator.swiftdoc.meta +7 -0
- package/Plugins/iOS/AntiAddictionUI.framework/Modules/AntiAddictionUI.swiftmodule/arm64-apple-ios-simulator.swiftinterface +9 -0
- package/Plugins/iOS/AntiAddictionUI.framework/Modules/AntiAddictionUI.swiftmodule/arm64-apple-ios-simulator.swiftinterface.meta +7 -0
- package/Plugins/iOS/AntiAddictionUI.framework/Modules/AntiAddictionUI.swiftmodule/arm64-apple-ios-simulator.swiftmodule +0 -0
- package/Plugins/iOS/AntiAddictionUI.framework/Modules/AntiAddictionUI.swiftmodule/arm64-apple-ios-simulator.swiftmodule.meta +7 -0
- package/Plugins/iOS/AntiAddictionUI.framework/Modules/AntiAddictionUI.swiftmodule/arm64-apple-ios.abi.json +12 -0
- package/Plugins/iOS/AntiAddictionUI.framework/Modules/AntiAddictionUI.swiftmodule/arm64-apple-ios.private.swiftinterface +9 -0
- package/Plugins/iOS/AntiAddictionUI.framework/Modules/AntiAddictionUI.swiftmodule/arm64-apple-ios.private.swiftinterface.meta +7 -0
- package/Plugins/iOS/AntiAddictionUI.framework/Modules/AntiAddictionUI.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/Plugins/iOS/AntiAddictionUI.framework/Modules/AntiAddictionUI.swiftmodule/arm64-apple-ios.swiftinterface +9 -0
- package/Plugins/iOS/AntiAddictionUI.framework/Modules/AntiAddictionUI.swiftmodule/arm64-apple-ios.swiftinterface.meta +7 -0
- package/Plugins/iOS/AntiAddictionUI.framework/Modules/AntiAddictionUI.swiftmodule/arm64-apple-ios.swiftmodule +0 -0
- package/Plugins/iOS/AntiAddictionUI.framework/Modules/AntiAddictionUI.swiftmodule/x86_64-apple-ios-simulator.abi.json +12 -0
- package/Plugins/iOS/AntiAddictionUI.framework/Modules/AntiAddictionUI.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +9 -0
- package/Plugins/iOS/AntiAddictionUI.framework/Modules/AntiAddictionUI.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface.meta +7 -0
- package/Plugins/iOS/AntiAddictionUI.framework/Modules/AntiAddictionUI.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/Plugins/iOS/AntiAddictionUI.framework/Modules/AntiAddictionUI.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +9 -0
- package/Plugins/iOS/AntiAddictionUI.framework/Modules/AntiAddictionUI.swiftmodule/x86_64-apple-ios-simulator.swiftinterface.meta +7 -0
- package/Plugins/iOS/AntiAddictionUI.framework/Modules/AntiAddictionUI.swiftmodule/x86_64-apple-ios-simulator.swiftmodule +0 -0
- package/package.json +2 -2
- package/Plugins/Android/AntiAddictionUI_3.23.0.aar +0 -0
- package/Plugins/Android/AntiAddiction_3.23.0.aar +0 -0
|
@@ -8,7 +8,7 @@ namespace Plugins.AntiAddictionUIKit
|
|
|
8
8
|
public static class AntiAddictionUIKit
|
|
9
9
|
{
|
|
10
10
|
// Game object is created to receive async messages
|
|
11
|
-
private const string UNITY_SDK_VERSION = "3.
|
|
11
|
+
private const string UNITY_SDK_VERSION = "3.26.0";
|
|
12
12
|
private const string GAME_OBJECT_NAME = "PluginBridge";
|
|
13
13
|
private static GameObject gameObject;
|
|
14
14
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,473 @@
|
|
|
1
1
|
#if TARGET_OS_SIMULATOR
|
|
2
2
|
#if 0
|
|
3
|
+
#elif defined(__arm64__) && __arm64__
|
|
4
|
+
// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
|
|
5
|
+
#ifndef ANTIADDICTIONSERVICE_SWIFT_H
|
|
6
|
+
#define ANTIADDICTIONSERVICE_SWIFT_H
|
|
7
|
+
#pragma clang diagnostic push
|
|
8
|
+
#pragma clang diagnostic ignored "-Wgcc-compat"
|
|
9
|
+
|
|
10
|
+
#if !defined(__has_include)
|
|
11
|
+
# define __has_include(x) 0
|
|
12
|
+
#endif
|
|
13
|
+
#if !defined(__has_attribute)
|
|
14
|
+
# define __has_attribute(x) 0
|
|
15
|
+
#endif
|
|
16
|
+
#if !defined(__has_feature)
|
|
17
|
+
# define __has_feature(x) 0
|
|
18
|
+
#endif
|
|
19
|
+
#if !defined(__has_warning)
|
|
20
|
+
# define __has_warning(x) 0
|
|
21
|
+
#endif
|
|
22
|
+
|
|
23
|
+
#if __has_include(<swift/objc-prologue.h>)
|
|
24
|
+
# include <swift/objc-prologue.h>
|
|
25
|
+
#endif
|
|
26
|
+
|
|
27
|
+
#pragma clang diagnostic ignored "-Wduplicate-method-match"
|
|
28
|
+
#pragma clang diagnostic ignored "-Wauto-import"
|
|
29
|
+
#if defined(__OBJC__)
|
|
30
|
+
#include <Foundation/Foundation.h>
|
|
31
|
+
#endif
|
|
32
|
+
#if defined(__cplusplus)
|
|
33
|
+
#include <cstdint>
|
|
34
|
+
#include <cstddef>
|
|
35
|
+
#include <cstdbool>
|
|
36
|
+
#else
|
|
37
|
+
#include <stdint.h>
|
|
38
|
+
#include <stddef.h>
|
|
39
|
+
#include <stdbool.h>
|
|
40
|
+
#endif
|
|
41
|
+
|
|
42
|
+
#if !defined(SWIFT_TYPEDEFS)
|
|
43
|
+
# define SWIFT_TYPEDEFS 1
|
|
44
|
+
# if __has_include(<uchar.h>)
|
|
45
|
+
# include <uchar.h>
|
|
46
|
+
# elif !defined(__cplusplus)
|
|
47
|
+
typedef uint_least16_t char16_t;
|
|
48
|
+
typedef uint_least32_t char32_t;
|
|
49
|
+
# endif
|
|
50
|
+
typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
|
|
51
|
+
typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
|
|
52
|
+
typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
|
|
53
|
+
typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
|
|
54
|
+
typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
|
|
55
|
+
typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
|
|
56
|
+
typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
|
|
57
|
+
typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
|
|
58
|
+
typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
|
|
59
|
+
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
|
|
60
|
+
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
|
|
61
|
+
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
62
|
+
#endif
|
|
63
|
+
|
|
64
|
+
#if !defined(SWIFT_PASTE)
|
|
65
|
+
# define SWIFT_PASTE_HELPER(x, y) x##y
|
|
66
|
+
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
|
|
67
|
+
#endif
|
|
68
|
+
#if !defined(SWIFT_METATYPE)
|
|
69
|
+
# define SWIFT_METATYPE(X) Class
|
|
70
|
+
#endif
|
|
71
|
+
#if !defined(SWIFT_CLASS_PROPERTY)
|
|
72
|
+
# if __has_feature(objc_class_property)
|
|
73
|
+
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
|
|
74
|
+
# else
|
|
75
|
+
# define SWIFT_CLASS_PROPERTY(...)
|
|
76
|
+
# endif
|
|
77
|
+
#endif
|
|
78
|
+
|
|
79
|
+
#if __has_attribute(objc_runtime_name)
|
|
80
|
+
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
|
|
81
|
+
#else
|
|
82
|
+
# define SWIFT_RUNTIME_NAME(X)
|
|
83
|
+
#endif
|
|
84
|
+
#if __has_attribute(swift_name)
|
|
85
|
+
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
|
|
86
|
+
#else
|
|
87
|
+
# define SWIFT_COMPILE_NAME(X)
|
|
88
|
+
#endif
|
|
89
|
+
#if __has_attribute(objc_method_family)
|
|
90
|
+
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
|
|
91
|
+
#else
|
|
92
|
+
# define SWIFT_METHOD_FAMILY(X)
|
|
93
|
+
#endif
|
|
94
|
+
#if __has_attribute(noescape)
|
|
95
|
+
# define SWIFT_NOESCAPE __attribute__((noescape))
|
|
96
|
+
#else
|
|
97
|
+
# define SWIFT_NOESCAPE
|
|
98
|
+
#endif
|
|
99
|
+
#if __has_attribute(ns_consumed)
|
|
100
|
+
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
|
|
101
|
+
#else
|
|
102
|
+
# define SWIFT_RELEASES_ARGUMENT
|
|
103
|
+
#endif
|
|
104
|
+
#if __has_attribute(warn_unused_result)
|
|
105
|
+
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
|
|
106
|
+
#else
|
|
107
|
+
# define SWIFT_WARN_UNUSED_RESULT
|
|
108
|
+
#endif
|
|
109
|
+
#if __has_attribute(noreturn)
|
|
110
|
+
# define SWIFT_NORETURN __attribute__((noreturn))
|
|
111
|
+
#else
|
|
112
|
+
# define SWIFT_NORETURN
|
|
113
|
+
#endif
|
|
114
|
+
#if !defined(SWIFT_CLASS_EXTRA)
|
|
115
|
+
# define SWIFT_CLASS_EXTRA
|
|
116
|
+
#endif
|
|
117
|
+
#if !defined(SWIFT_PROTOCOL_EXTRA)
|
|
118
|
+
# define SWIFT_PROTOCOL_EXTRA
|
|
119
|
+
#endif
|
|
120
|
+
#if !defined(SWIFT_ENUM_EXTRA)
|
|
121
|
+
# define SWIFT_ENUM_EXTRA
|
|
122
|
+
#endif
|
|
123
|
+
#if !defined(SWIFT_CLASS)
|
|
124
|
+
# if __has_attribute(objc_subclassing_restricted)
|
|
125
|
+
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
|
|
126
|
+
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
|
127
|
+
# else
|
|
128
|
+
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
|
129
|
+
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
|
130
|
+
# endif
|
|
131
|
+
#endif
|
|
132
|
+
#if !defined(SWIFT_RESILIENT_CLASS)
|
|
133
|
+
# if __has_attribute(objc_class_stub)
|
|
134
|
+
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
|
|
135
|
+
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
|
136
|
+
# else
|
|
137
|
+
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
|
|
138
|
+
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
|
139
|
+
# endif
|
|
140
|
+
#endif
|
|
141
|
+
|
|
142
|
+
#if !defined(SWIFT_PROTOCOL)
|
|
143
|
+
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
|
144
|
+
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
|
145
|
+
#endif
|
|
146
|
+
|
|
147
|
+
#if !defined(SWIFT_EXTENSION)
|
|
148
|
+
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
|
|
149
|
+
#endif
|
|
150
|
+
|
|
151
|
+
#if !defined(OBJC_DESIGNATED_INITIALIZER)
|
|
152
|
+
# if __has_attribute(objc_designated_initializer)
|
|
153
|
+
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
|
|
154
|
+
# else
|
|
155
|
+
# define OBJC_DESIGNATED_INITIALIZER
|
|
156
|
+
# endif
|
|
157
|
+
#endif
|
|
158
|
+
#if !defined(SWIFT_ENUM_ATTR)
|
|
159
|
+
# if defined(__has_attribute) && __has_attribute(enum_extensibility)
|
|
160
|
+
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
|
|
161
|
+
# else
|
|
162
|
+
# define SWIFT_ENUM_ATTR(_extensibility)
|
|
163
|
+
# endif
|
|
164
|
+
#endif
|
|
165
|
+
#if !defined(SWIFT_ENUM)
|
|
166
|
+
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
|
167
|
+
# if __has_feature(generalized_swift_name)
|
|
168
|
+
# 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
|
|
169
|
+
# else
|
|
170
|
+
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
|
|
171
|
+
# endif
|
|
172
|
+
#endif
|
|
173
|
+
#if !defined(SWIFT_UNAVAILABLE)
|
|
174
|
+
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
|
|
175
|
+
#endif
|
|
176
|
+
#if !defined(SWIFT_UNAVAILABLE_MSG)
|
|
177
|
+
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
|
|
178
|
+
#endif
|
|
179
|
+
#if !defined(SWIFT_AVAILABILITY)
|
|
180
|
+
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
|
|
181
|
+
#endif
|
|
182
|
+
#if !defined(SWIFT_WEAK_IMPORT)
|
|
183
|
+
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
|
|
184
|
+
#endif
|
|
185
|
+
#if !defined(SWIFT_DEPRECATED)
|
|
186
|
+
# define SWIFT_DEPRECATED __attribute__((deprecated))
|
|
187
|
+
#endif
|
|
188
|
+
#if !defined(SWIFT_DEPRECATED_MSG)
|
|
189
|
+
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
|
|
190
|
+
#endif
|
|
191
|
+
#if __has_feature(attribute_diagnose_if_objc)
|
|
192
|
+
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
|
|
193
|
+
#else
|
|
194
|
+
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
|
|
195
|
+
#endif
|
|
196
|
+
#if defined(__OBJC__)
|
|
197
|
+
#if !defined(IBSegueAction)
|
|
198
|
+
# define IBSegueAction
|
|
199
|
+
#endif
|
|
200
|
+
#endif
|
|
201
|
+
#if !defined(SWIFT_EXTERN)
|
|
202
|
+
# if defined(__cplusplus)
|
|
203
|
+
# define SWIFT_EXTERN extern "C"
|
|
204
|
+
# else
|
|
205
|
+
# define SWIFT_EXTERN extern
|
|
206
|
+
# endif
|
|
207
|
+
#endif
|
|
208
|
+
#if !defined(SWIFT_CALL)
|
|
209
|
+
# define SWIFT_CALL __attribute__((swiftcall))
|
|
210
|
+
#endif
|
|
211
|
+
#if defined(__cplusplus)
|
|
212
|
+
#if !defined(SWIFT_NOEXCEPT)
|
|
213
|
+
# define SWIFT_NOEXCEPT noexcept
|
|
214
|
+
#endif
|
|
215
|
+
#else
|
|
216
|
+
#if !defined(SWIFT_NOEXCEPT)
|
|
217
|
+
# define SWIFT_NOEXCEPT
|
|
218
|
+
#endif
|
|
219
|
+
#endif
|
|
220
|
+
#if defined(__cplusplus)
|
|
221
|
+
#if !defined(SWIFT_CXX_INT_DEFINED)
|
|
222
|
+
#define SWIFT_CXX_INT_DEFINED
|
|
223
|
+
namespace swift {
|
|
224
|
+
using Int = ptrdiff_t;
|
|
225
|
+
using UInt = size_t;
|
|
226
|
+
}
|
|
227
|
+
#endif
|
|
228
|
+
#endif
|
|
229
|
+
#if defined(__OBJC__)
|
|
230
|
+
#if __has_feature(modules)
|
|
231
|
+
#if __has_warning("-Watimport-in-framework-header")
|
|
232
|
+
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
233
|
+
#endif
|
|
234
|
+
@import Foundation;
|
|
235
|
+
@import ObjectiveC;
|
|
236
|
+
#endif
|
|
237
|
+
|
|
238
|
+
#endif
|
|
239
|
+
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
|
240
|
+
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
|
241
|
+
#if __has_warning("-Wpragma-clang-attribute")
|
|
242
|
+
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
|
|
243
|
+
#endif
|
|
244
|
+
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
|
245
|
+
#pragma clang diagnostic ignored "-Wnullability"
|
|
246
|
+
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
|
247
|
+
|
|
248
|
+
#if __has_attribute(external_source_symbol)
|
|
249
|
+
# pragma push_macro("any")
|
|
250
|
+
# undef any
|
|
251
|
+
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="AntiAddictionService",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
|
|
252
|
+
# pragma pop_macro("any")
|
|
253
|
+
#endif
|
|
254
|
+
|
|
255
|
+
#if defined(__OBJC__)
|
|
256
|
+
@class NSString;
|
|
257
|
+
|
|
258
|
+
SWIFT_CLASS("_TtC20AntiAddictionService26AntiAddictionConfiguration")
|
|
259
|
+
@interface AntiAddictionConfiguration : NSObject
|
|
260
|
+
@property (nonatomic) BOOL enableLog;
|
|
261
|
+
@property (nonatomic) BOOL needUploadUserAction;
|
|
262
|
+
@property (nonatomic) BOOL isServerError;
|
|
263
|
+
- (BOOL)getShouldStandAloneWithResultBlock:(void (^ _Nullable)(BOOL))resultBlock;
|
|
264
|
+
- (BOOL)getShouldUseLocalAuthIdentifierWithResultBlock:(void (^ _Nullable)(BOOL))resultBlock;
|
|
265
|
+
/// 游戏标识,多端统一用
|
|
266
|
+
@property (nonatomic, copy) NSString * _Nullable gameIdentifier;
|
|
267
|
+
///
|
|
268
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull bundleId;
|
|
269
|
+
/// AAKit 在线时长限制开关,默认值为 true
|
|
270
|
+
@property (nonatomic) BOOL useSdkOnlineTimeLimit;
|
|
271
|
+
/// AAKit 支付限制开关,默认值为 true
|
|
272
|
+
@property (nonatomic) BOOL useSdkPaymentLimit;
|
|
273
|
+
/// AAKit 是否显示切换账号,默认值为true
|
|
274
|
+
@property (nonatomic) BOOL showSwitchAccount;
|
|
275
|
+
/// 未成年人非节假日每日总时长 单位秒
|
|
276
|
+
@property (nonatomic) NSInteger minorCommonDayTotalTime;
|
|
277
|
+
/// 未成年人节假日每日总时长 单位秒
|
|
278
|
+
@property (nonatomic) NSInteger minorHolidayTotalTime;
|
|
279
|
+
/// 游客每日总时长(无节假日区分)单位秒
|
|
280
|
+
@property (nonatomic) NSInteger guestTotalTime;
|
|
281
|
+
/// 第一次提醒剩余游戏时间时的剩余时长 单位秒
|
|
282
|
+
@property (nonatomic) NSInteger firstAlertTipRemainTime;
|
|
283
|
+
/// 展示倒计时浮窗时的剩余时长 单位秒
|
|
284
|
+
@property (nonatomic) NSInteger countdownAlertTipRemainTime;
|
|
285
|
+
/// 宵禁开始时间(整数,小时,24小时进制,默认22)
|
|
286
|
+
@property (nonatomic) NSInteger curfewHourStart;
|
|
287
|
+
/// 宵禁结束时间(整数,小时,24小时进制,默认8)
|
|
288
|
+
@property (nonatomic) NSInteger curfewHourEnd;
|
|
289
|
+
/// 宵禁开始时间(字符串,格式为<code>小时:分钟</code>,24小时进制,默认<code>22:00</code>)方便配置具体到分钟
|
|
290
|
+
@property (nonatomic, copy) NSString * _Nonnull nightStrictStart;
|
|
291
|
+
/// 宵禁结束时间(整数,格式为<code>小时:分钟</code>,24小时进制,默认8)方便配置具体到分钟
|
|
292
|
+
@property (nonatomic, copy) NSString * _Nonnull nightStrictEnd;
|
|
293
|
+
/// 8-15岁单笔付费额度限制,单位分(默认5000分)
|
|
294
|
+
@property (nonatomic) NSInteger singlePaymentAmountLimitJunior;
|
|
295
|
+
/// 8-15岁每月总付费额度限制,单位分(默认20000分)
|
|
296
|
+
@property (nonatomic) NSInteger mouthTotalPaymentAmountLimitJunior;
|
|
297
|
+
/// 16-17岁单笔付费额度限制,单位分(默认10000分)
|
|
298
|
+
@property (nonatomic) NSInteger singlePaymentAmountLimitSenior;
|
|
299
|
+
/// 16-17岁每月总付费额度限制,单位分(默认40000分)
|
|
300
|
+
@property (nonatomic) NSInteger mouthTotalPaymentAmountLimitSenior;
|
|
301
|
+
@property (nonatomic, copy) NSArray<NSString *> * _Nonnull holiday;
|
|
302
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
303
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
304
|
+
@end
|
|
305
|
+
|
|
306
|
+
typedef SWIFT_ENUM(NSInteger, AntiAddictionRealNameAgeLimit, open) {
|
|
307
|
+
AntiAddictionRealNameAgeLimitUnrealname = -1,
|
|
308
|
+
AntiAddictionRealNameAgeLimitChild = 0,
|
|
309
|
+
AntiAddictionRealNameAgeLimitTeen = 8,
|
|
310
|
+
AntiAddictionRealNameAgeLimitYoung = 16,
|
|
311
|
+
AntiAddictionRealNameAgeLimitAdult = 18,
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
typedef SWIFT_ENUM(NSInteger, AntiAddictionRealNameAuthState, open) {
|
|
315
|
+
AntiAddictionRealNameAuthStateSuccess = 0,
|
|
316
|
+
AntiAddictionRealNameAuthStateVerifying = 1,
|
|
317
|
+
AntiAddictionRealNameAuthStateFail = 2,
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
@protocol AntiAddictionServiceCallback;
|
|
321
|
+
@class NSError;
|
|
322
|
+
|
|
323
|
+
SWIFT_CLASS_NAMED("AntiAddictionService")
|
|
324
|
+
@interface AntiAddictionService : NSObject
|
|
325
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull LocalTokenString;)
|
|
326
|
+
+ (NSString * _Nonnull)LocalTokenString SWIFT_WARN_UNUSED_RESULT;
|
|
327
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class) BOOL UseTestEnv;)
|
|
328
|
+
+ (BOOL)UseTestEnv SWIFT_WARN_UNUSED_RESULT;
|
|
329
|
+
+ (void)setUseTestEnv:(BOOL)value;
|
|
330
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) AntiAddictionConfiguration * _Nonnull configuration;)
|
|
331
|
+
+ (AntiAddictionConfiguration * _Nonnull)configuration SWIFT_WARN_UNUSED_RESULT;
|
|
332
|
+
+ (void)setConfiguration:(AntiAddictionConfiguration * _Nonnull)value;
|
|
333
|
+
+ (NSString * _Nonnull)getSDKVersion SWIFT_WARN_UNUSED_RESULT;
|
|
334
|
+
+ (void)enableLogWithEnable:(BOOL)enable;
|
|
335
|
+
/// AAKit 配置方法
|
|
336
|
+
/// \param useSdkRealName 实名登记开关,默认值为 true
|
|
337
|
+
///
|
|
338
|
+
/// \param useSdkPaymentLimit 支付限制开关,默认值为 true
|
|
339
|
+
///
|
|
340
|
+
/// \param useSdkOnlineTimeLimit 在线时长限制开关,默认值为 true
|
|
341
|
+
///
|
|
342
|
+
+ (void)setFunctionConfig:(BOOL)useSdkPaymentLimit :(BOOL)useSdkOnlineTimeLimit;
|
|
343
|
+
/// AAKit 配置方法
|
|
344
|
+
/// \param useSdkPaymentLimit 支付限制开关,默认值为 true
|
|
345
|
+
///
|
|
346
|
+
/// \param useSdkOnlineTimeLimit 在线时长限制开关,默认值为 true
|
|
347
|
+
///
|
|
348
|
+
/// \param showSwitchAccount 是否显示切换账号按钮,
|
|
349
|
+
///
|
|
350
|
+
+ (void)setFunctionConfig:(BOOL)useSdkPaymentLimit :(BOOL)useSdkOnlineTimeLimit :(BOOL)showSwitchAccount;
|
|
351
|
+
+ (void)getConfig:(NSString * _Nonnull)clinentId completionHandler:(void (^ _Nullable)(BOOL))completionHandler;
|
|
352
|
+
/// 初始化 SDK
|
|
353
|
+
/// \param delegate 接收回调代理
|
|
354
|
+
///
|
|
355
|
+
/// \param gameIdentifier 游戏唯一标识符
|
|
356
|
+
///
|
|
357
|
+
+ (void)init:(id <AntiAddictionServiceCallback> _Nonnull)delegate gameIdentifier:(NSString * _Nullable)gameIdentifier SWIFT_METHOD_FAMILY(none);
|
|
358
|
+
+ (void)fastRealNameWithClientId:(NSString * _Nonnull)clientId userId:(NSString * _Nonnull)userId tapToken:(NSString * _Nonnull)tapToken completion:(void (^ _Nonnull)(enum AntiAddictionRealNameAuthState, NSString * _Nonnull, enum AntiAddictionRealNameAgeLimit))completion failureHandler:(void (^ _Nonnull)(NSError * _Nonnull))failureHandler;
|
|
359
|
+
/// 登录用户
|
|
360
|
+
/// \param userToken 用户唯一标识符,
|
|
361
|
+
///
|
|
362
|
+
/// \param accessToken 实名服务签算JwtToken
|
|
363
|
+
///
|
|
364
|
+
/// \param ageLimit 年龄限制
|
|
365
|
+
///
|
|
366
|
+
+ (void)loginWithUserToken:(NSString * _Nonnull)userToken accessToken:(NSString * _Nonnull)accessToken ageLimit:(enum AntiAddictionRealNameAgeLimit)ageLimit;
|
|
367
|
+
/// 进入游戏
|
|
368
|
+
+ (void)enterGame;
|
|
369
|
+
+ (void)enterGameWithIsActive:(BOOL)isActive;
|
|
370
|
+
/// 离开游戏
|
|
371
|
+
+ (void)leaveGame;
|
|
372
|
+
/// 退出用户登录
|
|
373
|
+
+ (void)logout;
|
|
374
|
+
/// 用户切换账号
|
|
375
|
+
+ (void)switchAccount;
|
|
376
|
+
/// 获取用户类型
|
|
377
|
+
/// \param userId 用户 id
|
|
378
|
+
///
|
|
379
|
+
+ (NSInteger)getCurrentUserAgeLimite SWIFT_WARN_UNUSED_RESULT;
|
|
380
|
+
/// 获取当前防沉迷Token
|
|
381
|
+
/// \param userId 用户 id
|
|
382
|
+
///
|
|
383
|
+
+ (NSString * _Nonnull)currentToken SWIFT_WARN_UNUSED_RESULT;
|
|
384
|
+
/// 获取用户剩余时长
|
|
385
|
+
+ (NSInteger)currentUserRemainingTime SWIFT_WARN_UNUSED_RESULT;
|
|
386
|
+
/// 是否是单机模式
|
|
387
|
+
+ (BOOL)isStandAlone SWIFT_WARN_UNUSED_RESULT;
|
|
388
|
+
+ (NSString * _Nonnull)getchildNightStrictRemainDesc SWIFT_WARN_UNUSED_RESULT;
|
|
389
|
+
/// 查询能否支付,直接返回支付限制相关回调类型 raw value,特殊情况使用
|
|
390
|
+
/// \param amount 支付金额,单位分
|
|
391
|
+
///
|
|
392
|
+
+ (NSInteger)checkCurrentPayLimit:(NSInteger)amount SWIFT_WARN_UNUSED_RESULT;
|
|
393
|
+
/// 查询能否支付
|
|
394
|
+
/// \param amount 支付金额,单位分
|
|
395
|
+
///
|
|
396
|
+
/// \param status true:可以付费 false:限制消费
|
|
397
|
+
///
|
|
398
|
+
/// \param title 限制消费时提示标题
|
|
399
|
+
///
|
|
400
|
+
/// \param description 限制消费提示国家法规内容
|
|
401
|
+
///
|
|
402
|
+
+ (void)checkPayLimit:(NSInteger)amount callBack:(void (^ _Nullable)(BOOL, NSString * _Nonnull, NSString * _Nonnull))callBack failureHandler:(void (^ _Nullable)(NSString * _Nonnull))failureHandler;
|
|
403
|
+
/// 上报消费结果
|
|
404
|
+
/// \param amount 支付金额,单位分
|
|
405
|
+
///
|
|
406
|
+
+ (void)submitPayResult:(NSInteger)amount :(void (^ _Nullable)(BOOL))callBack :(void (^ _Nullable)(NSString * _Nonnull))failureHandler;
|
|
407
|
+
+ (BOOL)isHoliday SWIFT_WARN_UNUSED_RESULT;
|
|
408
|
+
/// 生成身份证兑换码(有效期从生成起6个小时整以内)
|
|
409
|
+
+ (NSString * _Nonnull)generateIDCode SWIFT_WARN_UNUSED_RESULT;
|
|
410
|
+
+ (void)startTimeStatic;
|
|
411
|
+
+ (void)stopTimeStatic;
|
|
412
|
+
/// 实名认证
|
|
413
|
+
/// \param userToken 用户唯一标识,如用户 ID
|
|
414
|
+
///
|
|
415
|
+
/// \param name 姓名
|
|
416
|
+
///
|
|
417
|
+
/// \param idCard 身份证
|
|
418
|
+
///
|
|
419
|
+
/// \param completion 结果回调
|
|
420
|
+
///
|
|
421
|
+
+ (void)realNameAuthWithClientId:(NSString * _Nonnull)clientId userId:(NSString * _Nonnull)userId code:(NSString * _Nonnull)code name:(NSString * _Nonnull)name idCard:(NSString * _Nonnull)idCard isFallBack:(BOOL)isFallBack completion:(void (^ _Nonnull)(enum AntiAddictionRealNameAuthState, NSString * _Nonnull, enum AntiAddictionRealNameAgeLimit))completion failureHandler:(void (^ _Nonnull)(NSString * _Nonnull))failureHandler;
|
|
422
|
+
/// 检查实名状态
|
|
423
|
+
/// \param userToken 用户唯一标识,如用户 ID
|
|
424
|
+
///
|
|
425
|
+
/// \param completion 结果回调
|
|
426
|
+
///
|
|
427
|
+
+ (void)checkRealnameStateWithClientId:(NSString * _Nonnull)clientId userId:(NSString * _Nonnull)userId completion:(void (^ _Nonnull)(enum AntiAddictionRealNameAuthState, NSString * _Nonnull, enum AntiAddictionRealNameAgeLimit))completion failureHandler:(void (^ _Nonnull)(NSString * _Nonnull))failureHandler;
|
|
428
|
+
/// 检查TapTap实名状态
|
|
429
|
+
/// \param userToken 用户唯一标识,如用户 ID
|
|
430
|
+
///
|
|
431
|
+
/// \param completion 结果回调
|
|
432
|
+
///
|
|
433
|
+
+ (void)checkTapTapRealnameStateWithClientId:(NSString * _Nonnull)clientId userId:(NSString * _Nonnull)userId code:(NSString * _Nonnull)code completion:(void (^ _Nonnull)(enum AntiAddictionRealNameAuthState, NSString * _Nonnull, enum AntiAddictionRealNameAgeLimit))completion failureHandler:(void (^ _Nonnull)(NSString * _Nonnull))failureHandler;
|
|
434
|
+
+ (NSString * _Nullable)checkPlayTimeResultWithHandler:(void (^ _Nonnull)(NSString * _Nullable))handler SWIFT_WARN_UNUSED_RESULT;
|
|
435
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
436
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
437
|
+
@end
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
SWIFT_PROTOCOL("_TtP20AntiAddictionService28AntiAddictionServiceCallback_")
|
|
442
|
+
@protocol AntiAddictionServiceCallback <NSObject>
|
|
443
|
+
/// 回调
|
|
444
|
+
/// \param code 回调code
|
|
445
|
+
///
|
|
446
|
+
/// \param extra 回调信息
|
|
447
|
+
///
|
|
448
|
+
- (void)onCallbackWithCode:(NSInteger)code extra:(NSString * _Nullable)extra;
|
|
449
|
+
@end
|
|
450
|
+
|
|
451
|
+
typedef SWIFT_ENUM(NSInteger, AntiAddictionServiceResult, open) {
|
|
452
|
+
AntiAddictionServiceResultLoginSuccess = 500,
|
|
453
|
+
AntiAddictionServiceResultLogout = 1000,
|
|
454
|
+
AntiAddictionServiceResultSwitchAccount = 1001,
|
|
455
|
+
AntiAddictionServiceResultPeriodRestrict = 1030,
|
|
456
|
+
AntiAddictionServiceResultDurationLimit = 1050,
|
|
457
|
+
AntiAddictionServiceResultOpenAlertTip = 1095,
|
|
458
|
+
AntiAddictionServiceResultPayLimitNone = 1020,
|
|
459
|
+
AntiAddictionServiceResultPayLimitReachLimit = 1025,
|
|
460
|
+
};
|
|
461
|
+
|
|
462
|
+
#endif
|
|
463
|
+
#if defined(__cplusplus)
|
|
464
|
+
#endif
|
|
465
|
+
#if __has_attribute(external_source_symbol)
|
|
466
|
+
# pragma clang attribute pop
|
|
467
|
+
#endif
|
|
468
|
+
#pragma clang diagnostic pop
|
|
469
|
+
#endif
|
|
470
|
+
|
|
3
471
|
#elif defined(__x86_64__) && __x86_64__
|
|
4
472
|
// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
|
|
5
473
|
#ifndef ANTIADDICTIONSERVICE_SWIFT_H
|
|
Binary file
|
|
Binary file
|
|
Binary file
|