apps-sdk 2.0.7 → 2.0.8

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types/index.d.ts +11 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apps-sdk",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "description": "Apps SDK - Compatible with Expo SDK 54 + React 19",
5
5
  "main": "index.js",
6
6
  "author": "ASD",
package/types/index.d.ts CHANGED
@@ -35,6 +35,7 @@ declare module 'apps-sdk' {
35
35
  isDevUser: boolean;
36
36
  forcedUpdate: boolean;
37
37
  init(): Promise<void>;
38
+ setDebugMode(debugMode: boolean): void;
38
39
  setConfigEndpoint(endpoint: string): void;
39
40
  initSession(): Promise<void>;
40
41
  storeSessionStructure(): Promise<void>;
@@ -259,6 +260,7 @@ declare module 'apps-sdk' {
259
260
  updateAdjustAttributionData(attribution: any): Promise<void>;
260
261
  setAdjustIntegrationIdentifier(adjustIntegrationIdentifier: string): Promise<void>;
261
262
  setMixpanelIntegrationIdentifier(mixpanelIntegrationIdentifier: string): Promise<void>;
263
+ setFirebaseIntegrationIdentifier(firebaseIntegrationIdentifier: string): Promise<void>;
262
264
  closePaywall(): Promise<void>;
263
265
  getOnboardingForPlacement(placementID: string, lang: string): Promise<any>;
264
266
  createOnboardingView(onboarding: any): Promise<any>;
@@ -295,6 +297,14 @@ declare module 'apps-sdk' {
295
297
  getLegalText(web_id: string, type: 'tc' | 'contact' | 'privacy_policy' | 'refund_policy' | 'faqs', lang: string): Promise<any>;
296
298
  }
297
299
 
300
+ export class Firebase {
301
+ initialize(): Promise<void>;
302
+ getAppInstanceId(): Promise<string | null>;
303
+ logEvent(eventName: string, params?: object): Promise<void>;
304
+ setUserId(userId: string): Promise<void>;
305
+ setUserProperty(name: string, value: string): Promise<void>;
306
+ }
307
+
298
308
  export class AppsSDK {
299
309
  initializePushNotifications(): Promise<string>;
300
310
  }
@@ -318,6 +328,7 @@ declare module 'apps-sdk' {
318
328
  adapty : Adapty;
319
329
  homeActions : HomeActions;
320
330
  facebook : Facebook;
331
+ firebase : Firebase;
321
332
  legal : Legal;
322
333
  }
323
334