@log-drop/react-native 2.1.4 → 2.1.6

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,6 +22,27 @@ if respond_to?(:install_modules_dependencies, true)
22
22
  else
23
23
  s.dependency "React-Core"
24
24
  end
25
- # Tracing (traceparent propagation and OTLP export) needs the first native release after 2.1.10.
26
- s.dependency 'LogDrop', '2.1.12'
25
+ # Native LogDrop iOS SDK. Tracing (traceparent propagation and OTLP export) needs the first
26
+ # native release after 2.1.10.
27
+ logdrop_ios_version = '2.1.13'
28
+
29
+ # CocoaPods trunk is read-only from 2026-12-02, so new LogDrop iOS versions are published only
30
+ # as a Swift package (https://github.com/initialcodess/LogDrop-iOS). React Native 0.75 and
31
+ # later add it to the Pods project through spm_dependency; the app target must also link the
32
+ # LogDropSDK product of that package so Xcode embeds the framework (see README, iOS Setup).
33
+ # Set LOGDROP_IOS_COCOAPODS=1 when running `pod install` to use the LogDrop pod instead; add
34
+ # it to your Podfile from git for versions that are not on trunk:
35
+ # pod 'LogDrop', :git => 'https://github.com/initialcodess/LogDrop-iOS.git', :tag => '<version>'
36
+ use_logdrop_pod = ENV['LOGDROP_IOS_COCOAPODS'] == '1' ||
37
+ ENV['LOGDROP_IOS_POD_PATH'] ||
38
+ !respond_to?(:spm_dependency, true)
39
+ if use_logdrop_pod
40
+ s.dependency 'LogDrop', logdrop_ios_version
41
+ else
42
+ spm_dependency(s,
43
+ url: 'https://github.com/initialcodess/LogDrop-iOS.git',
44
+ requirement: { kind: 'exactVersion', version: logdrop_ios_version },
45
+ products: ['LogDropSDK']
46
+ )
47
+ end
27
48
  end
package/README.md CHANGED
@@ -23,6 +23,35 @@ yarn add @log-drop/react-native
23
23
  cd ios && pod install && cd ..
