keytops-game-framework 1.0.4 → 1.0.5
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.
|
@@ -5,6 +5,7 @@ import { IPublisherManager } from "./IPublisherManager";
|
|
|
5
5
|
* 负责在通用运行时中检测平台并启用对应能力。
|
|
6
6
|
*/
|
|
7
7
|
export declare class PublisherManagerImpl extends IPublisherManager {
|
|
8
|
+
static KEY: string;
|
|
8
9
|
private _customAppInfo;
|
|
9
10
|
constructor(customAppInfo?: PublisherAppInfoStruct);
|
|
10
11
|
private _init;
|
package/dist/index.js
CHANGED
|
@@ -3006,7 +3006,6 @@ function remoteConfig(method, gameFlag = "default", injectorKey) {
|
|
|
3006
3006
|
remoteConfigRegistry.register(target, method, gameFlag, injectorKey);
|
|
3007
3007
|
};
|
|
3008
3008
|
}
|
|
3009
|
-
remoteConfigRegistry.register(BaseOnlineConfig, "config", "default");
|
|
3010
3009
|
|
|
3011
3010
|
/**
|
|
3012
3011
|
* system 端口默认配置,承载 SDK 基础运行时能力。
|
|
@@ -3101,22 +3100,6 @@ let SystemOnlineConfig = class SystemOnlineConfig extends BaseOnlineConfig {
|
|
|
3101
3100
|
SystemOnlineConfig = __decorate([
|
|
3102
3101
|
remoteConfig("system")
|
|
3103
3102
|
], SystemOnlineConfig);
|
|
3104
|
-
function resolveSystemUrl(path = "", config = new SystemOnlineConfig()) {
|
|
3105
|
-
const urlConfig = config.url;
|
|
3106
|
-
const resolvedPath = path.replace(/\{appid\}/g, publisher.appId);
|
|
3107
|
-
if (/^https?:\/\//.test(resolvedPath)) {
|
|
3108
|
-
return resolvedPath;
|
|
3109
|
-
}
|
|
3110
|
-
if (!resolvedPath) {
|
|
3111
|
-
return urlConfig.domain || "";
|
|
3112
|
-
}
|
|
3113
|
-
if (!urlConfig.domain) {
|
|
3114
|
-
return resolvedPath.startsWith("/") ? resolvedPath : `/${resolvedPath}`;
|
|
3115
|
-
}
|
|
3116
|
-
const normalizedDomain = urlConfig.domain.replace(/\/+$/, "");
|
|
3117
|
-
const normalizedPath = resolvedPath.startsWith("/") ? resolvedPath : `/${resolvedPath}`;
|
|
3118
|
-
return `${normalizedDomain}${normalizedPath}`;
|
|
3119
|
-
}
|
|
3120
3103
|
|
|
3121
3104
|
const RESOLVE_META_STORAGE_KEY = "ONLINE_CONFIG_CONTEXTS";
|
|
3122
3105
|
class RemoteConfigStore {
|
|
@@ -12181,6 +12164,7 @@ class PublisherManagerImpl extends IPublisherManager {
|
|
|
12181
12164
|
return true;
|
|
12182
12165
|
}
|
|
12183
12166
|
}
|
|
12167
|
+
PublisherManagerImpl.KEY = PublisherManager.KEY;
|
|
12184
12168
|
|
|
12185
12169
|
/**
|
|
12186
12170
|
* 平台游戏更新。
|
|
@@ -15138,4 +15122,4 @@ TipsView = __decorate([
|
|
|
15138
15122
|
menu("基础视图/TipsView")
|
|
15139
15123
|
], TipsView);
|
|
15140
15124
|
|
|
15141
|
-
export { ADAnalyticsAble, ADBehaviorReporter, ADEvent, ADType, AD_METRIC_ORDER_V1, ALiAnalyticsSender, AdDimension, AnalyticsAble, App, Application, Async, AudioBusiness, BaseDimension, BaseOnlineConfig, BaseProtocolHelper, BusinessCenter, ByteView, CCPViewLoader, CCSceneLoader, CocosNativeHelper, CocosStorageUtils, CocosViewManager, Component, ConfigHelper, DEFAULT_GAME_FLAG, Dictionary, DimensionType, ECS, EffectAudioSourceProxy, EmptyAnalyticsSender, EmptyLink, EnterOptionParser, Event$2 as Event, EventDispatcher, Fsm, FsmBase, GameDimension, GameLeaveType, GeometryUtils, Handler, HttpNode, HttpRequest, IADAble, IDevice, IGameUpdateAble, ILoginAble, INTERNAL_METHODS, INativeHelper, IPayAble, IPublisher, IPublisherManager, IRecordAble, IShareAble, IViewLoader, Injector, Json, KKTServer, KSAd, KSDevice, KSLogin, KSPublisher, KSRecorder, KSShare, KeytopsAnalyticsSender, LEVEL_STATS_METRIC_ORDER_V1, LaunchAnalyticsAble, LevelAnalyticsAble, LevelBehaviorReporter, LevelOnlineConfig, LevelStatsDimension, Link, List, LogType, Logger, MYAd, MYDevice, MYLogin, MYPublisher, Mask, MathUtils, MemeryStorage, NativeAd, NativeAnalyticsSender, NativeDevice, NativeHelper, NativeLogin, NativePay, NativePublisher, NativeRecorder, NativeShare, NativeUtils, NetManager, NoRequestServer, PLAYER_ABILITY_METRIC_ORDER_V1, PlayerAbilityDimension, Pool, PromiseUtils, PropSupport, PublisherManager, PublisherManagerImpl, RemoteConfigService, RemoteConfigStore, ResourceManager, RewardVideoMaskBusiness, RuntimeApplicationImpl, Scene, Server, SessionAnalyticsAble, SessionDimension, SocialAnalyticsAble, SocialDimension, Socket, SocketLogType, SocketNode, Storage, StorageImpl, StringUtils, System, SystemOnlineConfig, TKAd, TKAnalyticsSender, TKDevice, TKLogin, TKPublisher, TTAd, TTAnalyticsSender, TTDevice, TTGameUpdater, TTLogin, TTPay, TTPublisher, TTRecorder, TTShare, Task, TaskQueue, TaskSequence, Timer, TimerImpl, TipsType, TipsView, View, ViewControl, ViewLevel, ViewManager, WXAd, WXAnalyticsSender, WXDevice, WXGameUpdater, WXLogin, WXPay, WXPublisher, WXShare, ab, analytics, audio, bidding, businessCenter, cmd, component, eventCenter, fsmManager, manager, md5, net, publisher, remoteConfig, remoteConfigService, res,
|
|
15125
|
+
export { ADAnalyticsAble, ADBehaviorReporter, ADEvent, ADType, AD_METRIC_ORDER_V1, ALiAnalyticsSender, AdDimension, AnalyticsAble, App, Application, Async, AudioBusiness, BaseDimension, BaseOnlineConfig, BaseProtocolHelper, BusinessCenter, ByteView, CCPViewLoader, CCSceneLoader, CocosNativeHelper, CocosStorageUtils, CocosViewManager, Component, ConfigHelper, DEFAULT_GAME_FLAG, Dictionary, DimensionType, ECS, EffectAudioSourceProxy, EmptyAnalyticsSender, EmptyLink, EnterOptionParser, Event$2 as Event, EventDispatcher, Fsm, FsmBase, GameDimension, GameLeaveType, GeometryUtils, Handler, HttpNode, HttpRequest, IADAble, IDevice, IGameUpdateAble, ILoginAble, INTERNAL_METHODS, INativeHelper, IPayAble, IPublisher, IPublisherManager, IRecordAble, IShareAble, IViewLoader, Injector, Json, KKTServer, KSAd, KSDevice, KSLogin, KSPublisher, KSRecorder, KSShare, KeytopsAnalyticsSender, LEVEL_STATS_METRIC_ORDER_V1, LaunchAnalyticsAble, LevelAnalyticsAble, LevelBehaviorReporter, LevelOnlineConfig, LevelStatsDimension, Link, List, LogType, Logger, MYAd, MYDevice, MYLogin, MYPublisher, Mask, MathUtils, MemeryStorage, NativeAd, NativeAnalyticsSender, NativeDevice, NativeHelper, NativeLogin, NativePay, NativePublisher, NativeRecorder, NativeShare, NativeUtils, NetManager, NoRequestServer, PLAYER_ABILITY_METRIC_ORDER_V1, PlayerAbilityDimension, Pool, PromiseUtils, PropSupport, PublisherManager, PublisherManagerImpl, RemoteConfigService, RemoteConfigStore, ResourceManager, RewardVideoMaskBusiness, RuntimeApplicationImpl, Scene, Server, SessionAnalyticsAble, SessionDimension, SocialAnalyticsAble, SocialDimension, Socket, SocketLogType, SocketNode, Storage, StorageImpl, StringUtils, System, SystemOnlineConfig, TKAd, TKAnalyticsSender, TKDevice, TKLogin, TKPublisher, TTAd, TTAnalyticsSender, TTDevice, TTGameUpdater, TTLogin, TTPay, TTPublisher, TTRecorder, TTShare, Task, TaskQueue, TaskSequence, Timer, TimerImpl, TipsType, TipsView, View, ViewControl, ViewLevel, ViewManager, WXAd, WXAnalyticsSender, WXDevice, WXGameUpdater, WXLogin, WXPay, WXPublisher, WXShare, ab, analytics, audio, bidding, businessCenter, cmd, component, eventCenter, fsmManager, manager, md5, net, publisher, remoteConfig, remoteConfigService, res, server, storage, system, timer, version, viewAnalytics, viewClass, viewManager };
|