@log-drop/react-native 1.0.2 → 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.
@@ -22,5 +22,5 @@ if respond_to?(:install_modules_dependencies, true)
22
22
  else
23
23
  s.dependency "React-Core"
24
24
  end
25
- s.dependency 'LogDrop', '1.0.9'
25
+ s.dependency 'LogDrop', '1.0.11'
26
26
  end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@log-drop/react-native",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "LogDrop React Native SDK",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/module/index.js",
@@ -42,13 +42,29 @@ if [ ! -f "$DWARF_BINARY" ]; then
42
42
  exit 1
43
43
  fi
44
44
 
45
- DSYM_UUID=$(dwarfdump --uuid "$DWARF_BINARY" 2>/dev/null | grep "UUID:" | head -n 1 | awk '{print $2}')
45
+ ACTIVE_ARCH="${ARCHS%% *}"
46
+ echo "LogDrop - Active architecture: $ACTIVE_ARCH"
47
+
48
+ NORMALIZED_ARCH="$ACTIVE_ARCH"
49
+ case "$ACTIVE_ARCH" in
50
+ arm64e) NORMALIZED_ARCH="arm64" ;;
51
+ x86_64h) NORMALIZED_ARCH="x86_64" ;;
52
+ esac
53
+
54
+ DSYM_UUID=$(dwarfdump --uuid "$DWARF_BINARY" 2>/dev/null | grep "$NORMALIZED_ARCH" | awk '{print $2}' | head -n 1)
55
+
56
+ if [ -z "$DSYM_UUID" ]; then
57
+ echo "LogDrop - Could not find UUID for $NORMALIZED_ARCH, using first available UUID"
58
+ DSYM_UUID=$(dwarfdump --uuid "$DWARF_BINARY" 2>/dev/null | grep "UUID:" | head -n 1 | awk '{print $2}')
59
+ fi
60
+
46
61
  if [ -z "$DSYM_UUID" ]; then
47
62
  echo "LogDrop - Failed to extract UUID"
48
63
  exit 1
49
64
  fi
65
+
50
66
  DSYM_UUID=$(echo "$DSYM_UUID" | tr -d '-')
51
- echo "LogDrop - Extracted dSYM UUID: $DSYM_UUID"
67
+ echo "LogDrop - Extracted dSYM UUID for $NORMALIZED_ARCH: $DSYM_UUID"
52
68
 
53
69
  DSYM_PLIST="${APP_DSYM}/Contents/Info.plist"
54
70
  APP_VERSION=$(/usr/libexec/PlistBuddy -c 'Print CFBundleShortVersionString' "${DSYM_PLIST}")
@@ -102,4 +118,3 @@ rm -f "$ARCHIVE_NAME" "$RESPONSE_BODY"
102
118
 
103
119
  echo "LogDrop - Upload completed (UUID: $DSYM_UUID)"
104
120
  exit 0
105
-