react-native-edgee 1.0.3 → 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.
@@ -44,12 +44,17 @@ android {
44
44
  }
45
45
 
46
46
  compileOptions {
47
- sourceCompatibility JavaVersion.VERSION_1_8
48
- targetCompatibility JavaVersion.VERSION_1_8
47
+ def javaVersion = rootProject.ext.has("jvmTarget")
48
+ ? JavaVersion.toVersion(rootProject.ext.get("jvmTarget"))
49
+ : JavaVersion.VERSION_17
50
+ sourceCompatibility javaVersion
51
+ targetCompatibility javaVersion
49
52
  }
50
53
 
51
54
  kotlinOptions {
52
- jvmTarget = "1.8"
55
+ jvmTarget = rootProject.ext.has("jvmTarget")
56
+ ? rootProject.ext.get("jvmTarget")
57
+ : "17"
53
58
  }
54
59
  }
55
60
 
@@ -7,8 +7,9 @@ const native_context_1 = require("../native-context");
7
7
  * Get comprehensive context including native device information
8
8
  */
9
9
  const getContext = async (collectDeviceId = false) => {
10
- var _a;
11
- const url = (_a = (await react_native_1.Linking.getInitialURL())) !== null && _a !== void 0 ? _a : undefined;
10
+ const initialUrl = await react_native_1.Linking.getInitialURL();
11
+ const nativeContext = await (0, native_context_1.getNativeContext)();
12
+ const url = initialUrl || `${(nativeContext === null || nativeContext === void 0 ? void 0 : nativeContext.bundleId) || "app"}://`;
12
13
  let clientContext;
13
14
  if ((0, native_context_1.isNativeModuleAvailable)()) {
14
15
  try {
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 = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-edgee",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Lightweight Edgee data collection client for React Native with native context collection.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",