react-native-edgee 1.0.4 → 1.0.5
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/android/build.gradle +0 -4
- package/dist/index.js +0 -21
- package/package.json +1 -1
package/android/build.gradle
CHANGED
package/dist/index.js
CHANGED
|
@@ -138,13 +138,6 @@ class EdgeeClient {
|
|
|
138
138
|
void consent_1.ConsentUtils.init();
|
|
139
139
|
}
|
|
140
140
|
async track(name, data, components) {
|
|
141
|
-
// Check consent before tracking
|
|
142
|
-
if (!consent_1.ConsentUtils.canTrack()) {
|
|
143
|
-
if (this.config.debug) {
|
|
144
|
-
console.log(`[Edgee] Event "${name}" not tracked - consent not granted`);
|
|
145
|
-
}
|
|
146
|
-
return;
|
|
147
|
-
}
|
|
148
141
|
const context = await (0, context_1.getContext)(this.config.collectDeviceId);
|
|
149
142
|
// Get native context properties if available and collectDeviceId is enabled
|
|
150
143
|
let nativeProperties = {};
|
|
@@ -175,13 +168,6 @@ class EdgeeClient {
|
|
|
175
168
|
this.queue.enqueue(event);
|
|
176
169
|
}
|
|
177
170
|
async user(data, components) {
|
|
178
|
-
// Check consent before tracking
|
|
179
|
-
if (!consent_1.ConsentUtils.canTrack()) {
|
|
180
|
-
if (this.config.debug) {
|
|
181
|
-
console.log(`[Edgee] User event not tracked - consent not granted`);
|
|
182
|
-
}
|
|
183
|
-
return;
|
|
184
|
-
}
|
|
185
171
|
const context = await (0, context_1.getContext)(this.config.collectDeviceId);
|
|
186
172
|
// Get native context properties if available and collectDeviceId is enabled
|
|
187
173
|
let nativeProperties = {};
|
|
@@ -211,13 +197,6 @@ class EdgeeClient {
|
|
|
211
197
|
this.queue.enqueue(event);
|
|
212
198
|
}
|
|
213
199
|
async screen(screenName, data, components) {
|
|
214
|
-
// Check consent before tracking
|
|
215
|
-
if (!consent_1.ConsentUtils.canTrack()) {
|
|
216
|
-
if (this.config.debug) {
|
|
217
|
-
console.log(`[Edgee] Screen "${screenName}" not tracked - consent not granted`);
|
|
218
|
-
}
|
|
219
|
-
return;
|
|
220
|
-
}
|
|
221
200
|
const context = await (0, context_1.getContext)(this.config.collectDeviceId);
|
|
222
201
|
// Get native context properties if available and collectDeviceId is enabled
|
|
223
202
|
let nativeProperties = {};
|