@advenue/react-native 0.6.1 → 0.6.2
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/dist/index.cjs +65 -0
- package/dist/index.js +65 -0
- package/package.json +1 -1
- package/src/index.ts +4 -0
package/dist/index.cjs
CHANGED
|
@@ -227,6 +227,70 @@ function sha256Hex(message) {
|
|
|
227
227
|
return toHex(sha256Bytes(enc.encode(message)));
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
+
// package.json
|
|
231
|
+
var package_default = {
|
|
232
|
+
name: "@advenue/react-native",
|
|
233
|
+
version: "0.6.2",
|
|
234
|
+
description: "Advenue MMP React Native SDK \u2014 attribution, install tracking, and deep links (bundled iOS/Android Expo native modules)",
|
|
235
|
+
type: "module",
|
|
236
|
+
license: "MIT",
|
|
237
|
+
main: "./dist/index.js",
|
|
238
|
+
types: "./dist/index.d.ts",
|
|
239
|
+
exports: {
|
|
240
|
+
".": {
|
|
241
|
+
types: "./dist/index.d.ts",
|
|
242
|
+
"react-native": "./dist/index.cjs",
|
|
243
|
+
require: "./dist/index.cjs",
|
|
244
|
+
default: "./dist/index.js"
|
|
245
|
+
},
|
|
246
|
+
"./plugin": "./plugin/index.js"
|
|
247
|
+
},
|
|
248
|
+
files: [
|
|
249
|
+
"dist",
|
|
250
|
+
"src",
|
|
251
|
+
"plugin",
|
|
252
|
+
"scripts",
|
|
253
|
+
"ios",
|
|
254
|
+
"android",
|
|
255
|
+
"expo-module.config.json",
|
|
256
|
+
"!**/*.test.ts"
|
|
257
|
+
],
|
|
258
|
+
publishConfig: {
|
|
259
|
+
access: "public"
|
|
260
|
+
},
|
|
261
|
+
scripts: {
|
|
262
|
+
build: "tsup && node scripts/check-dist.mjs",
|
|
263
|
+
typecheck: "tsc --noEmit",
|
|
264
|
+
test: "vitest run"
|
|
265
|
+
},
|
|
266
|
+
dependencies: {
|
|
267
|
+
"@advenue/install-referrer": "workspace:*",
|
|
268
|
+
"@advenue/sdk-core": "workspace:*"
|
|
269
|
+
},
|
|
270
|
+
peerDependencies: {
|
|
271
|
+
"@expo/config-plugins": ">=8",
|
|
272
|
+
react: ">=18.2",
|
|
273
|
+
"react-native": ">=0.74",
|
|
274
|
+
"expo-modules-core": "*"
|
|
275
|
+
},
|
|
276
|
+
peerDependenciesMeta: {
|
|
277
|
+
"@expo/config-plugins": {
|
|
278
|
+
optional: true
|
|
279
|
+
},
|
|
280
|
+
"expo-modules-core": {
|
|
281
|
+
optional: true
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
devDependencies: {
|
|
285
|
+
"@advenue/shared": "workspace:*",
|
|
286
|
+
"@advenue/signing": "workspace:*",
|
|
287
|
+
tsup: "^8.5.1",
|
|
288
|
+
typescript: "^5.7.2",
|
|
289
|
+
vitest: "^2.1.8"
|
|
290
|
+
},
|
|
291
|
+
"react-native": "./dist/index.cjs"
|
|
292
|
+
};
|
|
293
|
+
|
|
230
294
|
// src/deep-links.ts
|
|
231
295
|
function parseDirectLink(url) {
|
|
232
296
|
let deepLinkValue = "";
|
|
@@ -494,6 +558,7 @@ var Advenue = {
|
|
|
494
558
|
secureStore = secureMod ? createSecureStore(secureMod) : createNativeSecureStore(iosMod);
|
|
495
559
|
const deviceId = rest.deviceId ?? await (0, import_sdk_core.resolveDurableDeviceId)(storage, secureStore ?? void 0);
|
|
496
560
|
instance = new import_sdk_core.AdvenueClient({ ...rest, platform, deviceId, storage });
|
|
561
|
+
instance.debugLog(`SDK v${package_default.version} \u2014 events -> ${configuredEndpoint}`);
|
|
497
562
|
void resolveAdvertisingId().catch((err) => reportError("enrich.advertisingId", err));
|
|
498
563
|
const deviceInfo = collectDeviceInfo({
|
|
499
564
|
platform,
|
package/dist/index.js
CHANGED
|
@@ -222,6 +222,70 @@ function sha256Hex(message) {
|
|
|
222
222
|
return toHex(sha256Bytes(enc.encode(message)));
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
+
// package.json
|
|
226
|
+
var package_default = {
|
|
227
|
+
name: "@advenue/react-native",
|
|
228
|
+
version: "0.6.2",
|
|
229
|
+
description: "Advenue MMP React Native SDK \u2014 attribution, install tracking, and deep links (bundled iOS/Android Expo native modules)",
|
|
230
|
+
type: "module",
|
|
231
|
+
license: "MIT",
|
|
232
|
+
main: "./dist/index.js",
|
|
233
|
+
types: "./dist/index.d.ts",
|
|
234
|
+
exports: {
|
|
235
|
+
".": {
|
|
236
|
+
types: "./dist/index.d.ts",
|
|
237
|
+
"react-native": "./dist/index.cjs",
|
|
238
|
+
require: "./dist/index.cjs",
|
|
239
|
+
default: "./dist/index.js"
|
|
240
|
+
},
|
|
241
|
+
"./plugin": "./plugin/index.js"
|
|
242
|
+
},
|
|
243
|
+
files: [
|
|
244
|
+
"dist",
|
|
245
|
+
"src",
|
|
246
|
+
"plugin",
|
|
247
|
+
"scripts",
|
|
248
|
+
"ios",
|
|
249
|
+
"android",
|
|
250
|
+
"expo-module.config.json",
|
|
251
|
+
"!**/*.test.ts"
|
|
252
|
+
],
|
|
253
|
+
publishConfig: {
|
|
254
|
+
access: "public"
|
|
255
|
+
},
|
|
256
|
+
scripts: {
|
|
257
|
+
build: "tsup && node scripts/check-dist.mjs",
|
|
258
|
+
typecheck: "tsc --noEmit",
|
|
259
|
+
test: "vitest run"
|
|
260
|
+
},
|
|
261
|
+
dependencies: {
|
|
262
|
+
"@advenue/install-referrer": "workspace:*",
|
|
263
|
+
"@advenue/sdk-core": "workspace:*"
|
|
264
|
+
},
|
|
265
|
+
peerDependencies: {
|
|
266
|
+
"@expo/config-plugins": ">=8",
|
|
267
|
+
react: ">=18.2",
|
|
268
|
+
"react-native": ">=0.74",
|
|
269
|
+
"expo-modules-core": "*"
|
|
270
|
+
},
|
|
271
|
+
peerDependenciesMeta: {
|
|
272
|
+
"@expo/config-plugins": {
|
|
273
|
+
optional: true
|
|
274
|
+
},
|
|
275
|
+
"expo-modules-core": {
|
|
276
|
+
optional: true
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
devDependencies: {
|
|
280
|
+
"@advenue/shared": "workspace:*",
|
|
281
|
+
"@advenue/signing": "workspace:*",
|
|
282
|
+
tsup: "^8.5.1",
|
|
283
|
+
typescript: "^5.7.2",
|
|
284
|
+
vitest: "^2.1.8"
|
|
285
|
+
},
|
|
286
|
+
"react-native": "./dist/index.cjs"
|
|
287
|
+
};
|
|
288
|
+
|
|
225
289
|
// src/deep-links.ts
|
|
226
290
|
function parseDirectLink(url) {
|
|
227
291
|
let deepLinkValue = "";
|
|
@@ -489,6 +553,7 @@ var Advenue = {
|
|
|
489
553
|
secureStore = secureMod ? createSecureStore(secureMod) : createNativeSecureStore(iosMod);
|
|
490
554
|
const deviceId = rest.deviceId ?? await resolveDurableDeviceId(storage, secureStore ?? void 0);
|
|
491
555
|
instance = new AdvenueClient({ ...rest, platform, deviceId, storage });
|
|
556
|
+
instance.debugLog(`SDK v${package_default.version} \u2014 events -> ${configuredEndpoint}`);
|
|
492
557
|
void resolveAdvertisingId().catch((err) => reportError("enrich.advertisingId", err));
|
|
493
558
|
const deviceInfo = collectDeviceInfo({
|
|
494
559
|
platform,
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
} from '@advenue/sdk-core';
|
|
20
20
|
import { parseMatchToken } from '@advenue/shared/match-token';
|
|
21
21
|
import { sha256Hex } from '@advenue/signing';
|
|
22
|
+
import pkg from '../package.json' with { type: 'json' };
|
|
22
23
|
import { type DeepLinkHandle, setupDeepLinks } from './deep-links';
|
|
23
24
|
import { type MMKVLike, createMMKVStorage } from './mmkv-storage';
|
|
24
25
|
import {
|
|
@@ -371,6 +372,9 @@ export const Advenue = {
|
|
|
371
372
|
const deviceId =
|
|
372
373
|
rest.deviceId ?? (await resolveDurableDeviceId(storage, secureStore ?? undefined));
|
|
373
374
|
instance = new AdvenueClient({ ...rest, platform, deviceId, storage });
|
|
375
|
+
// One-line ground truth for "which SDK build talks to which host" — the
|
|
376
|
+
// exact questions a silent integration always raises first.
|
|
377
|
+
instance.debugLog(`SDK v${pkg.version} — events -> ${configuredEndpoint}`);
|
|
374
378
|
// (a) resolve ad-id at init time
|
|
375
379
|
void resolveAdvertisingId().catch((err) => reportError('enrich.advertisingId', err));
|
|
376
380
|
// Collect native device info (Meta CAPI extinfo) once at init time; a
|