@log-drop/react-native 2.1.8 → 2.2.0

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.
Files changed (115) hide show
  1. package/README.md +76 -4
  2. package/android/gradle.properties +1 -1
  3. package/android/src/main/java/com/logdropreactnative/LogDropReactNative.kt +1 -0
  4. package/android/src/main/java/com/logdropreactnative/LogDropReactNativeConfig.kt +11 -1
  5. package/android/src/main/java/com/logdropreactnative/LogDropReactNativeModule.kt +6 -0
  6. package/ios/LogDropReactNative.mm +1 -0
  7. package/ios/LogDropReactNative.swift +10 -0
  8. package/ios-sdk/Frameworks/LogDropSDK.xcframework/Info.plist +5 -5
  9. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64/LogDropSDK.framework/Alamofire_Alamofire.bundle/Info.plist +0 -0
  10. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64/LogDropSDK.framework/DeviceKit_DeviceKit.bundle/Info.plist +0 -0
  11. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64/LogDropSDK.framework/Firebase_FirebaseCore.bundle/Info.plist +0 -0
  12. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64/LogDropSDK.framework/Firebase_FirebaseCoreExtension.bundle/Info.plist +0 -0
  13. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64/LogDropSDK.framework/Firebase_FirebaseCoreInternal.bundle/Info.plist +0 -0
  14. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64/LogDropSDK.framework/Firebase_FirebaseCrashlytics.bundle/Info.plist +0 -0
  15. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64/LogDropSDK.framework/Firebase_FirebaseInstallations.bundle/Info.plist +0 -0
  16. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64/LogDropSDK.framework/Firebase_FirebaseMessaging.bundle/Info.plist +0 -0
  17. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64/LogDropSDK.framework/GoogleDataTransport_GoogleDataTransport.bundle/Info.plist +0 -0
  18. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64/LogDropSDK.framework/GoogleUtilities_GoogleUtilities-AppDelegateSwizzler.bundle/Info.plist +0 -0
  19. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64/LogDropSDK.framework/GoogleUtilities_GoogleUtilities-Environment.bundle/Info.plist +0 -0
  20. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64/LogDropSDK.framework/GoogleUtilities_GoogleUtilities-Logger.bundle/Info.plist +0 -0
  21. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64/LogDropSDK.framework/GoogleUtilities_GoogleUtilities-NSData.bundle/Info.plist +0 -0
  22. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64/LogDropSDK.framework/GoogleUtilities_GoogleUtilities-Network.bundle/Info.plist +0 -0
  23. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64/LogDropSDK.framework/GoogleUtilities_GoogleUtilities-Reachability.bundle/Info.plist +0 -0
  24. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64/LogDropSDK.framework/GoogleUtilities_GoogleUtilities-UserDefaults.bundle/Info.plist +0 -0
  25. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64/LogDropSDK.framework/Headers/LogDropSDK-Swift.h +74 -8
  26. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64/LogDropSDK.framework/Info.plist +0 -0
  27. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64/LogDropSDK.framework/LogDropSDK +0 -0
  28. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64/LogDropSDK.framework/Modules/LogDropSDK.swiftmodule/arm64-apple-ios.abi.json +3200 -1483
  29. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64/LogDropSDK.framework/Modules/LogDropSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +253 -293
  30. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64/LogDropSDK.framework/Modules/LogDropSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  31. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64/LogDropSDK.framework/Modules/LogDropSDK.swiftmodule/arm64-apple-ios.swiftinterface +253 -293
  32. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64/LogDropSDK.framework/Modules/module.modulemap +0 -1
  33. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64/LogDropSDK.framework/PLCrashReporter_CrashReporter.bundle/Info.plist +0 -0
  34. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64/LogDropSDK.framework/Promises_FBLPromises.bundle/Info.plist +0 -0
  35. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64/LogDropSDK.framework/Promises_Promises.bundle/Info.plist +0 -0
  36. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64/LogDropSDK.framework/SwiftProtobuf_SwiftProtobuf.bundle/Info.plist +0 -0
  37. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64/LogDropSDK.framework/nanopb_nanopb.bundle/Info.plist +0 -0
  38. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/Alamofire_Alamofire.bundle/Info.plist +0 -0
  39. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/Alamofire_Alamofire.bundle/_CodeSignature/CodeDirectory +0 -0
  40. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/DeviceKit_DeviceKit.bundle/Info.plist +0 -0
  41. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/DeviceKit_DeviceKit.bundle/_CodeSignature/CodeDirectory +0 -0
  42. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/Firebase_FirebaseCore.bundle/Info.plist +0 -0
  43. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/Firebase_FirebaseCore.bundle/_CodeSignature/CodeDirectory +0 -0
  44. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/Firebase_FirebaseCoreExtension.bundle/Info.plist +0 -0
  45. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/Firebase_FirebaseCoreExtension.bundle/_CodeSignature/CodeDirectory +0 -0
  46. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/Firebase_FirebaseCoreInternal.bundle/Info.plist +0 -0
  47. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/Firebase_FirebaseCoreInternal.bundle/_CodeSignature/CodeDirectory +0 -0
  48. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/Firebase_FirebaseCrashlytics.bundle/Info.plist +0 -0
  49. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/Firebase_FirebaseCrashlytics.bundle/_CodeSignature/CodeDirectory +0 -0
  50. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/Firebase_FirebaseInstallations.bundle/Info.plist +0 -0
  51. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/Firebase_FirebaseInstallations.bundle/_CodeSignature/CodeDirectory +0 -0
  52. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/Firebase_FirebaseMessaging.bundle/Info.plist +0 -0
  53. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/Firebase_FirebaseMessaging.bundle/_CodeSignature/CodeDirectory +0 -0
  54. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/GoogleDataTransport_GoogleDataTransport.bundle/Info.plist +0 -0
  55. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/GoogleDataTransport_GoogleDataTransport.bundle/_CodeSignature/CodeDirectory +0 -0
  56. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/GoogleUtilities_GoogleUtilities-AppDelegateSwizzler.bundle/Info.plist +0 -0
  57. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/GoogleUtilities_GoogleUtilities-AppDelegateSwizzler.bundle/_CodeSignature/CodeDirectory +0 -0
  58. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/GoogleUtilities_GoogleUtilities-Environment.bundle/Info.plist +0 -0
  59. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/GoogleUtilities_GoogleUtilities-Environment.bundle/_CodeSignature/CodeDirectory +0 -0
  60. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/GoogleUtilities_GoogleUtilities-Logger.bundle/Info.plist +0 -0
  61. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/GoogleUtilities_GoogleUtilities-Logger.bundle/_CodeSignature/CodeDirectory +0 -0
  62. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/GoogleUtilities_GoogleUtilities-NSData.bundle/Info.plist +0 -0
  63. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/GoogleUtilities_GoogleUtilities-NSData.bundle/_CodeSignature/CodeDirectory +0 -0
  64. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/GoogleUtilities_GoogleUtilities-Network.bundle/Info.plist +0 -0
  65. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/GoogleUtilities_GoogleUtilities-Network.bundle/_CodeSignature/CodeDirectory +0 -0
  66. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/GoogleUtilities_GoogleUtilities-Reachability.bundle/Info.plist +0 -0
  67. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/GoogleUtilities_GoogleUtilities-Reachability.bundle/_CodeSignature/CodeDirectory +0 -0
  68. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/GoogleUtilities_GoogleUtilities-UserDefaults.bundle/Info.plist +0 -0
  69. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/GoogleUtilities_GoogleUtilities-UserDefaults.bundle/_CodeSignature/CodeDirectory +0 -0
  70. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/Headers/LogDropSDK-Swift.h +150 -18
  71. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/Info.plist +0 -0
  72. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/LogDropSDK +0 -0
  73. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/Modules/LogDropSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +3200 -1483
  74. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/Modules/LogDropSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +253 -293
  75. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/Modules/LogDropSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  76. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/Modules/LogDropSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +253 -293
  77. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/Modules/LogDropSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +3200 -1483
  78. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/Modules/LogDropSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +253 -293
  79. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/Modules/LogDropSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  80. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/Modules/LogDropSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +253 -293
  81. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/Modules/module.modulemap +0 -1
  82. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/PLCrashReporter_CrashReporter.bundle/Info.plist +0 -0
  83. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/PLCrashReporter_CrashReporter.bundle/_CodeSignature/CodeDirectory +0 -0
  84. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/Promises_FBLPromises.bundle/Info.plist +0 -0
  85. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/Promises_FBLPromises.bundle/_CodeSignature/CodeDirectory +0 -0
  86. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/Promises_Promises.bundle/Info.plist +0 -0
  87. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/Promises_Promises.bundle/_CodeSignature/CodeDirectory +0 -0
  88. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/SwiftProtobuf_SwiftProtobuf.bundle/Info.plist +0 -0
  89. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/SwiftProtobuf_SwiftProtobuf.bundle/_CodeSignature/CodeDirectory +0 -0
  90. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/_CodeSignature/CodeResources +25 -25
  91. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/nanopb_nanopb.bundle/Info.plist +0 -0
  92. package/ios-sdk/Frameworks/LogDropSDK.xcframework/ios-arm64_x86_64-simulator/LogDropSDK.framework/nanopb_nanopb.bundle/_CodeSignature/CodeDirectory +0 -0
  93. package/ios-sdk/LogDrop.podspec +2 -2
  94. package/ios-sdk/VERSION +1 -1
  95. package/lib/module/LogDrop.js +20 -0
  96. package/lib/module/LogDrop.js.map +1 -1
  97. package/lib/module/LogDropConfig.js +12 -1
  98. package/lib/module/LogDropConfig.js.map +1 -1
  99. package/lib/module/LogDropNavigation.js +58 -0
  100. package/lib/module/LogDropNavigation.js.map +1 -0
  101. package/lib/module/index.js +2 -1
  102. package/lib/module/index.js.map +1 -1
  103. package/lib/typescript/src/LogDrop.d.ts +11 -0
  104. package/lib/typescript/src/LogDrop.d.ts.map +1 -1
  105. package/lib/typescript/src/LogDropConfig.d.ts +13 -0
  106. package/lib/typescript/src/LogDropConfig.d.ts.map +1 -1
  107. package/lib/typescript/src/LogDropNavigation.d.ts +52 -0
  108. package/lib/typescript/src/LogDropNavigation.d.ts.map +1 -0
  109. package/lib/typescript/src/index.d.ts +3 -2
  110. package/lib/typescript/src/index.d.ts.map +1 -1
  111. package/package.json +2 -2
  112. package/src/LogDrop.ts +22 -0
  113. package/src/LogDropConfig.ts +18 -0
  114. package/src/LogDropNavigation.ts +89 -0
  115. package/src/index.tsx +22 -2