24
24
  ```
25
25
 
26
+ The native LogDrop iOS SDK (iOS 14.0 or later) comes from its Swift package,
27
+ `https://github.com/initialcodess/LogDrop-iOS.git`. On React Native 0.75 and later,
28
+ `pod install` adds it to the Pods project for this library (React Native's `spm_dependency`),
29
+ so your `Podfile` needs no `pod 'LogDrop'` line; remove an old one from your app target.
30
+
31
+ Add the same package to your **app target** once, so Xcode links and embeds
32
+ `LogDropSDK.framework` in the app (without it the app stops at launch with
33
+ `Library not loaded: @rpath/LogDropSDK.framework/LogDropSDK`):
34
+
35
+ 1. Open `ios/<YourApp>.xcworkspace` in Xcode and choose **File > Add Package Dependencies...**.
36
+ 2. Enter `https://github.com/initialcodess/LogDrop-iOS.git` and pick **Exact Version** with the
37
+ LogDrop iOS version this library uses (2.1.13 for this release).
38
+ 3. Add the `LogDropSDK` product to your app target (and to a Notification Service Extension
39
+ target if you have one, see below).
40
+
41
+ When you update `@log-drop/react-native`, set the same exact version in **Package
42
+ Dependencies** if the library's LogDrop iOS version changed. `pod install` does not touch
43
+ this package reference because it lives in your app project.
44
+
45
+ CocoaPods trunk is read-only from December 2, 2026, so LogDrop iOS versions released after
46
+ that date are published only as a Swift package. If you still want the `LogDrop` pod (or
47
+ your React Native version is older than 0.75), run `LOGDROP_IOS_COCOAPODS=1 pod install`;
48
+ for versions that are not on trunk, add the pod from git to your app target with the version
49
+ from `pod install`'s error message:
50
+
51
+ ```ruby
52
+ pod 'LogDrop', :git => 'https://github.com/initialcodess/LogDrop-iOS.git', :tag => '2.1.13'
53
+ ```
54
+
26
55
  ### 2. Initialize LogDrop before your app starts
27
56
 
28
57
  Add this code **before** `AppRegistry.registerComponent` in your `index.js` or `App.js`:
@@ -79,7 +108,9 @@ export LOGDROP_API_KEY=$(/usr/libexec/PlistBuddy -c "Print :projects:${PRODUCT_B
79
108
 
80
109
  export REACT_NATIVE_PATH="${SRCROOT}/../node_modules/react-native"
81
110
  WITH_ENVIRONMENT="${REACT_NATIVE_PATH}/scripts/xcode/with-environment.sh"
82
- UPLOAD_DSYM_SCRIPT="${PODS_ROOT}/LogDrop/upload_dsym.sh"
111
+ # Swift package checkout; with LOGDROP_IOS_COCOAPODS=1 the script is in the LogDrop pod.
112
+ UPLOAD_DSYM_SCRIPT="${BUILD_DIR%/Build/*}/SourcePackages/checkouts/LogDrop-iOS/upload_dsym.sh"
113
+ [ -f "$UPLOAD_DSYM_SCRIPT" ] || UPLOAD_DSYM_SCRIPT="${PODS_ROOT}/LogDrop/upload_dsym.sh"
83
114
  UPLOAD_RN_IOS_SCRIPT="${SRCROOT}/../node_modules/@log-drop/react-native/scripts/upload_rn_ios.sh"
84
115
 
85
116
  /bin/sh "$UPLOAD_DSYM_SCRIPT"
@@ -316,11 +347,16 @@ const config = new LogDropConfigBuilder()
316
347
  .build();
317
348
  ```
318
349
 
319
- Add LogDrop to the extension target and run `pod install`:
350
+ Add the `LogDropSDK` product of the LogDrop-iOS package (added to your app project in the
351
+ iOS setup above) to the extension target too: select the extension target, **General >
352
+ Frameworks and Libraries > +**, then `LogDropSDK`.
353
+
354
+ If you use `LOGDROP_IOS_COCOAPODS=1`, add the pod to the extension target instead and run
355
+ `pod install`:
320
356
 
321
357
  ```ruby
322
358
  target 'LogDropNotificationServiceExtension' do
323
- pod 'LogDrop', '2.1.11'
359
+ pod 'LogDrop', :git => 'https://github.com/initialcodess/LogDrop-iOS.git', :tag => '2.1.13'
324
360
  end
325
361
  ```
326
362
 
@@ -570,9 +606,8 @@ the request and the backend spans it causes appear as one trace in LogDrop.
570
606
  There is nothing to configure in JavaScript and no OpenTelemetry package to add:
571
607
  the React Native SDK creates, queues and sends no spans of its own.
572
608
 
573
- > **Native versions:** tracing needs the first LogDrop Android and iOS SDK
574
- > releases after 2.1.10. With 2.1.10 (what this version of the React Native SDK
575
- > depends on) no header is added and `flushOtlpTracing` resolves `false`.
609
+ > **Native versions:** tracing needs LogDrop Android and iOS SDK 2.1.11 or later.
610
+ > This version of the React Native SDK uses Android 2.1.14 and iOS 2.1.13.
576
611
 
577
612
  - **When it runs:** only while HTTP tracking is turned on for your LogDrop
578
613
  project and the SDK is enabled. Otherwise no header is added and no span is
@@ -5,4 +5,4 @@ LogdropReactNative_compileSdkVersion=35
5
5
  LogdropReactNative_ndkVersion=27.1.12297006
6
6
  # Native LogDrop Android SDK; an app can override it with `ext.logdropSdkVersion`. Tracing
7
7
  # (traceparent propagation and OTLP export) needs the first native release after 2.1.10.
8
- LogdropReactNative_logdropSdkVersion=2.1.12
8
+ LogdropReactNative_logdropSdkVersion=2.1.14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@log-drop/react-native",
3
- "version": "2.1.4",
3
+ "version": "2.1.6",
4
4
  "description": "LogDrop React Native SDK",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/module/index.js",