@arkadiuminc/sdk 2.64.0 → 2.65.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.
@@ -177,6 +177,7 @@ export declare class ConfigService {
177
177
  private _platformId;
178
178
  private _platformType;
179
179
  private _host;
180
+ private _gameConfig;
180
181
  private constructor();
181
182
  static get Instance(): ConfigService;
182
183
  subscribe(callback: ConfigChangeCallback): () => void;
@@ -194,4 +195,6 @@ export declare class ConfigService {
194
195
  private isPlatform;
195
196
  private isPlatformType;
196
197
  private isGame;
198
+ setGameConfig(gameConfig: any): void;
199
+ getGameConfigProperty(property: string, defaultValue?: any): any;
197
200
  }
@@ -21,6 +21,8 @@ export interface IHost {
21
21
  getGameSDKUrl(): Promise<string>;
22
22
  getArenaType(): Promise<ArenaType>;
23
23
  isSubscriptionsSupported(): Promise<boolean>;
24
+ isEagleSupported(): Promise<boolean>;
25
+ isAuthSupported(): Promise<boolean>;
24
26
  }
25
27
  export declare type PurchaseRequest = {
26
28
  type?: string;
@@ -68,6 +70,7 @@ export declare class HostArena implements IHost {
68
70
  getArenaNameSync(): string;
69
71
  getGameSDKUrl(): Promise<string>;
70
72
  getArenaType(): Promise<ArenaType>;
73
+ getArenaTypeSync(): ArenaType;
71
74
  getGameDimensions(): Promise<{
72
75
  width: number;
73
76
  height: number;
@@ -76,6 +79,8 @@ export declare class HostArena implements IHost {
76
79
  private updateUrlState;
77
80
  subscribeToUrlStateChange(observer: ObserverFn<UrlState | undefined>): UrlStateUnsubscribeFn;
78
81
  isSubscriptionsSupported(): Promise<boolean>;
82
+ isEagleSupported(): Promise<boolean>;
83
+ isAuthSupported(): Promise<boolean>;
79
84
  }
80
85
  export declare class HostGame implements IHost {
81
86
  private rpcProvider;
@@ -108,5 +113,7 @@ export declare class HostGame implements IHost {
108
113
  private updateUrlState;
109
114
  subscribeToUrlStateChange(observer: ObserverFn<UrlState | undefined>): UrlStateUnsubscribeFn;
110
115
  isSubscriptionsSupported(): Promise<boolean>;
116
+ isEagleSupported(): Promise<boolean>;
117
+ isAuthSupported(): Promise<boolean>;
111
118
  }
112
119
  export {};
@@ -14,6 +14,7 @@ import { LeaderboardArena } from './api/features/leaderboard';
14
14
  import { FriendsArena } from './api/features/friends';
15
15
  import { NotificationsArena } from './api/features/notifications';
16
16
  import { ChatArena } from './api/features/chat';
17
+ import { ConfigService } from './api/core/config-service';
17
18
  import { RatingsArena } from './api/features/ratings';
18
19
  import { TournamentsArena } from './api/features/tournaments';
19
20
  import { RecorderArena } from './api/features/recorder';
@@ -45,6 +46,7 @@ export declare class ArkadiumArenaSdk {
45
46
  private gamePingListener;
46
47
  $pingNotification: Observable<number>;
47
48
  version: string;
49
+ config: ConfigService;
48
50
  constructor(backendApi: Backend, host: HostArena, lifecycle: GameLifecycleArena, ads: AdsArena, auth: AuthArena, analytics: AnalyticsApiContract, timeoutTester: TimeoutTesterContract, persistence: PersistenceArena, wallet: WalletArena, debug: DebugProviderArena, supportV1: SupportV1, leaderboard: LeaderboardArena, friends: FriendsArena, notifications: NotificationsArena, chats: ChatArena, ratings: RatingsArena, tournaments: TournamentsArena, recorder: RecorderArena);
49
51
  setEnv(e: ApiEnv): void;
50
52
  initialize(env: ApiEnv, isGameSide: boolean, sessionStorage?: SessionStorageType | null): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkadiuminc/sdk",
3
- "version": "2.64.0",
3
+ "version": "2.65.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/pkg/arkadium-sdk.umd.js",