@@ -7,5 +7,4 @@ framework module LogDropSDK {
7
7
 
8
8
  module LogDropSDK.Swift {
9
9
  header "LogDropSDK-Swift.h"
10
- requires objc
11
10
  }
@@ -6,7 +6,7 @@
6
6
  <dict>
7
7
  <key>Headers/LogDropSDK-Swift.h</key>
8
8
  <data>
9
- lYk5GrEvlBg7D80/Pl5TfQlb8k8=
9
+ 1mhAyNsgLzPLKToE0i2ZMiSxuOE=
10
10
  </data>
11
11
  <key>Headers/LogDropSDK.h</key>
12
12
  <data>
@@ -14,51 +14,51 @@
14
14
  </data>
15
15
  <key>Info.plist</key>
16
16
  <data>
17
- VQXkgbkl+wx6NeD7Y9ZGqMSS/UU=
17
+ HN3KGcG76XpN7ut71EqJr8gYBv0=
18
18
  </data>
19
19
  <key>Modules/LogDropSDK.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
20
20
  <data>
21
- n2sMrXKeUdwHoQf6A6ZjzYFbb7g=
21
+ gg5ubJgOVxY3gvseIG+EDzLsLKs=
22
22
  </data>
23
23
  <key>Modules/LogDropSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
24
24
  <data>
25
- CEp0IfYf22UBq3umL5m0c8K7ygY=
25
+ JJJtgvPtPEHe/hZozykz7wCmHfk=
26
26
  </data>
27
27
  <key>Modules/LogDropSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
28
28
  <data>
29
- RFKAgrLgzxxBYvsmClFWaEUhUT0=
29
+ FfN/9/nC0nAhJe1v4tFsEhlWQlQ=
30
30
  </data>
31
31
  <key>Modules/LogDropSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
32
32
  <data>
33
- CEp0IfYf22UBq3umL5m0c8K7ygY=
33
+ JJJtgvPtPEHe/hZozykz7wCmHfk=
34
34
  </data>
35
35
  <key>Modules/LogDropSDK.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
36
36
  <data>
37
- OYv9RbDaU+SdJBmE3B8ecD504x8=
37
+ ead7Tj0u+d64B8X4vOLaFovKQdk=
38
38
  </data>
39
39
  <key>Modules/LogDropSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
40
40
  <data>
41
- n2sMrXKeUdwHoQf6A6ZjzYFbb7g=
41
+ gg5ubJgOVxY3gvseIG+EDzLsLKs=
42
42
  </data>
43
43
  <key>Modules/LogDropSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
44
44
  <data>
45
- 06zlwefYMgcqL7XXJBumJn+khK0=
45
+ S87Hu0J0dDvnQyi4POM951ZqEBE=
46
46
  </data>
47
47
  <key>Modules/LogDropSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
48
48
  <data>
49
- ew7QhDJ1Vk3fGla3aBowY0WniXY=
49
+ pzP0ZPGbVBcN+yuI/cAcd+H/ux4=
50
50
  </data>
51
51
  <key>Modules/LogDropSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
52
52
  <data>
53
- 06zlwefYMgcqL7XXJBumJn+khK0=
53
+ S87Hu0J0dDvnQyi4POM951ZqEBE=
54
54
  </data>
55
55
  <key>Modules/LogDropSDK.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
56
56
  <data>
57
- G53bcMMv7k7VKX/YuV91NpixW1Q=
57
+ zVGjLnzdcXNmQNn4HQYClix33dg=
58
58
  </data>
59
59
  <key>Modules/module.modulemap</key>
60
60
  <data>
61
- 9KyZ3NLMp1eYpJ/n7XxQA7VpYJM=
61
+ r+2GPKriCzayFV+r5bvhZUcc7Y8=
62
62
  </data>
63
63
  </dict>
64
64
  <key>files2</key>
@@ -67,7 +67,7 @@
67
67
  <dict>
68
68
  <key>hash2</key>
69
69
  <data>
70
- /eHD3iCcWzNOcoZ7QGBBMHEvVGVnaWkwlbpzQ5oTjHw=
70
+ rABHhuIQiYtgkwQydfpTV/AjuWJvtKFMPlWTnMBwezQ=
71
71
  </data>
72
72
  </dict>
73
73
  <key>Headers/LogDropSDK.h</key>
@@ -81,77 +81,77 @@
81
81
  <dict>
82
82
  <key>hash2</key>
83
83
  <data>
84
- m697u8PJvIxq+7sG7iYGRe2kkQlrB169HvtGixXiozo=
84
+ Z8E8JYnqUeC3D/pdFhFfFavAD5WCrjxbWd2nmYbuiNA=
85
85
  </data>
86
86
  </dict>
87
87
  <key>Modules/LogDropSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
88
88
  <dict>
89
89
  <key>hash2</key>
90
90
  <data>
91
- yW29BNh/nuw1PBMQ8QUsYGKnuGeTk3lXfinCfParF58=
91
+ Jas1rkf4KM/GF71qh+TqxyZpgsFz9v9yVBnrjD1qLj0=
92
92
  </data>
93
93
  </dict>
94
94
  <key>Modules/LogDropSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
95
95
  <dict>
96
96
  <key>hash2</key>
97
97
  <data>
98
- 6qw0fw5q3zgiQS1gmOEdUMbB3Ffw47XcNfcy/cnS/vw=
98
+ mdlWGGTPubLZgTiBpRrWyIPkGGecwdDPTwjA7rv7aqo=
99
99
  </data>
100
100
  </dict>
101
101
  <key>Modules/LogDropSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
102
102
  <dict>
103
103
  <key>hash2</key>
104
104
  <data>
105
- yW29BNh/nuw1PBMQ8QUsYGKnuGeTk3lXfinCfParF58=
105
+ Jas1rkf4KM/GF71qh+TqxyZpgsFz9v9yVBnrjD1qLj0=
106
106
  </data>
107
107
  </dict>
108
108
  <key>Modules/LogDropSDK.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
109
109
  <dict>
110
110
  <key>hash2</key>
111
111
  <data>
112
- mjgGL6+rRmjntXXageOiSIMpNnW193R/NXflHxoqbvY=
112
+ buBc0qWKTqDsTiVQ+9hXgoLejAPyogqOX5kany9yo2g=
113
113
  </data>
114
114
  </dict>
115
115
  <key>Modules/LogDropSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
116
116
  <dict>
117
117
  <key>hash2</key>
118
118
  <data>
119
- m697u8PJvIxq+7sG7iYGRe2kkQlrB169HvtGixXiozo=
119
+ Z8E8JYnqUeC3D/pdFhFfFavAD5WCrjxbWd2nmYbuiNA=
120
120
  </data>
121
121
  </dict>
122
122
  <key>Modules/LogDropSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
123
123
  <dict>
124
124
  <key>hash2</key>
125
125
  <data>
126
- IJ+tHv1/mGbqB8uDtc99mbiaeCaONXKCUxY71ffZjpg=
126
+ QUf61n3rman70LvCPfqHm3U5LVCc6hmCx10ZSk79+0M=
127
127
  </data>
128
128
  </dict>
129
129
  <key>Modules/LogDropSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
130
130
  <dict>
131
131
  <key>hash2</key>
132
132
  <data>
133
- YCxsL5gSIcBfIKXwwcDlfz20tWQmldCzm0LjLOoalZM=
133
+ LlJfc5DX6wcNt3/LxISMAwY28AV79Y4AwsLMgjXxYNI=
134
134
  </data>
135
135
  </dict>
136
136
  <key>Modules/LogDropSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
137
137
  <dict>
138
138
  <key>hash2</key>
139
139
  <data>
140
- IJ+tHv1/mGbqB8uDtc99mbiaeCaONXKCUxY71ffZjpg=
140
+ QUf61n3rman70LvCPfqHm3U5LVCc6hmCx10ZSk79+0M=
141
141
  </data>
142
142
  </dict>
143
143
  <key>Modules/LogDropSDK.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
144
144
  <dict>
145
145
  <key>hash2</key>
146
146
  <data>
147
- yKB6aZsA0hDEEG7IPXJiwq/DWAn9Dla4NQnM3XF6fFg=
147
+ pdvNHwFzkJqufxhTn9jLHG5Ihs6GVSd6t03Liq3NUI8=
148
148
  </data>
149
149
  </dict>
150
150
  <key>Modules/module.modulemap</key>
151
151
  <dict>
152
152
  <key>hash2</key>
153
153
  <data>
154
- Fif3UoDkeu8u+Y/XfyRp06rhB9Av0haCyv+DUy0xqh8=
154
+ y+YVBBlEKkOTyd7aacjtk2x0mzjjWdfIphUjl8oYsfQ=
155
155
  </data>
156
156
  </dict>
157
157
  </dict>
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |spec|
2
2
  spec.name = 'LogDrop'
3
- spec.version = '2.1.14'
3
+ spec.version = '2.1.16'
4
4
  spec.summary = 'Lightweight real-time log and crash tracking SDK for iOS.'
5
5
  spec.description = <<-DESC
6
6
  LogDrop helps developers monitor app behavior and crashes in real-time through a visual dashboard.
@@ -25,7 +25,7 @@ Pod::Spec.new do |spec|
25
25
  }
