@layers/react-native 0.1.0-alpha.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.
package/dist/index.js ADDED
@@ -0,0 +1,230 @@
1
+ import { LayersClient } from "@layers/client";
2
+ import { Platform } from "react-native";
3
+
4
+ export * from "@layers/client"
5
+
6
+ //#region src/index.ts
7
+ const SUPPORTED_NETWORKS = [
8
+ "meta",
9
+ "tiktok",
10
+ "snap",
11
+ "google"
12
+ ];
13
+ const DEFAULT_DEEP_LINK_CONFIG = {
14
+ urlSchemes: [],
15
+ universalLinkDomains: [],
16
+ deferredDeepLinkTimeout: 0,
17
+ attributionWindowDays: 0,
18
+ trackOrganicLinks: false
19
+ };
20
+ const EMPTY_CONNECTOR_STATUS = {
21
+ network: "meta",
22
+ enabled: false,
23
+ initialized: false,
24
+ hasSDK: false,
25
+ eventsSent: 0,
26
+ errors: 0
27
+ };
28
+ const EMPTY_CONNECTOR_METRICS = {
29
+ network: "meta",
30
+ totalEvents: 0,
31
+ successfulEvents: 0,
32
+ failedEvents: 0
33
+ };
34
+ const EMPTY_DEEP_LINK_METRICS = {
35
+ totalLinks: 0,
36
+ uniqueLinks: 0,
37
+ attributedInstalls: 0,
38
+ attributedSessions: 0,
39
+ deferredLinks: 0,
40
+ sourceBreakdown: {},
41
+ conversionRate: 0
42
+ };
43
+ const NOT_SUPPORTED_ATT_STATUS = "not_determined";
44
+ const NOT_SUPPORTED_SKAN_METRICS = {
45
+ isSupported: false,
46
+ version: "4.0",
47
+ currentValue: null,
48
+ currentPreset: null,
49
+ ruleCount: 0,
50
+ evaluationCount: 0,
51
+ attributionData: null,
52
+ lastEvaluations: []
53
+ };
54
+ var LayersRN = class {
55
+ client = null;
56
+ isInitialized = false;
57
+ deepLinkConfig = null;
58
+ async init(config) {
59
+ this.client = new LayersClient({
60
+ ...config,
61
+ queueStorage: null,
62
+ queueOptions: {
63
+ flushIntervalMs: 1e3,
64
+ maxQueueSize: 50,
65
+ maxItemAgeMs: 6e4,
66
+ requestTimeoutMs: 1e4,
67
+ maxRetries: 1,
68
+ baseRetryDelayMs: 500,
69
+ maxRetryDelayMs: 1e3,
70
+ ...config.queueOptions ?? {}
71
+ }
72
+ });
73
+ this.client.setDeviceInfo({
74
+ platform: Platform.OS === "ios" ? "ios" : Platform.OS === "android" ? "android" : "react-native",
75
+ os_version: typeof Platform.Version === "string" ? Platform.Version : String(Platform.Version)
76
+ });
77
+ await this.client.init();
78
+ this.isInitialized = true;
79
+ if (config.enableDebug) console.log("Layers initialized (simplified mode).");
80
+ }
81
+ getClient() {
82
+ return this.client;
83
+ }
84
+ isReady() {
85
+ return this.isInitialized;
86
+ }
87
+ async destroy() {
88
+ if (this.client) {
89
+ await this.client.flush();
90
+ this.client = null;
91
+ }
92
+ this.isInitialized = false;
93
+ }
94
+ async track(eventName, properties = {}) {
95
+ if (!this.client) throw new Error("Layers must be initialized before tracking events");
96
+ await this.client.track(eventName, {
97
+ platform: Platform.OS,
98
+ ...properties
99
+ });
100
+ }
101
+ async screen(screenName, properties = {}) {
102
+ await this.track("screen_view", {
103
+ screen_name: screenName,
104
+ ...properties
105
+ });
106
+ }
107
+ async setUserProperties(properties) {
108
+ if (!this.client) throw new Error("Layers must be initialized before setting user properties");
109
+ await this.client.setUserProperties(properties);
110
+ }
111
+ async setConsent(consent) {
112
+ if (!this.client) throw new Error("Layers must be initialized before setting consent");
113
+ await this.client.setConsent(consent);
114
+ }
115
+ async requestTracking(_options) {
116
+ console.warn("Layers ATT support is disabled in simplified mode.");
117
+ }
118
+ debug = {
119
+ showOverlay: (_options) => {
120
+ console.warn("Debug overlay is not available in simplified mode.");
121
+ },
122
+ hideOverlay: () => {},
123
+ isOverlayVisible: () => false,
124
+ getATTStatus: async () => NOT_SUPPORTED_ATT_STATUS,
125
+ getSKANMetrics: async () => NOT_SUPPORTED_SKAN_METRICS,
126
+ getDeepLinkMetrics: async () => EMPTY_DEEP_LINK_METRICS,
127
+ getConnectorStatuses: async () => this.createConnectorStatusMap(),
128
+ testConnectorConnection: async (_network) => false,
129
+ flushAllEvents: async () => {
130
+ if (this.client) await this.client.flush();
131
+ return this.createZeroCountMap();
132
+ }
133
+ };
134
+ connectors = {
135
+ configure: async (_network, _config) => false,
136
+ enable: async (_network) => false,
137
+ disable: async (_network) => false,
138
+ getStatus: async (network) => ({
139
+ ...EMPTY_CONNECTOR_STATUS,
140
+ network
141
+ }),
142
+ getAllStatuses: async () => this.createConnectorStatusMap(),
143
+ getMetrics: async (network) => ({
144
+ ...EMPTY_CONNECTOR_METRICS,
145
+ network
146
+ }),
147
+ testConnection: async (_network) => false,
148
+ flush: async () => this.createZeroCountMap()
149
+ };
150
+ deepLinks = {
151
+ configure: async (config) => {
152
+ this.deepLinkConfig = {
153
+ ...DEFAULT_DEEP_LINK_CONFIG,
154
+ ...this.deepLinkConfig ?? {},
155
+ ...config
156
+ };
157
+ },
158
+ addListener: (_listener) => {
159
+ console.warn("Deep link listeners are not available in simplified mode.");
160
+ return () => void 0;
161
+ },
162
+ getMetrics: async () => EMPTY_DEEP_LINK_METRICS,
163
+ parseUrl: (url) => {
164
+ try {
165
+ const parsed = new URL(url);
166
+ const params = {};
167
+ parsed.searchParams.forEach((value, key) => {
168
+ params[key] = value;
169
+ });
170
+ const data = {
171
+ url,
172
+ scheme: parsed.protocol.replace(":", ""),
173
+ host: parsed.hostname,
174
+ path: parsed.pathname,
175
+ queryParams: params,
176
+ timestamp: Date.now()
177
+ };
178
+ if (parsed.hash) data.fragment = parsed.hash.slice(1);
179
+ return data;
180
+ } catch {
181
+ throw new Error(`Invalid deep link URL: ${url}`);
182
+ }
183
+ },
184
+ clearAttribution: async () => {}
185
+ };
186
+ att = {
187
+ request: async (_strategy) => {
188
+ console.warn("ATT request is not supported in simplified mode.");
189
+ return NOT_SUPPORTED_ATT_STATUS;
190
+ },
191
+ getStatus: async () => NOT_SUPPORTED_ATT_STATUS,
192
+ isSupported: async () => false,
193
+ setCustomPrompt: (_title, _message) => {
194
+ console.warn("ATT custom prompts are not supported in simplified mode.");
195
+ }
196
+ };
197
+ skan = {
198
+ setPreset: async (_preset) => {
199
+ console.warn("SKAN presets are not available in simplified mode.");
200
+ },
201
+ setRules: async (_rules) => {
202
+ console.warn("SKAN rules are not available in simplified mode.");
203
+ },
204
+ getCurrentConversionValue: async () => null,
205
+ getMetrics: async () => NOT_SUPPORTED_SKAN_METRICS
206
+ };
207
+ createConnectorStatusMap() {
208
+ const statuses = {};
209
+ for (const network of SUPPORTED_NETWORKS) statuses[network] = {
210
+ ...EMPTY_CONNECTOR_STATUS,
211
+ network
212
+ };
213
+ return statuses;
214
+ }
215
+ createZeroCountMap() {
216
+ return {
217
+ meta: 0,
218
+ tiktok: 0,
219
+ snap: 0,
220
+ google: 0
221
+ };
222
+ }
223
+ };
224
+ const Layers = new LayersRN();
225
+ var src_default = Layers;
226
+ const DebugOverlay = (_props) => null;
227
+
228
+ //#endregion
229
+ export { DebugOverlay, Layers, src_default as default };
230
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["SUPPORTED_NETWORKS: NetworkType[]","DEFAULT_DEEP_LINK_CONFIG: DeepLinkConfig","EMPTY_CONNECTOR_STATUS: ConnectorStatus","EMPTY_CONNECTOR_METRICS: ConnectorMetrics","EMPTY_DEEP_LINK_METRICS: DeepLinkMetrics","NOT_SUPPORTED_ATT_STATUS: ATTStatus","NOT_SUPPORTED_SKAN_METRICS: SKANMetrics","params: Record<string, string>","data: DeepLinkData","statuses: Record<NetworkType, ConnectorStatus>"],"sources":["../src/index.ts"],"sourcesContent":["import {\n type ConsentOptions,\n type EventData,\n LayersClient,\n type LayersConfig,\n type UserProperties\n} from '@layers/client';\nimport { Platform } from 'react-native';\n\nimport type { ATTEventData, ATTPermissionOptions, ATTStatus } from './native/ATTModule';\nimport type {\n ConnectorCapabilities,\n ConnectorConfig,\n ConnectorMetrics,\n ConnectorStatus,\n EventMappingRule,\n NetworkEvent,\n NetworkType\n} from './native/ConnectorsModule';\nimport type {\n AttributionData,\n DeepLinkConfig,\n DeepLinkData,\n DeepLinkListener,\n DeepLinkMetrics\n} from './native/DeepLinkModule';\nimport type {\n SKANConversionRule,\n SKANEventData,\n SKANMetrics,\n SKANPostback,\n SKANPresetConfig,\n SKANVersion\n} from './native/SKANModule';\n\nexport type {\n ATTStatus,\n ATTPermissionOptions,\n ATTEventData,\n DeepLinkData,\n AttributionData,\n DeepLinkListener,\n DeepLinkMetrics,\n ConnectorConfig,\n ConnectorCapabilities,\n ConnectorStatus,\n ConnectorMetrics,\n NetworkType,\n EventMappingRule,\n NetworkEvent,\n SKANVersion,\n SKANConversionRule,\n SKANPresetConfig,\n SKANPostback,\n SKANEventData,\n SKANMetrics\n};\n\nconst SUPPORTED_NETWORKS: NetworkType[] = ['meta', 'tiktok', 'snap', 'google'];\n\nconst DEFAULT_DEEP_LINK_CONFIG: DeepLinkConfig = {\n urlSchemes: [],\n universalLinkDomains: [],\n deferredDeepLinkTimeout: 0,\n attributionWindowDays: 0,\n trackOrganicLinks: false\n};\n\nconst EMPTY_CONNECTOR_STATUS: ConnectorStatus = {\n network: 'meta',\n enabled: false,\n initialized: false,\n hasSDK: false,\n eventsSent: 0,\n errors: 0\n};\n\nconst EMPTY_CONNECTOR_METRICS: ConnectorMetrics = {\n network: 'meta',\n totalEvents: 0,\n successfulEvents: 0,\n failedEvents: 0\n};\n\nconst EMPTY_DEEP_LINK_METRICS: DeepLinkMetrics = {\n totalLinks: 0,\n uniqueLinks: 0,\n attributedInstalls: 0,\n attributedSessions: 0,\n deferredLinks: 0,\n sourceBreakdown: {},\n conversionRate: 0\n};\n\nconst NOT_SUPPORTED_ATT_STATUS: ATTStatus = 'not_determined';\n\nconst NOT_SUPPORTED_SKAN_METRICS: SKANMetrics = {\n isSupported: false,\n version: '4.0',\n currentValue: null,\n currentPreset: null,\n ruleCount: 0,\n evaluationCount: 0,\n attributionData: null,\n lastEvaluations: []\n};\n\nclass LayersRN {\n private client: LayersClient | null = null;\n private isInitialized = false;\n private deepLinkConfig: DeepLinkConfig | null = null;\n\n async init(config: LayersConfig): Promise<void> {\n this.client = new LayersClient({\n ...config,\n queueStorage: null,\n queueOptions: {\n flushIntervalMs: 1_000,\n maxQueueSize: 50,\n maxItemAgeMs: 60_000,\n requestTimeoutMs: 10_000,\n maxRetries: 1,\n baseRetryDelayMs: 500,\n maxRetryDelayMs: 1_000,\n ...(config.queueOptions ?? {})\n }\n });\n\n this.client.setDeviceInfo({\n platform:\n Platform.OS === 'ios' ? 'ios' : Platform.OS === 'android' ? 'android' : 'react-native',\n os_version: typeof Platform.Version === 'string' ? Platform.Version : String(Platform.Version)\n });\n\n await this.client.init();\n this.isInitialized = true;\n\n if (config.enableDebug) {\n // Keep a lightweight trace so developers can see initialization happened.\n console.log('Layers initialized (simplified mode).');\n }\n }\n\n getClient(): LayersClient | null {\n return this.client;\n }\n\n isReady(): boolean {\n return this.isInitialized;\n }\n\n async destroy(): Promise<void> {\n if (this.client) {\n await this.client.flush();\n this.client = null;\n }\n this.isInitialized = false;\n }\n\n async track(eventName: string, properties: EventData = {}): Promise<void> {\n if (!this.client) {\n throw new Error('Layers must be initialized before tracking events');\n }\n\n await this.client.track(eventName, {\n platform: Platform.OS,\n ...properties\n });\n }\n\n async screen(screenName: string, properties: EventData = {}): Promise<void> {\n await this.track('screen_view', { screen_name: screenName, ...properties });\n }\n\n async setUserProperties(properties: UserProperties): Promise<void> {\n if (!this.client) {\n throw new Error('Layers must be initialized before setting user properties');\n }\n await this.client.setUserProperties(properties);\n }\n\n async setConsent(consent: ConsentOptions): Promise<void> {\n if (!this.client) {\n throw new Error('Layers must be initialized before setting consent');\n }\n await this.client.setConsent(consent);\n }\n\n async requestTracking(_options?: { strategy?: string }): Promise<void> {\n console.warn('Layers ATT support is disabled in simplified mode.');\n }\n\n debug = {\n showOverlay: (_options?: { position?: 'top' | 'bottom'; theme?: 'light' | 'dark' }) => {\n console.warn('Debug overlay is not available in simplified mode.');\n },\n hideOverlay: () => {\n /* no-op */\n },\n isOverlayVisible: () => false,\n getATTStatus: async () => NOT_SUPPORTED_ATT_STATUS,\n getSKANMetrics: async () => NOT_SUPPORTED_SKAN_METRICS,\n getDeepLinkMetrics: async () => EMPTY_DEEP_LINK_METRICS,\n getConnectorStatuses: async () => this.createConnectorStatusMap(),\n testConnectorConnection: async (_network: NetworkType) => false,\n flushAllEvents: async () => {\n if (this.client) {\n await this.client.flush();\n }\n return this.createZeroCountMap();\n }\n };\n\n connectors = {\n configure: async (_network: NetworkType, _config: Partial<ConnectorConfig>) => false,\n enable: async (_network: NetworkType) => false,\n disable: async (_network: NetworkType) => false,\n getStatus: async (network: NetworkType) => ({\n ...EMPTY_CONNECTOR_STATUS,\n network\n }),\n getAllStatuses: async () => this.createConnectorStatusMap(),\n getMetrics: async (network: NetworkType) => ({\n ...EMPTY_CONNECTOR_METRICS,\n network\n }),\n testConnection: async (_network: NetworkType) => false,\n flush: async () => this.createZeroCountMap()\n };\n\n deepLinks = {\n configure: async (config: Partial<DeepLinkConfig>) => {\n const merged = {\n ...DEFAULT_DEEP_LINK_CONFIG,\n ...(this.deepLinkConfig ?? {}),\n ...config\n };\n this.deepLinkConfig = merged;\n },\n addListener: (_listener: DeepLinkListener) => {\n console.warn('Deep link listeners are not available in simplified mode.');\n return () => undefined;\n },\n getMetrics: async () => EMPTY_DEEP_LINK_METRICS,\n parseUrl: (url: string) => {\n try {\n const parsed = new URL(url);\n const params: Record<string, string> = {};\n parsed.searchParams.forEach((value, key) => {\n params[key] = value;\n });\n const data: DeepLinkData = {\n url,\n scheme: parsed.protocol.replace(':', ''),\n host: parsed.hostname,\n path: parsed.pathname,\n queryParams: params,\n timestamp: Date.now()\n };\n if (parsed.hash) {\n data.fragment = parsed.hash.slice(1);\n }\n return data;\n } catch {\n throw new Error(`Invalid deep link URL: ${url}`);\n }\n },\n clearAttribution: async () => {\n /* no-op */\n }\n };\n\n att = {\n request: async (_strategy?: string) => {\n console.warn('ATT request is not supported in simplified mode.');\n return NOT_SUPPORTED_ATT_STATUS;\n },\n getStatus: async () => NOT_SUPPORTED_ATT_STATUS,\n isSupported: async () => false,\n setCustomPrompt: (_title: string, _message: string) => {\n console.warn('ATT custom prompts are not supported in simplified mode.');\n }\n };\n\n skan = {\n setPreset: async (_preset: SKANPresetConfig['name']) => {\n console.warn('SKAN presets are not available in simplified mode.');\n },\n setRules: async (_rules: SKANConversionRule[]) => {\n console.warn('SKAN rules are not available in simplified mode.');\n },\n getCurrentConversionValue: async () => null,\n getMetrics: async () => NOT_SUPPORTED_SKAN_METRICS\n };\n\n private createConnectorStatusMap(): Record<NetworkType, ConnectorStatus> {\n const statuses: Record<NetworkType, ConnectorStatus> = {} as Record<\n NetworkType,\n ConnectorStatus\n >;\n for (const network of SUPPORTED_NETWORKS) {\n statuses[network] = { ...EMPTY_CONNECTOR_STATUS, network };\n }\n return statuses;\n }\n\n private createZeroCountMap(): Record<NetworkType, number> {\n return {\n meta: 0,\n tiktok: 0,\n snap: 0,\n google: 0\n };\n }\n}\n\nexport const Layers = new LayersRN();\nexport default Layers;\n\nexport interface DebugOverlayProps {\n visible: boolean;\n onClose: () => void;\n layersClient?: LayersClient | null;\n}\n\nexport const DebugOverlay = (_props: DebugOverlayProps) => null;\n\nexport * from '@layers/client';\n"],"mappings":";;;;;;AA0DA,MAAMA,qBAAoC;CAAC;CAAQ;CAAU;CAAQ;CAAS;AAE9E,MAAMC,2BAA2C;CAC/C,YAAY,EAAE;CACd,sBAAsB,EAAE;CACxB,yBAAyB;CACzB,uBAAuB;CACvB,mBAAmB;CACpB;AAED,MAAMC,yBAA0C;CAC9C,SAAS;CACT,SAAS;CACT,aAAa;CACb,QAAQ;CACR,YAAY;CACZ,QAAQ;CACT;AAED,MAAMC,0BAA4C;CAChD,SAAS;CACT,aAAa;CACb,kBAAkB;CAClB,cAAc;CACf;AAED,MAAMC,0BAA2C;CAC/C,YAAY;CACZ,aAAa;CACb,oBAAoB;CACpB,o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AC3B,MAAMC,SAAiC,EAAE;AACzC,WAAO,aAAa,SAAS,OAAO,QAAQ;AAC1C,YAAO,OAAO;MACd;IACF,MAAMC,OAAqB;KACzB;KACA,QAAQ,OAAO,SAAS,QAAQ,KAAK,GAAG;KACxC,MAAM,OAAO;KACb,MAAM,OAAO;KACb,aAAa;KACb,WAAW,KAAK,KAAK;KACtB;AACD,QAAI,OAAO,KACT,MAAK,WAAW,OAAO,KAAK,MAAM,EAAE;AAEtC,WAAO;WACD;AACN,UAAM,IAAI,MAAM,0BAA0B,MAAM;;;EAGpD,kBAAkB,YAAY;EAG/B;CAED,MAAM;EACJ,SAAS,OAAO,cAAuB;AACrC,WAAQ,KAAK,mDAAmD;AAChE,UAAO;;EAET,WAAW,YAAY;EACvB,aAAa,YAAY;EACzB,kBAAkB,QAAgB,aAAqB;AACrD,WAAQ,KAAK,2DAA2D;;EAE3E;CAED,OAAO;EACL,WAAW,OAAO,YAAsC;AACtD,WAAQ,KAAK,qDAAqD;;EAEpE,UAAU,OAAO,WAAiC;AAChD,WAAQ,KAAK,mDAAmD;;EAElE,2BAA2B,YAAY;EACvC,YAAY,YAAY;EACzB;CAED,AAAQ,2BAAiE;EACvE,MAAMC,WAAiD,EAAE;AAIzD,OAAK,MAAM,WAAW,mBACpB,UAAS,WAAW;GAAE,GAAG;GAAwB;GAAS;AAE5D,SAAO;;CAGT,AAAQ,qBAAkD;AACxD,SAAO;GACL,MAAM;GACN,QAAQ;GACR,MAAM;GACN,QAAQ;GACT;;;AAIL,MAAa,SAAS,IAAI,UAAU;AACpC,kBAAe;AAQf,MAAa,gBAAgB,WAA8B"}
@@ -0,0 +1,48 @@
1
+ import { ConfigPlugin } from "@expo/config-plugins";
2
+
3
+ //#region src/plugin.d.ts
4
+ interface LayersPluginProps {
5
+ ios?: {
6
+ skAdNetworkIds?: string[];
7
+ includeDefaultNetworks?: boolean;
8
+ attUsageDescription?: string;
9
+ urlSchemes?: string[];
10
+ associatedDomains?: string[];
11
+ };
12
+ android?: {
13
+ intentFilters?: Array<{
14
+ scheme: string;
15
+ host?: string;
16
+ }>;
17
+ };
18
+ apiKey?: string;
19
+ appId?: string;
20
+ enableDebug?: boolean;
21
+ networks?: {
22
+ meta?: {
23
+ include?: boolean;
24
+ };
25
+ tiktok?: {
26
+ include?: boolean;
27
+ };
28
+ snap?: {
29
+ include?: boolean;
30
+ };
31
+ google?: {
32
+ include?: boolean;
33
+ };
34
+ unity?: {
35
+ include?: boolean;
36
+ };
37
+ applovin?: {
38
+ include?: boolean;
39
+ };
40
+ ironsource?: {
41
+ include?: boolean;
42
+ };
43
+ };
44
+ }
45
+ declare const withLayers: ConfigPlugin<LayersPluginProps>;
46
+ //#endregion
47
+ export { LayersPluginProps, withLayers as default };
48
+ //# sourceMappingURL=plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.ts","names":[],"sources":["../src/plugin.ts"],"sourcesContent":[],"mappings":";;;UAEiB,iBAAA;;IAAA,cAAA,CAAA,EAAiB,MAAA,EAAA;IAkI5B,sBA8FL,CAAA,EAAA,OAAA;IAAA,mBAAA,CAAA,EAAA,MAAA;IA9F8B,UAAA,CAAA,EAAA,MAAA,EAAA;IAAb,iBAAA,CAAA,EAAA,MAAA,EAAA;EAAY,CAAA;;oBAhHV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgHd,YAAY,aAAa"}