@snaplyagent/react-native 0.0.0-stage → 1.1.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 (40) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/LICENSE +7 -0
  3. package/README.md +139 -2
  4. package/SnaplyAgentReactNative.podspec +24 -0
  5. package/android/build.gradle +33 -0
  6. package/android/src/main/AndroidManifest.xml +1 -0
  7. package/android/src/main/java/com/snaplyagent/reactnative/SnaplyAgentModule.kt +104 -0
  8. package/android/src/main/java/com/snaplyagent/reactnative/SnaplyAgentPackage.kt +26 -0
  9. package/ios/Frameworks/SnaplyAgent.xcframework/Info.plist +44 -0
  10. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64/SnaplyAgent.framework/Headers/SnaplyAgent-Swift.h +382 -0
  11. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64/SnaplyAgent.framework/Info.plist +0 -0
  12. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64/SnaplyAgent.framework/Modules/SnaplyAgent.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  13. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64/SnaplyAgent.framework/Modules/SnaplyAgent.swiftmodule/arm64-apple-ios.swiftinterface +175 -0
  14. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64/SnaplyAgent.framework/Modules/module.modulemap +3 -0
  15. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64/SnaplyAgent.framework/PrivacyInfo.xcprivacy +149 -0
  16. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64/SnaplyAgent.framework/SnaplyAgent +0 -0
  17. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64/SnaplyAgent.framework/en.lproj/Snaply.strings +0 -0
  18. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64/SnaplyAgent.framework/hy.lproj/Snaply.strings +0 -0
  19. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64/SnaplyAgent.framework/ru.lproj/Snaply.strings +0 -0
  20. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/Headers/SnaplyAgent-Swift.h +760 -0
  21. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/Info.plist +0 -0
  22. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/Modules/SnaplyAgent.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  23. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/Modules/SnaplyAgent.swiftmodule/arm64-apple-ios-simulator.swiftinterface +175 -0
  24. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/Modules/SnaplyAgent.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  25. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/Modules/SnaplyAgent.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +175 -0
  26. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/Modules/module.modulemap +3 -0
  27. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/PrivacyInfo.xcprivacy +149 -0
  28. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/SnaplyAgent +0 -0
  29. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/_CodeSignature/CodeResources +233 -0
  30. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/en.lproj/Snaply.strings +0 -0
  31. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/hy.lproj/Snaply.strings +0 -0
  32. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/ru.lproj/Snaply.strings +0 -0
  33. package/ios/Sources/SnaplyAgentModule.h +5 -0
  34. package/ios/Sources/SnaplyAgentModule.mm +142 -0
  35. package/ios/Sources/SnaplyBridge.swift +123 -0
  36. package/lib/SnaplyRedact.d.ts +9 -0
  37. package/lib/index.d.ts +86 -0
  38. package/lib/index.js +1 -0
  39. package/package.json +43 -4
  40. package/spec/NativeSnaplyAgent.ts +41 -0