26
26
  spec.author = { 'InitialCode' => 'engineering@initialcode.io' }
27
27
  spec.source = { :git => 'https://github.com/initialcodess/LogDrop-iOS.git', :tag => spec.version }
28
- spec.ios.deployment_target = '13.0'
28
+ spec.ios.deployment_target = '15.0'
29
29
  spec.swift_version = '5.0'
30
30
  spec.vendored_frameworks = 'Frameworks/LogDropSDK.xcframework'
31
31
  spec.resources = ['upload_dsym.sh']
package/ios-sdk/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.14
1
+ 2.1.16
@@ -8,6 +8,7 @@ import { Platform } from 'react-native';
8
8
  import { LogDropErrorTracking } from "./utils/LogDropErrorTracking.js";
9
9
  import { logFlowToNative } from "./LogFlow.js";
10
10
  import { LogDropReactNative } from "./LogDropReactNative.js";
11
+ import { logdropDebugLogger } from "./utils/logdropDebugLogger.js";
11
12
  export let LogDropPopupShowResult = /*#__PURE__*/function (LogDropPopupShowResult) {
12
13
  LogDropPopupShowResult["Shown"] = "shown";
13
14
  LogDropPopupShowResult["NothingToShow"] = "nothingToShow";
@@ -106,6 +107,25 @@ export default class LogDrop {
106
107
  static trackCustomEvent = (eventName, properties = {}) => {
107
108
  LogDropReactNative.trackCustomEvent(eventName, properties);
108
109
  };
110
+
111
+ /**
112
+ * Sets the screen the user is looking at. A name different from the current
113
+ * screen records a `screen_view`. Keep names stable and free of user data
114
+ * (`'ProductDetail'`, not the product); the native SDKs cut them to 100
115
+ * characters. Blank names are ignored.
116
+ *
117
+ * Native automatic tracking only sees the React Native host Activity and root
118
+ * view controller, so name screens from JavaScript, for example with
119
+ * {@link createLogDropNavigationTracker} for React Navigation.
120
+ */
121
+ static trackScreen = name => {
122
+ const screenName = typeof name === 'string' ? name.trim() : '';
123
+ if (screenName.length === 0) {
124
+ logdropDebugLogger('LogDrop.trackScreen: the screen name must not be blank');
125
+ return;
126
+ }
127
+ LogDropReactNative.trackScreen(screenName);
128
+ };
109
129
  static trackDeepLink = url => {
110
130
  LogDropReactNative.trackDeepLink?.(url);
111
131
  };
@@ -1 +1 @@
1
- {"version":3,"names":["Platform","LogDropErrorTracking","logFlowToNative","LogDropReactNative","LogDropPopupShowResult","DEFAULT_TRACE_FLUSH_TIMEOUT_MS","MAX_TRACE_FLUSH_TIMEOUT_MS","traceFlushTimeout","timeoutMs","Number","isFinite","Math","min","max","round","LogDrop","init","config","OS","initLogDrop","start","onRemoteMessageReceived","message","onNewFcmPushToken","token","onNewHmsPushToken","onNewApnsToken","isLogDropPush","showPendingPushPopup","NotInitialized","result","Shown","NothingToShow","sendLogs","flushOtlpTracing","delivered","trackCustomEvent","eventName","properties","trackDeepLink","url","setAppId","appId","userUpdate","userId","setCustomAttributes","attributes","removeCustomAttribute","key","e","tag","logFlow","d","i","w"],"sourceRoot":"../../src","sources":["LogDrop.ts"],"mappings":";;AAAA;AACA;AACA;;AAEA,SAASA,QAAQ,QAAQ,cAAc;AACvC,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,OAAe,EAAE6B,OAAiB,KAAW;IACpEhD,kBAAkB,CAACiD,CAAC,CAACF,GAAG,EAAE5B,OAAO,EAAEpB,eAAe,CAACiD,OAAO,CAAC,CAAC;EAC9D,CAAC;EAED,OAAOE,CAAC,GAAGA,CAACH,GAAW,EAAE5B,OAAe,EAAE6B,OAAiB,KAAW;IACpEhD,kBAAkB,CAACkD,CAAC,CAACH,GAAG,EAAE5B,OAAO,EAAEpB,eAAe,CAACiD,OAAO,CAAC,CAAC;EAC9D,CAAC;EAED,OAAOG,CAAC,GAAGA,CAACJ,GAAW,EAAE5B,OAAe,EAAE6B,OAAiB,KAAW;IACpEhD,kBAAkB,CAACmD,CAAC,CAACJ,GAAG,EAAE5B,OAAO,EAAEpB,eAAe,CAACiD,OAAO,CAAC,CAAC;EAC9D,CAAC;AACH","ignoreList":[]}
1
+ {"version":3,"names":["Platform","LogDropErrorTracking","logFlowToNative","LogDropReactNative","logdropDebugLogger","LogDropPopupShowResult","DEFAULT_TRACE_FLUSH_TIMEOUT_MS","MAX_TRACE_FLUSH_TIMEOUT_MS","traceFlushTimeout","timeoutMs","Number","isFinite","Math","min","max","round","LogDrop","init","config","OS","initLogDrop","start","onRemoteMessageReceived","message","onNewFcmPushToken","token","onNewHmsPushToken","onNewApnsToken","isLogDropPush","showPendingPushPopup","NotInitialized","result","Shown","NothingToShow","sendLogs","flushOtlpTracing","delivered","trackCustomEvent","eventName","properties","trackScreen","name","screenName","trim","length","trackDeepLink","url","setAppId","appId","userUpdate","userId","setCustomAttributes","attributes","removeCustomAttribute","key","e","tag","logFlow","d","i","w"],"sourceRoot":"../../src","sources":["LogDrop.ts"],"mappings":";;AAAA;AACA;AACA;;AAEA,SAASA,QAAQ,QAAQ,cAAc;AACvC,SAASC,oBAAoB,QAAQ,iCAA8B;AAEnE,SAAkBC,eAAe,QAAQ,cAAW;AACpD,SAASC,kBAAkB,QAAQ,yBAAsB;AACzD,SAASC,kBAAkB,QAAQ,+BAA4B;AAE/D,WAA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CAAC;EAED,OAAOC,CAAC,GAAGA,CAACC,GAAW,EAAEjC,OAAe,EAAEkC,OAAiB,KAAW;IACpEtD,kBAAkB,CAACoD,CAAC,CAACC,GAAG,EAAEjC,OAAO,EAAErB,eAAe,CAACuD,OAAO,CAAC,CAAC;EAC9D,CAAC;EAED,OAAOC,CAAC,GAAGA,CAACF,GAAW,EAAEjC,OAAe,EAAEkC,OAAiB,KAAW;IACpEtD,kBAAkB,CAACuD,CAAC,CAACF,GAAG,EAAEjC,OAAO,EAAErB,eAAe,CAACuD,OAAO,CAAC,CAAC;EAC9D,CAAC;EAED,OAAOE,CAAC,GAAGA,CAACH,GAAW,EAAEjC,OAAe,EAAEkC,OAAiB,KAAW;IACpEtD,kBAAkB,CAACwD,CAAC,CAACH,GAAG,EAAEjC,OAAO,EAAErB,eAAe,CAACuD,OAAO,CAAC,CAAC;EAC9D,CAAC;EAED,OAAOG,CAAC,GAAGA,CAACJ,GAAW,EAAEjC,OAAe,EAAEkC,OAAiB,KAAW;IACpEtD,kBAAkB,CAACyD,CAAC,CAACJ,GAAG,EAAEjC,OAAO,EAAErB,eAAe,CAACuD,OAAO,CAAC,CAAC;EAC9D,CAAC;AACH","ignoreList":[]}
@@ -32,13 +32,24 @@ export class LogDropConfigBuilder {
32
32
  this.pushAppGroupSuiteName = pushAppGroupSuiteName;
33
33
  return this;
34
34
  }
35
+
36
+ /**
37
+ * iOS: turns the native SDK's automatic view controller tracking on or off
38
+ * (default: off). In React Native it mostly sees the root view controller,
39
+ * so screens come from {@link LogDrop.trackScreen} instead.
40
+ */
41
+ setAutomaticScreenTracking(enabled) {
42
+ this.automaticScreenTracking = enabled;
43
+ return this;
44
+ }
35
45
  build() {
36
46
  return {
37
47
  appId: this.appId,
38
48
  baseUrl: this.baseUrl,
39
49
  isLoggingEnabled: this.isLoggingEnabled,
40
50
  defaultSDKDisabled: this.defaultSDKDisabled,
41
- pushAppGroupSuiteName: this.pushAppGroupSuiteName
51
+ pushAppGroupSuiteName: this.pushAppGroupSuiteName,
52
+ automaticScreenTracking: this.automaticScreenTracking
42
53
  };
43
54
  }
44
55
  }
@@ -1 +1 @@
1
- {"version":3,"names":["LogDropConfigBuilder","appId","baseUrl","isLoggingEnabled","defaultSDKDisabled","setAppId","setApiKey","apiKey","setBaseUrl","setLoggingEnabled","setDefaultSDKDisabledValue","setPushAppGroupSuiteName","pushAppGroupSuiteName","build"],"sourceRoot":"../../src","sources":["LogDropConfig.ts"],"mappings":";;AAaA,OAAO,MAAMA,oBAAoB,CAAC;EACxBC,KAAK,GAAW,EAAE;EAClBC,OAAO,GAAW,EAAE;EACpBC,gBAAgB,GAAY,KAAK;EACjCC,kBAAkB,GAAY,KAAK;EAG3CC,QAAQA,CAACJ,KAAa,EAAQ;IAC5B,IAAI,CAACA,KAAK,GAAGA,KAAK;IAClB,OAAO,IAAI;EACb;;EAEA;AACF;AACA;EACEK,SAASA,CAACC,MAAc,EAAQ;IAC9B,OAAO,IAAI,CAACF,QAAQ,CAACE,MAAM,CAAC;EAC9B;EAEAC,UAAUA,CAACN,OAAe,EAAQ;IAChC,IAAI,CAACA,OAAO,GAAGA,OAAO;IACtB,OAAO,IAAI;EACb;EAEAO,iBAAiBA,CAACN,gBAAyB,EAAQ;IACjD,IAAI,CAACA,gBAAgB,GAAGA,gBAAgB;IACxC,OAAO,IAAI;EACb;EAEAO,0BAA0BA,CAACN,kBAA2B,EAAQ;IAC5D,IAAI,CAACA,kBAAkB,GAAGA,kBAAkB;IAC5C,OAAO,IAAI;EACb;EAEAO,wBAAwBA,CAACC,qBAA6B,EAAQ;IAC5D,IAAI,CAACA,qBAAqB,GAAGA,qBAAqB;IAClD,OAAO,IAAI;EACb;EAEAC,KAAKA,CAAA,EAAkB;IACrB,OAAO;MACLZ,KAAK,EAAE,IAAI,CAACA,KAAK;MACjBC,OAAO,EAAE,IAAI,CAACA,OAAO;MACrBC,gBAAgB,EAAE,IAAI,CAACA,gBAAgB;MACvCC,kBAAkB,EAAE,IAAI,CAACA,kBAAkB;MAC3CQ,qBAAqB,EAAE,IAAI,CAACA;IAC9B,CAAC;EACH;AACF","ignoreList":[]}
1
+ {"version":3,"names":["LogDropConfigBuilder","appId","baseUrl","isLoggingEnabled","defaultSDKDisabled","setAppId","setApiKey","apiKey","setBaseUrl","setLoggingEnabled","setDefaultSDKDisabledValue","setPushAppGroupSuiteName","pushAppGroupSuiteName","setAutomaticScreenTracking","enabled","automaticScreenTracking","build"],"sourceRoot":"../../src","sources":["LogDropConfig.ts"],"mappings":";;AAmBA,OAAO,MAAMA,oBAAoB,CAAC;EACxBC,KAAK,GAAW,EAAE;EAClBC,OAAO,GAAW,EAAE;EACpBC,gBAAgB,GAAY,KAAK;EACjCC,kBAAkB,GAAY,KAAK;EAI3CC,QAAQA,CAACJ,KAAa,EAAQ;IAC5B,IAAI,CAACA,KAAK,GAAGA,KAAK;IAClB,OAAO,IAAI;EACb;;EAEA;AACF;AACA;EACEK,SAASA,CAACC,MAAc,EAAQ;IAC9B,OAAO,IAAI,CAACF,QAAQ,CAACE,MAAM,CAAC;EAC9B;EAEAC,UAAUA,CAACN,OAAe,EAAQ;IAChC,IAAI,CAACA,OAAO,GAAGA,OAAO;IACtB,OAAO,IAAI;EACb;EAEAO,iBAAiBA,CAACN,gBAAyB,EAAQ;IACjD,IAAI,CAACA,gBAAgB,GAAGA,gBAAgB;IACxC,OAAO,IAAI;EACb;EAEAO,0BAA0BA,CAACN,kBAA2B,EAAQ;IAC5D,IAAI,CAACA,kBAAkB,GAAGA,kBAAkB;IAC5C,OAAO,IAAI;EACb;EAEAO,wBAAwBA,CAACC,qBAA6B,EAAQ;IAC5D,IAAI,CAACA,qBAAqB,GAAGA,qBAAqB;IAClD,OAAO,IAAI;EACb;;EAEA;AACF;AACA;AACA;AACA;EACEC,0BAA0BA,CAACC,OAAgB,EAAQ;IACjD,IAAI,CAACC,uBAAuB,GAAGD,OAAO;IACtC,OAAO,IAAI;EACb;EAEAE,KAAKA,CAAA,EAAkB;IACrB,OAAO;MACLf,KAAK,EAAE,IAAI,CAACA,KAAK;MACjBC,OAAO,EAAE,IAAI,CAACA,OAAO;MACrBC,gBAAgB,EAAE,IAAI,CAACA,gBAAgB;MACvCC,kBAAkB,EAAE,IAAI,CAACA,kBAAkB;MAC3CQ,qBAAqB,EAAE,IAAI,CAACA,qBAAqB;MACjDG,uBAAuB,EAAE,IAAI,CAACA;IAChC,CAAC;EACH;AACF","ignoreList":[]}
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+
3
+ /*
4
+ * Copyright (c) 2025 Initial Code
5
+ */
6
+
7
+ import LogDrop from "./LogDrop.js";
8
+
9
+ /** The part of a React Navigation route the tracker reads. */
10
+
11
+ /**
12
+ * The part of a React Navigation container ref the tracker reads. Matches the
13
+ * object from `createNavigationContainerRef()` / `useNavigationContainerRef()`
14
+ * without depending on `@react-navigation/native`.
15
+ */
16
+
17
+ const resolveRef = ref => 'getCurrentRoute' in ref ? ref : ref.current;
18
+
19
+ /**
20
+ * Sends React Navigation screen changes to {@link LogDrop.trackScreen}.
21
+ *
22
+ * ```tsx
23
+ * const navigationRef = createNavigationContainerRef();
24
+ * const logDropNavigation = createLogDropNavigationTracker(navigationRef);
25
+ *
26
+ * <NavigationContainer
27
+ * ref={navigationRef}
28
+ * onReady={logDropNavigation.onReady}
29
+ * onStateChange={logDropNavigation.onStateChange}
30
+ * >
31
+ * ```
32
+ *
33
+ * Accepts the ref object itself or a `useRef` holder (`{ current }`). A screen
34
+ * is sent only when its name differs from the last one sent.
35
+ */
36
+ export const createLogDropNavigationTracker = (navigationRef, options = {}) => {
37
+ let lastScreenName;
38
+ const track = () => {
39
+ try {
40
+ const ref = resolveRef(navigationRef);
41
+ if (!ref || ref.isReady && !ref.isReady()) return;
42
+ const route = ref.getCurrentRoute();
43
+ if (!route) return;
44
+ const name = options.screenName ? options.screenName(route) : route.name;
45
+ const screenName = typeof name === 'string' ? name.trim() : '';
46
+ if (screenName.length === 0 || screenName === lastScreenName) return;
47
+ lastScreenName = screenName;
48
+ LogDrop.trackScreen(screenName);
49
+ } catch {
50
+ // Screen tracking must never break navigation.
51
+ }
52
+ };
53
+ return {
54
+ onReady: track,
55
+ onStateChange: track
56
+ };
57
+ };
58
+ //# sourceMappingURL=LogDropNavigation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["LogDrop","resolveRef","ref","current","createLogDropNavigationTracker","navigationRef","options","lastScreenName","track","isReady","route","getCurrentRoute","name","screenName","trim","length","trackScreen","onReady","onStateChange"],"sourceRoot":"../../src","sources":["LogDropNavigation.ts"],"mappings":";;AAAA;AACA;AACA;;AAEA,OAAOA,OAAO,MAAM,cAAW;;AAE/B;;AAOA;AACA;AACA;AACA;AACA;;AA0BA,MAAMC,UAAU,GACdC,GAAY,IAEZ,iBAAiB,IAAIA,GAAG,GAAGA,GAAG,GAAGA,GAAG,CAACC,OAAO;;AAE9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,8BAA8B,GAAGA,CAC5CC,aAAsB,EACtBC,OAAwC,GAAG,CAAC,CAAC,KAChB;EAC7B,IAAIC,cAAkC;EAEtC,MAAMC,KAAK,GAAGA,CAAA,KAAY;IACxB,IAAI;MACF,MAAMN,GAAG,GAAGD,UAAU,CAACI,aAAa,CAAC;MACrC,IAAI,CAACH,GAAG,IAAKA,GAAG,CAACO,OAAO,IAAI,CAACP,GAAG,CAACO,OAAO,CAAC,CAAE,EAAE;MAC7C,MAAMC,KAAK,GAAGR,GAAG,CAACS,eAAe,CAAC,CAAC;MACnC,IAAI,CAACD,KAAK,EAAE;MACZ,MAAME,IAAI,GAAGN,OAAO,CAACO,UAAU,GAAGP,OAAO,CAACO,UAAU,CAACH,KAAK,CAAC,GAAGA,KAAK,CAACE,IAAI;MACxE,MAAMC,UAAU,GAAG,OAAOD,IAAI,KAAK,QAAQ,GAAGA,IAAI,CAACE,IAAI,CAAC,CAAC,GAAG,EAAE;MAC9D,IAAID,UAAU,CAACE,MAAM,KAAK,CAAC,IAAIF,UAAU,KAAKN,cAAc,EAAE;MAC9DA,cAAc,GAAGM,UAAU;MAC3Bb,OAAO,CAACgB,WAAW,CAACH,UAAU,CAAC;IACjC,CAAC,CAAC,MAAM;MACN;IAAA;EAEJ,CAAC;EAED,OAAO;IAAEI,OAAO,EAAET,KAAK;IAAEU,aAAa,EAAEV;EAAM,CAAC;AACjD,CAAC","ignoreList":[]}
@@ -3,5 +3,6 @@
3
3
  import LogDrop, { LogDropPopupShowResult } from "./LogDrop.js";
4
4
  import LogFlow from "./LogFlow.js";
5
5
  import { LogDropConfigBuilder } from "./LogDropConfig.js";
6
- export { LogDrop, LogDropConfigBuilder, LogDropPopupShowResult, LogFlow };
6
+ import { createLogDropNavigationTracker } from "./LogDropNavigation.js";
7
+ export { createLogDropNavigationTracker, LogDrop, LogDropConfigBuilder, LogDropPopupShowResult, LogFlow };
7
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["LogDrop","LogDropPopupShowResult","LogFlow","LogDropConfigBuilder"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,OAAOA,OAAO,IAAIC,sBAAsB,QAAQ,cAAW;AAC3D,OAAOC,OAAO,MAAkC,cAAW;AAC3D,SAA6BC,oBAAoB,QAAQ,oBAAiB;AAE1E,SAASH,OAAO,EAAEG,oBAAoB,EAAEF,sBAAsB,EAAEC,OAAO","ignoreList":[]}
1
+ {"version":3,"names":["LogDrop","LogDropPopupShowResult","LogFlow","LogDropConfigBuilder","createLogDropNavigationTracker"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,OAAOA,OAAO,IAAIC,sBAAsB,QAAQ,cAAW;AAC3D,OAAOC,OAAO,MAAkC,cAAW;AAC3D,SAA6BC,oBAAoB,QAAQ,oBAAiB;AAC1E,SACEC,8BAA8B,QAKzB,wBAAqB;AAE5B,SACEA,8BAA8B,EAC9BJ,OAAO,EACPG,oBAAoB,EACpBF,sBAAsB,EACtBC,OAAO","ignoreList":[]}
@@ -37,6 +37,17 @@ export default class LogDrop {
37
37
  static flushOtlpTracing: (timeoutMs?: number) => Promise<boolean>;
38
38
  /** Tracks a customer-defined event with JSON-compatible properties. */
39
39
  static trackCustomEvent: (eventName: string, properties?: Record<string, unknown>) => void;
40
+ /**
41
+ * Sets the screen the user is looking at. A name different from the current
42
+ * screen records a `screen_view`. Keep names stable and free of user data
43
+ * (`'ProductDetail'`, not the product); the native SDKs cut them to 100
44
+ * characters. Blank names are ignored.
45
+ *
46
+ * Native automatic tracking only sees the React Native host Activity and root
47
+ * view controller, so name screens from JavaScript, for example with
48
+ * {@link createLogDropNavigationTracker} for React Navigation.
49
+ */
50
+ static trackScreen: (name: string) => void;
40
51
  static trackDeepLink: (url: string) => void;
41
52
  static setAppId: (appId: string) => void;
42
53
  static userUpdate: (userId: string) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"LogDrop.d.ts","sourceRoot":"","sources":["../../../src/LogDrop.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,OAA4B,MAAM,WAAW,CAAC;AAGrD,oBAAY,sBAAsB;IAChC,KAAK,UAAU;IACf,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;CAClC;AAYD,MAAM,CAAC,OAAO,OAAO,OAAO;IAC1B,MAAM,CAAC,IAAI,GAAI,QAAQ,aAAa,KAAG,IAAI,CAKzC;IAEF,MAAM,CAAC,uBAAuB,GAAI,SAAS;QACzC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB,KAAG,IAAI,CAIN;IAEF,MAAM,CAAC,iBAAiB,GAAI,OAAO,MAAM,KAAG,IAAI,CAI9C;IAEF,MAAM,CAAC,iBAAiB,GAAI,OAAO,MAAM,KAAG,IAAI,CAI9C;IAEF,iFAAiF;IACjF,MAAM,CAAC,cAAc,GAAI,OAAO,MAAM,KA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,IAAI,CASvC;IAEF,MAAM,CAAC,aAAa,GAAI,KAAK,MAAM,KAAG,IAAI,CAExC;IAEF,MAAM,CAAC,QAAQ,GAAI,OAAO,MAAM,KAAG,IAAI,CAErC;IAEF,MAAM,CAAC,UAAU,GAAI,QAAQ,MAAM,KAAG,IAAI,CAExC;IAEF,yEAAyE;IACzE,MAAM,CAAC,mBAAmB,GAAI,YAAY,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAG,IAAI,CAErE;IAEF,kEAAkE;IAClE,MAAM,CAAC,qBAAqB,GAAI,KAAK,MAAM,KAAG,IAAI,CAEhD;IAEF,MAAM,CAAC,CAAC,GAAI,KAAK,MAAM,EAAE,SAAS,MAAM,EAAE,UAAU,OAAO,KAAG,IAAI,CAEhE;IAEF,MAAM,CAAC,CAAC,GAAI,KAAK,MAAM,EAAE,SAAS,MAAM,EAAE,UAAU,OAAO,KAAG,IAAI,CAEhE;IAEF,MAAM,CAAC,CAAC,GAAI,KAAK,MAAM,EAAE,SAAS,MAAM,EAAE,UAAU,OAAO,KAAG,IAAI,CAEhE;IAEF,MAAM,CAAC,CAAC,GAAI,KAAK,MAAM,EAAE,SAAS,MAAM,EAAE,UAAU,OAAO,KAAG,IAAI,CAEhE;CACH"}
@@ -9,6 +9,12 @@ export interface LogDropConfig {
9
9
  defaultSDKDisabled: boolean;
10
10
  /** iOS App Group shared with the LogDrop notification service extension. */
11
11
  pushAppGroupSuiteName?: string;
12
+ /**
13
+ * iOS: whether the native SDK tracks view controllers as screens by itself.
14
+ * Unset means false: screen names come from JavaScript. Android reads this from
15
+ * `LogDropReactNativeConfig.Builder.automaticScreenTracking` instead.
16
+ */
17
+ automaticScreenTracking?: boolean;
12
18
  }
13
19
  export declare class LogDropConfigBuilder {
14
20
  private appId;
@@ -16,6 +22,7 @@ export declare class LogDropConfigBuilder {
16
22
  private isLoggingEnabled;
17
23
  private defaultSDKDisabled;
18
24
  private pushAppGroupSuiteName?;
25
+ private automaticScreenTracking?;
19
26
  setAppId(appId: string): this;
20
27
  /**
21
28
  * @deprecated Use setAppId instead.
@@ -25,6 +32,12 @@ export declare class LogDropConfigBuilder {
25
32
  setLoggingEnabled(isLoggingEnabled: boolean): this;
26
33
  setDefaultSDKDisabledValue(defaultSDKDisabled: boolean): this;
27
34
  setPushAppGroupSuiteName(pushAppGroupSuiteName: string): this;
35
+ /**
36
+ * iOS: turns the native SDK's automatic view controller tracking on or off
37
+ * (default: off). In React Native it mostly sees the root view controller,
38
+ * so screens come from {@link LogDrop.trackScreen} instead.
39
+ */
40
+ setAutomaticScreenTracking(enabled: boolean): this;
28
41
  build(): LogDropConfig;
29
42
  }
30
43
  //# sourceMappingURL=LogDropConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LogDropConfig.d.ts","sourceRoot":"","sources":["../../../src/LogDropConfig.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,4EAA4E;IAC5E,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,KAAK,CAAc;IAC3B,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,gBAAgB,CAAkB;IAC1C,OAAO,CAAC,kBAAkB,CAAkB;IAC5C,OAAO,CAAC,qBAAqB,CAAC,CAAS;IAEvC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAK7B;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAI/B,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAKjC,iBAAiB,CAAC,gBAAgB,EAAE,OAAO,GAAG,IAAI;IAKlD,0BAA0B,CAAC,kBAAkB,EAAE,OAAO,GAAG,IAAI;IAK7D,wBAAwB,CAAC,qBAAqB,EAAE,MAAM,GAAG,IAAI;IAK7D,KAAK,IAAI,aAAa;CASvB"}
1
+ {"version":3,"file":"LogDropConfig.d.ts","sourceRoot":"","sources":["../../../src/LogDropConfig.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,4EAA4E;IAC5E,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC;AAED,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,KAAK,CAAc;IAC3B,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,gBAAgB,CAAkB;IAC1C,OAAO,CAAC,kBAAkB,CAAkB;IAC5C,OAAO,CAAC,qBAAqB,CAAC,CAAS;IACvC,OAAO,CAAC,uBAAuB,CAAC,CAAU;IAE1C,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAK7B;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAI/B,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAKjC,iBAAiB,CAAC,gBAAgB,EAAE,OAAO,GAAG,IAAI;IAKlD,0BAA0B,CAAC,kBAAkB,EAAE,OAAO,GAAG,IAAI;IAK7D,wBAAwB,CAAC,qBAAqB,EAAE,MAAM,GAAG,IAAI;IAK7D;;;;OAIG;IACH,0BAA0B,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAKlD,KAAK,IAAI,aAAa;CAUvB"}
@@ -0,0 +1,52 @@
1
+ /** The part of a React Navigation route the tracker reads. */
2
+ export interface LogDropNavigationRoute {
3
+ name: string;
4
+ key?: string;
5
+ params?: unknown;
6
+ }
7
+ /**
8
+ * The part of a React Navigation container ref the tracker reads. Matches the
9
+ * object from `createNavigationContainerRef()` / `useNavigationContainerRef()`
10
+ * without depending on `@react-navigation/native`.
11
+ */
12
+ export interface LogDropNavigationContainerRef {
13
+ getCurrentRoute(): LogDropNavigationRoute | undefined | null;
14
+ isReady?(): boolean;
15
+ }
16
+ export interface LogDropNavigationTrackerOptions {
17
+ /**
18
+ * Maps a route to the screen name sent to LogDrop. Defaults to `route.name`.
19
+ * Return `undefined`, `null` or an empty string to skip the route. Keep names
20
+ * stable and free of user data.
21
+ */
22
+ screenName?: (route: LogDropNavigationRoute) => string | null | undefined;
23
+ }
24
+ export interface LogDropNavigationTracker {
25
+ /** Pass as `NavigationContainer`'s `onReady`: tracks the first screen. */
26
+ onReady: () => void;
27
+ /** Pass as `NavigationContainer`'s `onStateChange`: tracks screen changes. */
28
+ onStateChange: () => void;
29
+ }
30
+ type RefLike = LogDropNavigationContainerRef | {
31
+ current: LogDropNavigationContainerRef | null | undefined;
32
+ };
33
+ /**
34
+ * Sends React Navigation screen changes to {@link LogDrop.trackScreen}.
35
+ *
36
+ * ```tsx
37
+ * const navigationRef = createNavigationContainerRef();
38
+ * const logDropNavigation = createLogDropNavigationTracker(navigationRef);
39
+ *
40
+ * <NavigationContainer
41
+ * ref={navigationRef}
42
+ * onReady={logDropNavigation.onReady}
43
+ * onStateChange={logDropNavigation.onStateChange}
44
+ * >
45
+ * ```
46
+ *
47
+ * Accepts the ref object itself or a `useRef` holder (`{ current }`). A screen
48
+ * is sent only when its name differs from the last one sent.
49
+ */
50
+ export declare const createLogDropNavigationTracker: (navigationRef: RefLike, options?: LogDropNavigationTrackerOptions) => LogDropNavigationTracker;
51
+ export {};
52
+ //# sourceMappingURL=LogDropNavigation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LogDropNavigation.d.ts","sourceRoot":"","sources":["../../../src/LogDropNavigation.ts"],"names":[],"mappings":"AAMA,8DAA8D;AAC9D,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC5C,eAAe,IAAI,sBAAsB,GAAG,SAAS,GAAG,IAAI,CAAC;IAC7D,OAAO,CAAC,IAAI,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,+BAA+B;IAC9C;;;;OAIG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC3E;AAED,MAAM,WAAW,wBAAwB;IACvC,0EAA0E;IAC1E,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,8EAA8E;IAC9E,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,KAAK,OAAO,GACR,6BAA6B,GAC7B;IAAE,OAAO,EAAE,6BAA6B,GAAG,IAAI,GAAG,SAAS,CAAA;CAAE,CAAC;AAOlE;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,8BAA8B,GACzC,eAAe,OAAO,EACtB,UAAS,+BAAoC,KAC5C,wBAoBF,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import LogDrop, { LogDropPopupShowResult } from './LogDrop';
2
2
  import LogFlow, { type LogFlowAttributes } from './LogFlow';
3
3
  import { type LogDropConfig, LogDropConfigBuilder } from './LogDropConfig';
4
- export { LogDrop, LogDropConfigBuilder, LogDropPopupShowResult, LogFlow };
5
- export type { LogDropConfig, LogFlowAttributes };
4
+ import { createLogDropNavigationTracker, type LogDropNavigationContainerRef, type LogDropNavigationRoute, type LogDropNavigationTracker, type LogDropNavigationTrackerOptions } from './LogDropNavigation';
5
+ export { createLogDropNavigationTracker, LogDrop, LogDropConfigBuilder, LogDropPopupShowResult, LogFlow, };
6
+ export type { LogDropConfig, LogDropNavigationContainerRef, LogDropNavigationRoute, LogDropNavigationTracker, LogDropNavigationTrackerOptions, LogFlowAttributes, };
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,OAAO,EAAE,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,OAAO,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,KAAK,aAAa,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAE3E,OAAO,EAAE,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,OAAO,EAAE,CAAC;AAC1E,YAAY,EAAE,aAAa,EAAE,iBAAiB,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,OAAO,EAAE,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,OAAO,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,KAAK,aAAa,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EACL,8BAA8B,EAC9B,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,+BAA+B,EACrC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,8BAA8B,EAC9B,OAAO,EACP,oBAAoB,EACpB,sBAAsB,EACtB,OAAO,GACR,CAAC;AACF,YAAY,EACV,aAAa,EACb,6BAA6B,EAC7B,sBAAsB,EACtB,wBAAwB,EACxB,+BAA+B,EAC/B,iBAAiB,GAClB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@log-drop/react-native",
3
- "version": "2.1.8",
3
+ "version": "2.2.0",
4
4
  "description": "LogDrop React Native SDK",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/module/index.js",
@@ -43,7 +43,7 @@
43
43
  "prepare": "bob build && sh scripts/fetch-ios-sdk.sh",
44
44
  "release": "release-it"
45
45
  },
46
- "logdropIosVersion": "2.1.14",
46
+ "logdropIosVersion": "2.1.16",
47
47
  "keywords": [
48
48
  "react-native",
49
49
  "ios",
package/src/LogDrop.ts CHANGED
@@ -7,6 +7,7 @@ import { LogDropErrorTracking } from './utils/LogDropErrorTracking';
7
7
  import { type LogDropConfig } from './LogDropConfig';
8
8
  import LogFlow, { logFlowToNative } from './LogFlow';
9
9
  import { LogDropReactNative } from './LogDropReactNative';
10
+ import { logdropDebugLogger } from './utils/logdropDebugLogger';
10
11
 
11
12
  export enum LogDropPopupShowResult {
12
13
  Shown = 'shown',
@@ -131,6 +132,27 @@ export default class LogDrop {
131
132
  LogDropReactNative.trackCustomEvent(eventName, properties);
132
133
  };
133
134
 
135
+ /**
136
+ * Sets the screen the user is looking at. A name different from the current
137
+ * screen records a `screen_view`. Keep names stable and free of user data
138
+ * (`'ProductDetail'`, not the product); the native SDKs cut them to 100
139
+ * characters. Blank names are ignored.
140
+ *
141
+ * Native automatic tracking only sees the React Native host Activity and root
142
+ * view controller, so name screens from JavaScript, for example with
143
+ * {@link createLogDropNavigationTracker} for React Navigation.
144
+ */
145
+ static trackScreen = (name: string): void => {
146
+ const screenName = typeof name === 'string' ? name.trim() : '';
147
+ if (screenName.length === 0) {
148
+ logdropDebugLogger(
149
+ 'LogDrop.trackScreen: the screen name must not be blank'
150
+ );
151
+ return;
152
+ }
153
+ LogDropReactNative.trackScreen(screenName);
154
+ };
155
+
134
156
  static trackDeepLink = (url: string): void => {
135
157
  LogDropReactNative.trackDeepLink?.(url);
136
158
  };