react-native-edgee 1.0.3 → 1.0.4

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,8 +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
52
+ }
53
+
54
+ kotlinOptions {
55
+ jvmTarget = rootProject.ext.has("jvmTarget")
56
+ ? rootProject.ext.get("jvmTarget")
57
+ : "17"
49
58
  }
50
59
 
51
60
  kotlinOptions {
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-edgee",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
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",