@@ -0,0 +1,149 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <!--
4
+ PrivacyInfo.xcprivacy — SnaplyAgent iOS SDK
5
+
6
+ Apple requires a privacy manifest from every third-party SDK, and requires the host app to
7
+ aggregate ours into its own nutrition label. Two things are declared here:
8
+
9
+ 1. NSPrivacyAccessedAPITypes — the "required reason" APIs we call. UserDefaults is one; the SDK
10
+ stores `installId` there (a random UUID scoped to this app + product key) so a device stays
11
+ recognisable across cold launches. CA92.1 is the correct reason: access is limited to this
12
+ app's own defaults, never an app-group container.
13
+
14
+ 2. NSPrivacyCollectedDataTypes — what the SDK sends. NSPrivacyCollectedDataTypeDeviceID is
15
+ declared because the SDK CAN send the vendor identifier (IDFV), and a manifest must describe
16
+ what the code is capable of, not what one integration happened to enable. It is ON by default;
17
+ an app opts out with `Snaply.configure(collectVendorId: false)`. Because it is on by default,
18
+ the host app must declare Identifiers → Device ID in its own App Privacy label — Apple reviews
19
+ the app, and this manifest covers only the SDK.
20
+
21
+ Every entry is Tracking=false and has NO NSPrivacyCollectedDataTypeTracking domains: nothing here
22
+ is linked to third-party data or used for advertising. The data serves the support session the
23
+ user has already consented to, inside the customer's own workspace.
24
+ -->
25
+ <plist version="1.0">
26
+ <dict>
27
+ <key>NSPrivacyTracking</key>
28
+ <false/>
29
+ <key>NSPrivacyTrackingDomains</key>
30
+ <array/>
31
+ <key>NSPrivacyAccessedAPITypes</key>
32
+ <array>
33
+ <dict>
34
+ <key>NSPrivacyAccessedAPIType</key>
35
+ <string>NSPrivacyAccessedAPICategoryUserDefaults</string>
36
+ <key>NSPrivacyAccessedAPITypeReasons</key>
37
+ <array>
38
+ <!-- CA92.1: read/write only this app's own defaults. -->
39
+ <string>CA92.1</string>
40
+ </array>
41
+ </dict>
42
+ <dict>
43
+ <key>NSPrivacyAccessedAPIType</key>
44
+ <string>NSPrivacyAccessedAPICategoryDiskSpace</string>
45
+ <key>NSPrivacyAccessedAPITypeReasons</key>
46
+ <array>
47
+ <!-- E174.1: free space shown to the support agent on the device-health card, so a
48
+ "the app keeps failing to save" call can be diagnosed. Displayed, never shipped
49
+ onward or used to derive an identifier. -->
50
+ <string>E174.1</string>
51
+ </array>
52
+ </dict>
53
+ <dict>
54
+ <key>NSPrivacyAccessedAPIType</key>
55
+ <string>NSPrivacyAccessedAPICategorySystemBootTime</string>
56
+ <key>NSPrivacyAccessedAPITypeReasons</key>
57
+ <array>
58
+ <!-- 35F9.1: ProcessInfo.systemUptime measures elapsed time inside the SDK — the live
59
+ frame pacing in SnaplyClient and the whole-screen capture's frame clock — and is
60
+ never sent, shown or combined into an identifier. Declared since 2.44.1 (audit
61
+ SEC-2610-71): 2.43.1 and 2.44.0 called it undeclared, and every host app's
62
+ upload failed with ITMS-91053. -->
63
+ <string>35F9.1</string>
64
+ </array>
65
+ </dict>
66
+ </array>
67
+ <key>NSPrivacyCollectedDataTypes</key>
68
+ <array>
69
+ <dict>
70
+ <key>NSPrivacyCollectedDataType</key>
71
+ <string>NSPrivacyCollectedDataTypeDeviceID</string>
72
+ <key>NSPrivacyCollectedDataTypeLinked</key>
73
+ <true/>
74
+ <key>NSPrivacyCollectedDataTypeTracking</key>
75
+ <false/>
76
+ <key>NSPrivacyCollectedDataTypePurposes</key>
77
+ <array>
78
+ <string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
79
+ </array>
80
+ </dict>
81
+ <!-- SEC-2609-51: `identify(id:name:phone:)` sends a user id, a name and a phone number, and
82
+ registration sends userId/userName. None of the three were declared. The manifest's own
83
+ rule, stated for DeviceID above, applies identically: it must describe what the code is
84
+ CAPABLE of, not what one integration happened to enable. Apple aggregates this file into
85
+ the host app's privacy label, so an undeclared-but-transmitted type is the host app's
86
+ accuracy problem, not only ours. -->
87
+ <dict>
88
+ <key>NSPrivacyCollectedDataType</key>
89
+ <string>NSPrivacyCollectedDataTypeName</string>
90
+ <key>NSPrivacyCollectedDataTypeLinked</key>
91
+ <true/>
92
+ <key>NSPrivacyCollectedDataTypeTracking</key>
93
+ <false/>
94
+ <key>NSPrivacyCollectedDataTypePurposes</key>
95
+ <array>
96
+ <string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
97
+ </array>
98
+ </dict>
99
+ <dict>
100
+ <key>NSPrivacyCollectedDataType</key>
101
+ <string>NSPrivacyCollectedDataTypePhoneNumber</string>
102
+ <key>NSPrivacyCollectedDataTypeLinked</key>
103
+ <true/>
104
+ <key>NSPrivacyCollectedDataTypeTracking</key>
105
+ <false/>
106
+ <key>NSPrivacyCollectedDataTypePurposes</key>
107
+ <array>
108
+ <string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
109
+ </array>
110
+ </dict>
111
+ <dict>
112
+ <key>NSPrivacyCollectedDataType</key>
113
+ <string>NSPrivacyCollectedDataTypeUserID</string>
114
+ <key>NSPrivacyCollectedDataTypeLinked</key>
115
+ <true/>
116
+ <key>NSPrivacyCollectedDataTypeTracking</key>
117
+ <false/>
118
+ <key>NSPrivacyCollectedDataTypePurposes</key>
119
+ <array>
120
+ <string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
121
+ </array>
122
+ </dict>
123
+ <dict>
124
+ <key>NSPrivacyCollectedDataType</key>
125
+ <string>NSPrivacyCollectedDataTypeOtherDiagnosticData</string>
126
+ <key>NSPrivacyCollectedDataTypeLinked</key>
127
+ <true/>
128
+ <key>NSPrivacyCollectedDataTypeTracking</key>
129
+ <false/>
130
+ <key>NSPrivacyCollectedDataTypePurposes</key>
131
+ <array>
132
+ <string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
133
+ </array>
134
+ </dict>
135
+ <dict>
136
+ <key>NSPrivacyCollectedDataType</key>
137
+ <string>NSPrivacyCollectedDataTypePhotosorVideos</string>
138
+ <key>NSPrivacyCollectedDataTypeLinked</key>
139
+ <true/>
140
+ <key>NSPrivacyCollectedDataTypeTracking</key>
141
+ <false/>
142
+ <key>NSPrivacyCollectedDataTypePurposes</key>
143
+ <array>
144
+ <string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
145
+ </array>
146
+ </dict>
147
+ </array>
148
+ </dict>
149
+ </plist>