apps-sdk 1.1.23 → 1.1.24
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 +1 -1
- package/src/libraries/Adapty.js +16 -0
- package/types/index.d.ts +2 -0
package/package.json
CHANGED
package/src/libraries/Adapty.js
CHANGED
|
@@ -134,6 +134,22 @@ class Adapty {
|
|
|
134
134
|
return null;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
+
|
|
138
|
+
async updateAdjustAttributionData(adjustData) {
|
|
139
|
+
try {
|
|
140
|
+
await adapty.updateAttribution(adjustData, 'adjust');
|
|
141
|
+
} catch (error) {
|
|
142
|
+
console.error('Error updating attribution data:', error);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
async setAdjustIntegrationIdentifier(integrationIdentifier) {
|
|
147
|
+
try {
|
|
148
|
+
await adapty.setIntegrationIdentifier('adjust_device_id', integrationIdentifier);
|
|
149
|
+
} catch (error) {
|
|
150
|
+
console.error('Error setting integration identifier:', error);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
137
153
|
}
|
|
138
154
|
|
|
139
155
|
export default new Adapty();
|
package/types/index.d.ts
CHANGED
|
@@ -219,6 +219,8 @@ declare module 'apps-sdk' {
|
|
|
219
219
|
preloadPaywall(placementID: any, lang: any): Promise<any>
|
|
220
220
|
showPaywallPreloaded(paywallView: any, eventHandlers?: PaywallEventHandlers): Promise<void>;
|
|
221
221
|
getProfile(): Promise<any>;
|
|
222
|
+
updateAdjustAttributionData(attribution: any): Promise<void>;
|
|
223
|
+
setAdjustIntegrationIdentifier(adjustIntegrationIdentifier: string): Promise<void>;
|
|
222
224
|
}
|
|
223
225
|
|
|
224
226
|
export class TrackingTransparency {
|