apps-sdk 1.1.31 → 1.1.33

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apps-sdk",
3
- "version": "1.1.31",
3
+ "version": "1.1.33",
4
4
  "description": "Apps SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -32,7 +32,7 @@
32
32
  "franc-min": "^6.2.0",
33
33
  "mixpanel-react-native": "^3.0.9",
34
34
  "react-native": "0.76.7",
35
- "react-native-adapty": "^3.3.1",
35
+ "react-native-adapty": "^3.11.1",
36
36
  "react-native-adjust": "^5.0.2",
37
37
  "react-native-btr": "^2.2.1",
38
38
  "react-native-iap": "^12.13.0",
@@ -106,6 +106,19 @@ class Adapty {
106
106
  }
107
107
  }
108
108
 
109
+ async closePaywall() {
110
+ const paywallView = await adapty.getCurrentPaywallView();
111
+ try {
112
+ if (paywallView) {
113
+ paywallView.dismiss();
114
+ } else {
115
+ console.warn('Error closing paywall: paywall view is null');
116
+ }
117
+ } catch (error) {
118
+ console.error('Error closing paywall:', error);
119
+ }
120
+ }
121
+
109
122
  async showPaywallPreloaded(paywallView, eventHandlers = {}) {
110
123
  try {
111
124
  if (paywallView) {
package/types/index.d.ts CHANGED
@@ -222,6 +222,7 @@ declare module 'apps-sdk' {
222
222
  getProfile(): Promise<any>;
223
223
  updateAdjustAttributionData(attribution: any): Promise<void>;
224
224
  setAdjustIntegrationIdentifier(adjustIntegrationIdentifier: string): Promise<void>;
225
+ closePaywall(): Promise<void>;
225
226
  }
226
227
 
227
228
  export class TrackingTransparency {